GNU bug report logs - #79193
31.0.50; feature/igc: crashes with no gui frame

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: john muhl <jm@HIDDEN>; dated Thu, 7 Aug 2025 17:10:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 8 Aug 2025 06:41:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 08 02:41:03 2025
Received: from localhost ([127.0.0.1]:36855 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ukGmk-00066M-KN
	for submit <at> debbugs.gnu.org; Fri, 08 Aug 2025 02:41:03 -0400
Received: from lists.gnu.org ([2001:470:142::17]:36650)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eller.helmut@HIDDEN>)
 id 1ukGmi-00065h-Ao
 for submit <at> debbugs.gnu.org; Fri, 08 Aug 2025 02:41:00 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eller.helmut@HIDDEN>)
 id 1ukGmc-0006q8-Mj
 for bug-gnu-emacs@HIDDEN; Fri, 08 Aug 2025 02:40:54 -0400
Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <eller.helmut@HIDDEN>)
 id 1ukGma-0002XV-Vt
 for bug-gnu-emacs@HIDDEN; Fri, 08 Aug 2025 02:40:54 -0400
Received: by mail-ej1-x631.google.com with SMTP id
 a640c23a62f3a-af968aa2de4so347232066b.1
 for <bug-gnu-emacs@HIDDEN>; Thu, 07 Aug 2025 23:40:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1754635250; x=1755240050; darn=gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=YCRb+2BO4sExNGH1ZRk3Vrtac9ZtwpH/3KFO3ug9Jak=;
 b=KyQPAl1BzIgQ7p45gvtvz16Mt31x1sZr5Qk2UVFFgDQwyM6wFw7UbEt8mPjIbveR+X
 AL6TseOgqO+Dso5P/ZKaO4OiWAhVnz3Scw8QCdXVeEv90WR51TUjWUBXGI0G6mkl0ENf
 wT12G7HApY17MD6OfAcFQMk/Qd4czSPnPz1ZvxoRxwTtwrmhctxAzhFNecuh0K5/zqBP
 f4wkpUU26RQRSZ9rhVjhzJEB7PQT+1AhYfSHf/ty2229ewdHOGs8/6xg+LXEXXOSuSMF
 Q7bEFy3uTtZyeKJiSvw50vUz00hWmO+LX0dNfdTydF65iLeMukMmWrwIGoKe+Pg+WCCY
 ve/g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1754635250; x=1755240050;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=YCRb+2BO4sExNGH1ZRk3Vrtac9ZtwpH/3KFO3ug9Jak=;
 b=paNJ3y8ANI7t1hCYGx99EuRfF8RF1IY403ow5QYNg62pxpIoiqZTkvkERkWa1LhxOG
 pJZyCXgKCgFHjlw1N1rUMMrASf3hbUkRilAfz9wNIUMwkuzi41qxktVIK6tkwAv9WZFI
 l7Wu4mEI70ybK459zWRgGQ9EfSCAPD1Il/eZYVFc4zluFD77JHMnF5y1k5XNfK7EdzHb
 lkGkfSkH0SiPqtBDJcRqJVBKIvJftaBBZ1SuEAUNlIe4PARne8Ar0MUV18VZ9PrJv7Qt
 GmPVlbqcWTo6fvlN2vfQHxHgRQf9fGPDFlHyEvWSr22A+JEm7GnW9r34YJsdVOE5JfTu
 4z3Q==
X-Gm-Message-State: AOJu0YyWXyPoFRvGRUdHCKb+tmfjJvv9ymPY1J75j3FkbcjIL++k2qlZ
 k7cNQDf94sTJhsQWOqOQVKm8LH66EKKyXvybScrYejArOHD9Qq0LZzB4
X-Gm-Gg: ASbGncumupfgb8EtC3sg6gQvySfwChwhGg6GwEqrZXyuAvz5rv89a+e/rWRrk86YPrg
 E/bo7Oo6X2sIBeXkjkV9sFxhBhLYgzQRxejQw4LNKjoerzlcrqXA+dW8a7dkdIrepyocGxMyD14
 hJEKvtDJy/VdfYet3WyNbca47Snq9j5/y2o7k5GtNhAEM6aj0qTh+ytUt/oCShZBoOnxXTJeeAP
 CrqPiDpQqAngmRw1DpMr7WV6uCYozvadaMptNSgY2OTLJICVwDkprpMFixEp76SWH3mRgrbkfrm
 f3elfBL62pWAP+Iy4ihz3UPkxvmIcf6HDZnHdQ9tScDhu6c2lA7jyD5SUADFfZto6BnP3Mt6aOk
 PYnzjthHf6UVp4RxTArz5
X-Google-Smtp-Source: AGHT+IEpL+9pszlLn3PjW3twznwFBerNaqhDpnxPe+rZpFEQV3ciqHDRb3ZTMJ6NyMdsaKIqu1d51w==
X-Received: by 2002:a17:907:3c88:b0:af9:8064:21ec with SMTP id
 a640c23a62f3a-af9c658abc6mr153589866b.52.1754635250198; 
 Thu, 07 Aug 2025 23:40:50 -0700 (PDT)
Received: from caladan ([31.177.112.212]) by smtp.gmail.com with ESMTPSA id
 a640c23a62f3a-af91a1e6cecsm1446628066b.70.2025.08.07.23.40.49
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 07 Aug 2025 23:40:49 -0700 (PDT)
From: Helmut Eller <eller.helmut@HIDDEN>
To: Pip Cet via "Bug reports for GNU Emacs, the Swiss army knife of text
 editors" <bug-gnu-emacs@HIDDEN>
Subject: Re: bug#79193: 31.0.50; feature/igc: crashes with no gui frame
In-Reply-To: <87a54b81i8.fsf@HIDDEN>
References: <87tt2j83eo.fsf@HIDDEN> <87a54b81i8.fsf@HIDDEN>
Date: Fri, 08 Aug 2025 08:40:48 +0200
Message-ID: <8734a2uxhr.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2a00:1450:4864:20::631;
 envelope-from=eller.helmut@HIDDEN; helo=mail-ej1-x631.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
Cc: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>,
 Pip Cet <pipcet@HIDDEN>, john muhl <jm@HIDDEN>,
 79193 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

On Thu, Aug 07 2025, Pip Cet via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote:

[...]
> Of course, this may fail to work because of the glyph pool tracing bug
> Helmut discovered; Helmut, do you have a preference for how to fix that?
> My preference would be to simply use igc_xzalloc_ambig, but I also have
> code here to make glyph pools, and glyph arrays, special IGC object
> types.

I would prefer to have a reproducible test case first.  So far the
problem is only theoretical; we don't know whether it occurs in
practice.  If it actually occurs, then we can decide how to fix it.

Helmut




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79193; Package emacs. Full text available.

Message received at 79193 <at> debbugs.gnu.org:


Received: (at 79193) by debbugs.gnu.org; 8 Aug 2025 06:40:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 08 02:40:59 2025
Received: from localhost ([127.0.0.1]:36852 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ukGmh-00065r-2x
	for submit <at> debbugs.gnu.org; Fri, 08 Aug 2025 02:40:59 -0400
Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]:59797)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <eller.helmut@HIDDEN>)
 id 1ukGme-00065b-V1
 for 79193 <at> debbugs.gnu.org; Fri, 08 Aug 2025 02:40:57 -0400
Received: by mail-ej1-x62f.google.com with SMTP id
 a640c23a62f3a-af98b77d2f0so327558666b.3
 for <79193 <at> debbugs.gnu.org>; Thu, 07 Aug 2025 23:40:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1754635250; x=1755240050; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=YCRb+2BO4sExNGH1ZRk3Vrtac9ZtwpH/3KFO3ug9Jak=;
 b=G4DFQMMzYCPjavqYpVc1aFs7jSC3Rpxgx2UHeD8kn6ai/4Cw1TGJdLpkXiKjqWDUC8
 4AIEAHfJujwC3p26Qp+31FWv+vdi3HvhzdNZ1Q75mEQ2dXNeaEVO+hXmLjXiJRQ2zIyw
 r46z3nuqwdKK/1rTIuNz2dZR3xEc7EKxiVs8zEpBiGR2bXuq7vAa2P9bXKdtveeF9DQ5
 8xIpI/jL2v3deh7ioyXz+Zi9KTCOCZqIePfi8BbigZmal8gz1naYU8V90NFd3oYah9vS
 hlbeaucy1lSF+IHyiZV5uxDIdn6wkZAeCReSAJMtYXDOy+ZekMuXkPzU/zz0/8yO0JjH
 jHuQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1754635250; x=1755240050;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=YCRb+2BO4sExNGH1ZRk3Vrtac9ZtwpH/3KFO3ug9Jak=;
 b=OxYlQ1tUrrRI2481xKAg1W8HOOsMSxtSi/4d+Axzx76s7CwkXp0y5YCAc6i4K6bGLb
 NngU+Hv9US6MR4+Su7XWtSf4UgcIzqrMzk3vCTWWV1S9ntI+hanjXIJlTflsbGN7HdDQ
 bDj4mVFPS+yCi2k0/uxhgDC4XY9qn1PePh01FrdG3s5GcA0iZqqC21sA15qWAufRuAJH
 h9HsUmrIVCK1hLHPnFBd+1u6EjOgddBajigaMRAvZh3Iox/+f9VDnVQXrFaKCxueHdjj
 QUXFu2wwbkjzOSwr5nxVc28BjSSYv3Yy2lD6g9Oog1ucDmOj9Xwsy3mUHlGh8LCaPtuF
 f4lA==
X-Forwarded-Encrypted: i=1;
 AJvYcCXyD+EFr5fSV0E2CNCilFPug2YHORwf4v5/nobdYQQ74C3Wx7r2Km1yHB9gOXpyz06jQi6WCA==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxXedbPTDkC2R+Cu8IC/L27KGC/g/scr685kOCVq5Gwl//MknQ5
 bSSPcXY7QJ6cmrHlPCAs65I01N0BJqpvFQdzWxAsWZd/VU0mMCy1bnshG+9tCg==
X-Gm-Gg: ASbGncvDwQ8MPTUpqG+tHNOwFlt+Z8wszK0hzJEBZyqQw3pQxqMo6YkV5U8LLreDGKB
 BynGrvdK6lcxgupkfmYP4sUhMrfEJViF3MGO3YkGzBb3UvuUH6Y0nb/DL5c2uzuF2s/4aXrAe+J
 I09wvpRB0GIIcu+zwSNx5J99lwQu0UT0hJXi2OLXrQtJc6XaOTE62CGLmG07zrnZza8eEN2FGpH
 ixARYFKAech2K2b1ycujP7AmwCmoD/t3vo6O2SL97Y2+3KAJbvV6pTUZqgYChdvbJHquFWiIMPn
 GvZ9s6AFTZTBaU8QthFGpxpQs1+pREYjUW/Xgji0gTlB2UKch+a6l0MOkyUyzkPs01YEJMxKwGG
 /NrDY54zMc9bUIBMBkPL4
X-Google-Smtp-Source: AGHT+IEpL+9pszlLn3PjW3twznwFBerNaqhDpnxPe+rZpFEQV3ciqHDRb3ZTMJ6NyMdsaKIqu1d51w==
X-Received: by 2002:a17:907:3c88:b0:af9:8064:21ec with SMTP id
 a640c23a62f3a-af9c658abc6mr153589866b.52.1754635250198; 
 Thu, 07 Aug 2025 23:40:50 -0700 (PDT)
Received: from caladan ([31.177.112.212]) by smtp.gmail.com with ESMTPSA id
 a640c23a62f3a-af91a1e6cecsm1446628066b.70.2025.08.07.23.40.49
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 07 Aug 2025 23:40:49 -0700 (PDT)
From: Helmut Eller <eller.helmut@HIDDEN>
To: Pip Cet via "Bug reports for GNU Emacs, the Swiss army knife of text
 editors" <bug-gnu-emacs@HIDDEN>
Subject: Re: bug#79193: 31.0.50; feature/igc: crashes with no gui frame
In-Reply-To: <87a54b81i8.fsf@HIDDEN>
References: <87tt2j83eo.fsf@HIDDEN> <87a54b81i8.fsf@HIDDEN>
Date: Fri, 08 Aug 2025 08:40:48 +0200
Message-ID: <8734a2uxhr.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79193
Cc: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>,
 Pip Cet <pipcet@HIDDEN>, john muhl <jm@HIDDEN>,
 79193 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Thu, Aug 07 2025, Pip Cet via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote:

[...]
> Of course, this may fail to work because of the glyph pool tracing bug
> Helmut discovered; Helmut, do you have a preference for how to fix that?
> My preference would be to simply use igc_xzalloc_ambig, but I also have
> code here to make glyph pools, and glyph arrays, special IGC object
> types.

I would prefer to have a reproducible test case first.  So far the
problem is only theoretical; we don't know whether it occurs in
practice.  If it actually occurs, then we can decide how to fix it.

Helmut




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79193; Package emacs. Full text available.

Message received at 79193 <at> debbugs.gnu.org:


Received: (at 79193) by debbugs.gnu.org; 8 Aug 2025 02:41:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 07 22:41:01 2025
Received: from localhost ([127.0.0.1]:36479 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ukD2S-00033p-Ql
	for submit <at> debbugs.gnu.org; Thu, 07 Aug 2025 22:41:01 -0400
Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:51414)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1ukD2N-00033V-Dq
 for 79193 <at> debbugs.gnu.org; Thu, 07 Aug 2025 22:40:58 -0400
Received: by mail-wr1-x42e.google.com with SMTP id
 ffacd0b85a97d-3b788feab29so930242f8f.2
 for <79193 <at> debbugs.gnu.org>; Thu, 07 Aug 2025 19:40:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1754620848; x=1755225648; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=w1sK6F1vNmNSr6ssSXjla33fNO8+CckTHuOgTYn3iWk=;
 b=jW7vWQdISt7YK0e3z8Rli0p0VfI8ZdlHLiQIho0pjCJKqcnSJBmot7CjnC2CIauO/z
 eY29gTcC3I75DKaNR2faXxGZ14EBxIOZmBCH+DZVJkReN+vDxAMiK7eSZbQ+35B/uVC1
 58MfUDfOeMi5+Tc4eeqZYJ9xD81TQ6hPIFF+azM5/WER59mQJCk2qm2YjLWqyFdrwzOc
 slGxLvpx0qXAeUUCdpxsF7N8pGD0z3pZJUr7H2+CbZPxmPPbYD1XNVdJvE7weJEw2Qwu
 N0HtNvjM0bY5iigHKG4Lo3MAzM0T2pOHu2AEvV6RXHnCA0SjBJZP8uo17aKuBl/0xXrc
 79rA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1754620848; x=1755225648;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=w1sK6F1vNmNSr6ssSXjla33fNO8+CckTHuOgTYn3iWk=;
 b=ESCBKVeNil90sTrtBdAp4KCqIj0OZrY0oJ8WNddsVndlC3c/Eplo0E0atMiGWKJ32v
 XL7hctGQAInoC946z3jE7q7qQBSC4XeB0taGWcemVTVVZ978UJpSXk3zOJy/egW8hXX5
 OmyJFbU/pCDZGtQ47jQWQ2dRZ6qop0uEW+4NlZNCCG7VIo7MH2TtUU4xCf4GsVhLt1ol
 OtKKiWW6tlRJ3SPZIv7j4jPaDXszbXQFKXD2PKQgAc+2uB6ZYjBb2eYXPD4T37mMTxL/
 OjnYKNBZm8Hdhe9HMJK+I/3xGtkAdsSfk8Ey1SQXsp1g1ts4MqYmELhTwEQlYzEk7CO3
 UCkA==
X-Forwarded-Encrypted: i=1;
 AJvYcCV/exojTiaLXnyUVLF//jVFIKCmu+0JP7E9jPDC3vBip4lBDQYgwiqGjqB0DBMzTpGnJgEgrQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxmaQRe4eZD+sfGshsdJXmsY/Szpob9ahodtlkz1Fn9Ddzjdh9Q
 vtw/I0T6/AgX808eJxVHE7Kvr74ESKbtQVKArBSooxZOGeGu3Mt9COzp
X-Gm-Gg: ASbGncv2uosHabTOdMO7gAbTerdQQv07fUlpoaluA5fDvIN7JKi76fiFaUKI1LjP6/5
 tHawUB8vrHiGzTLMScI8TQ+U6quOe7ntAP8Be95RIJYGU+m7wYj32lF6gLbVy7ebbuZomELkDZk
 yHQ4srRSAmmspP15O8TkzhWfKLnrIyd1UDRuDosBfShI/a3FYqNp6tpQL/9RpkDuJImTzJXTt6C
 SrxjrHcQi/smzD6vPYWp9c8N0gwp2wtcLs4+pH7MPh3Cc9EvQD5687lp/MWVJXSe8sAKLXR08b8
 BkpEykYWvN5oUols2P+uf5123SIZ0lQPfeePBpitmxB8NN3Cwd0CBpKZH4xKudy4l8EN01mDF1H
 lU2RBl7jX6hTi9lahJDJ0KvIsshCFQSF+e4SIGu1E256nPuxPH1JdVA+++GCcX69b818fUJafy4
 1Iuc8+0ibVb+8wNQVnmQjGfsiRxa5mb6o=
X-Google-Smtp-Source: AGHT+IHOarUtCVVUttKLolpuobNLRoN5gvcs6ncWY18+Fre338UMxxS1aKNXHHnTdOaPQgqriHovdg==
X-Received: by 2002:a05:6000:1ace:b0:3b7:9af4:9c93 with SMTP id
 ffacd0b85a97d-3b900b50415mr1031040f8f.35.1754620847780; 
 Thu, 07 Aug 2025 19:40:47 -0700 (PDT)
Received: from pro2 (p200300e0b741ff00c4d7f6fa22926ac6.dip0.t-ipconnect.de.
 [2003:e0:b741:ff00:c4d7:f6fa:2292:6ac6])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-3b79c3bf970sm28438342f8f.25.2025.08.07.19.40.46
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 07 Aug 2025 19:40:47 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Pip Cet <pipcet@HIDDEN>
Subject: Re: bug#79193: 31.0.50; feature/igc: crashes with no gui frame
In-Reply-To: <87a54b81i8.fsf@HIDDEN>
References: <87tt2j83eo.fsf@HIDDEN> <87a54b81i8.fsf@HIDDEN>
Date: Fri, 08 Aug 2025 04:40:44 +0200
Message-ID: <m28qjuh6xf.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79193
Cc: john muhl <jm@HIDDEN>, Helmut Eller <eller.helmut@HIDDEN>,
 79193 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Pip Cet <pipcet@HIDDEN> writes:

 * src/dispnew.c (line_hash_code) [MPS]: Use 'igc_hash', not the
> address of a movable object, as a hash value.
> ---
>  src/dispnew.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
>
> diff --git a/src/dispnew.c b/src/dispnew.c
> index 1eaab64d876..755422b7cf1 100644
> --- a/src/dispnew.c
> +++ b/src/dispnew.c
> @@ -1192,8 +1192,17 @@ line_hash_code (struct frame *f, struct glyph_row *row)
>  	     index into the frame's face cache), we need the hash
>  	     value to include something specific to the frame, and we
>  	     use the frame cache's address for that purpose.  */
> +#ifndef HAVE_MPS
>  	  if (glyph->frame && glyph->frame != f)
>  	    face_id += (uintptr_t) glyph->frame->face_cache;
> +#else
> +	  if (glyph->frame && glyph->frame != f)
> +	    {
> +	      Lisp_Object face_cache;
> +	      XSETVECTOR (face_cache, glyph->frame->face_cache);
> +	      face_id += igc_hash (face_cache);
                         ^^^^^^^^
BTW, good catch!             




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79193; Package emacs. Full text available.

Message received at 79193 <at> debbugs.gnu.org:


Received: (at 79193) by debbugs.gnu.org; 7 Aug 2025 18:42:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 07 14:42:45 2025
Received: from localhost ([127.0.0.1]:35935 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uk5Zd-0006bt-CI
	for submit <at> debbugs.gnu.org; Thu, 07 Aug 2025 14:42:45 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:59862)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uk5Zb-0006bZ-Ch
 for 79193 <at> debbugs.gnu.org; Thu, 07 Aug 2025 14:42:43 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1uk5ZV-0006ut-QJ; Thu, 07 Aug 2025 14:42:37 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=P16IeyfbFURdVUzxd0hOrEFWLfjMVFvOA7VdEZPSSLw=; b=QSwyLcLLJIaJpVtPO0i5
 FNo8zDRv5F8L9ks7CnM2ZSrcYt+cMU4t8LKdZHmsWBtm8XBPueXBRpIePppTDb2rRbQ/YmBI/nKx0
 sWxTWTV0iUIVWQJQSHZldMbTFeiDGqNJ8VJsdLneCKcbtkXX2I1PfOoBw42EskxerFqynDxqEzMW6
 RlVvng298B532dSolSAn7W8HRsbFrUVHtPrpNyO5zZmWrNXSAnj241tF9DL+jsZPDMrH2bqxqyuCu
 qdjDPrGG65lY6IKG61lSjJ9smk/DR/TyqCUDS2FJ03HKs8MES9cB0yA7DOzBl157xAKnIoFyyQLB0
 anJFk9CWmXRENQ==;
Date: Thu, 07 Aug 2025 21:42:34 +0300
Message-Id: <865xezotwl.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Pip Cet <pipcet@HIDDEN>
In-Reply-To: <87a54b81i8.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#79193: 31.0.50; feature/igc: crashes with no gui frame
References: <87tt2j83eo.fsf@HIDDEN> <87a54b81i8.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79193
Cc: gerd.moellmann@HIDDEN, jm@HIDDEN, eller.helmut@HIDDEN,
 79193 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: Gerd Möllmann <gerd.moellmann@HIDDEN>,
>  Helmut Eller <eller.helmut@HIDDEN>, 79193 <at> debbugs.gnu.org
> Date: Thu, 07 Aug 2025 17:51:12 +0000
> From:  Pip Cet via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> --- a/src/dispnew.c
> +++ b/src/dispnew.c
> @@ -1192,8 +1192,17 @@ line_hash_code (struct frame *f, struct glyph_row *row)
>  	     index into the frame's face cache), we need the hash
>  	     value to include something specific to the frame, and we
>  	     use the frame cache's address for that purpose.  */
> +#ifndef HAVE_MPS
>  	  if (glyph->frame && glyph->frame != f)
>  	    face_id += (uintptr_t) glyph->frame->face_cache;
> +#else
> +	  if (glyph->frame && glyph->frame != f)
> +	    {
> +	      Lisp_Object face_cache;
> +	      XSETVECTOR (face_cache, glyph->frame->face_cache);
> +	      face_id += igc_hash (face_cache);
> +	    }

Please make sure that the comment to this code is updated to account
for the HAVE_MPS case.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79193; Package emacs. Full text available.

Message received at 79193 <at> debbugs.gnu.org:


Received: (at 79193) by debbugs.gnu.org; 7 Aug 2025 18:18:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 07 14:18:57 2025
Received: from localhost ([127.0.0.1]:35875 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uk5Ca-0005Qd-Gz
	for submit <at> debbugs.gnu.org; Thu, 07 Aug 2025 14:18:56 -0400
Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:51529)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1uk5CW-0005Q6-9W
 for 79193 <at> debbugs.gnu.org; Thu, 07 Aug 2025 14:18:54 -0400
Received: by mail-wm1-x334.google.com with SMTP id
 5b1f17b1804b1-458aee6e86aso8340385e9.3
 for <79193 <at> debbugs.gnu.org>; Thu, 07 Aug 2025 11:18:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1754590726; x=1755195526; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=8dLnJqg0JDDmO26Hihkz//JNyUMwJFkhWRz8hQW8g0E=;
 b=Xr7Y36WfflGPOUfznV88bze+NTzEKEcKHdYFIvit868NenA39Y+aZvFOjflmCrzFTH
 kxMAmnfgYm94G/naUMsfyVDvm/OQI6ftfQNdaVJqPRLaE8Sh/BA69K+l0NkjtH2GutYV
 lbrlKbMM0om7rL/w4Dl9vxEGh+G1CaIiOYnPyrW8lr0VrTgctxKeQpMygAZWygj07EiF
 7g9fDymueDRIMuZtEoLf8lC2k4ym2b6fxPaWV28j2TPUMP4RorL4oqbYrmqe/GejXc09
 d3d6YLfFbGL6QXhbCWUv4AE97X6Lkld6n5qCEaif5xt0EjakadR0gW1yVLAWW/1IJC7K
 /44Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1754590726; x=1755195526;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=8dLnJqg0JDDmO26Hihkz//JNyUMwJFkhWRz8hQW8g0E=;
 b=UUo/wf8zIQCZmFhGJivIBX1O3yT7d7gJBMcWSV2uzz0pJ8KCG+W7Ysn0ob8z3e3GGX
 6S5xRPiqsyugd+r93fYkUdIOV2G2ElDr6rZIiKTPrRYXemLDzB8Co/MtY/QZIwb4UWvj
 FnW4D1JuKy8rm2ecjy18lER8mz0p7Iym7rtn1uJeBUWzsPnTpXBSuzrg1SkVBc4Jg7RH
 eYYkokwGREOD4HNy86MgolB8WTRav6Ldvah1TSKXBuHOP6J4C44vRkMd1MuJ0edUa3fe
 64ElQpNwdJ9R+F5x8SGn9lhjgIX3IfNYybZsWzzXOmSq1AzE3m/vwnrA4axsTZyFQj/Z
 89Yg==
X-Forwarded-Encrypted: i=1;
 AJvYcCUtf6kbGSzRnYjligJquEVOBOfen8QDX5XWFCeVLrSuep5y7gWMM9y+LHvBq2UnOezdzufrig==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yze4np1vBWLz8DsmMeVA0mg9N2pn0Gy4zFIdOnmCKn7ET3mMzpE
 pLoKl/xa9srZ1//973/bINP40QMgovQpv9uQk8MYdqWLhwIr7/JIwiBhwduwZXTb
X-Gm-Gg: ASbGncucQosXtjlCU7EYBaSea9F/O6hTrhIWkkjHNwb4sHAOdNw+L63agdP/tkvEULs
 4FUh806UYkMVVEgy7axyBzWr2XOaCxryTNWTxmaxxsgq1Xmfr1XyOSXU5is6S9btbvPZkMF6n7d
 YxWMsGuBrR4KDUt5N/QBwotInLCm2loLLOjkqhv6ni6pUqw0P+OXKHkvJQ2XIo+48J6ZAQVIfQ3
 +Qv344hyr8ysSy7ZGfHugM6o3KcEc1Efh3t3+cjtq5nznw3rJWOJHLXTVLn/eFo2AmXZ3okM02a
 XVY7mC4t+5KfJdIW1jpL7PfrBPcIGWPBpJK9s+wnBxeLFVFLKRTu+kHkZUi7Sd3B6/ZY0VLV+Gf
 atJtPK+XQ890PQLjOOdEO5nU+LZUzIZ0UIJkK7HouLs9RwGe98r3Fngp2jEP8KgvZS1K5iIJgyi
 /mB2pVokb9jGemKf20m1GslfH8QTOz8wM=
X-Google-Smtp-Source: AGHT+IEJTT5SOG08C701AgR2VTDhWm/GHypuV/WqRD2ZoMmiWgyIvwFvCj0u7UEFVc0YPfeb28eUVQ==
X-Received: by 2002:a05:600c:4f4c:b0:450:d37d:7c with SMTP id
 5b1f17b1804b1-459e95af955mr58232705e9.21.1754590725620; 
 Thu, 07 Aug 2025 11:18:45 -0700 (PDT)
Received: from pro2 (p200300e0b73acc00f4975b92ab4b3284.dip0.t-ipconnect.de.
 [2003:e0:b73a:cc00:f497:5b92:ab4b:3284])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-459e5879d76sm112657835e9.24.2025.08.07.11.18.44
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 07 Aug 2025 11:18:45 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Pip Cet <pipcet@HIDDEN>
Subject: Re: bug#79193: 31.0.50; feature/igc: crashes with no gui frame
In-Reply-To: <87a54b81i8.fsf@HIDDEN>
References: <87tt2j83eo.fsf@HIDDEN> <87a54b81i8.fsf@HIDDEN>
Date: Thu, 07 Aug 2025 20:18:44 +0200
Message-ID: <m2fre3gfln.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79193
Cc: john muhl <jm@HIDDEN>, Helmut Eller <eller.helmut@HIDDEN>,
 79193 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Pip Cet <pipcet@HIDDEN> writes:

> Pip Cet <pipcet@HIDDEN> writes:
>
>> "john muhl" <jm@HIDDEN> writes:
>
>>> (gdb) bt full
>>> #0  terminate_due_to_signal (sig=11, backtrace_limit=40) at emacs.c:444
>>> No locals.
>>> #1  0x000055555589a228 in handle_fatal_signal (sig=11) at sysdep.c:1793
>>> No locals.
>>> #2  0x000055555589a2b2 in deliver_thread_signal (sig=11, handler=0x55555589a210 <handle_fatal_signal>) at sysdep.c:1785
>>>         old_errno = 2
>>> #3  0x00005555558959ea in deliver_fatal_thread_signal (sig=11) at sysdep.c:1805
>>> No locals.
>>> #4  0x000055555589a342 in handle_sigsegv (sig=11, siginfo=0x555555bfb7f0 <sigsegv_stack+62928>, arg=0x555555bfb6c0 <sigsegv_stack+62624>) at sysdep.c:1943
>>>         fatal = false
>>> #5  <signal handler called>
>>> No locals.
>>> #6  0x00007ffff57d0327 in __GI_kill () at ../sysdeps/unix/syscall-template.S:120
>>> No locals.
>>> #7  0x0000555555b5f0f9 in sigHandle ()
>>> No symbol table info available.
>>> #8  <signal handler called>
>>> No locals.
>>> #9  0x00005555556ca07a in line_hash_code (f=0x7fff43aae670, row=0x555556059240) at dispnew.c:1196
>>>         c = 32
>>>         face_id = 0
>>>         glyph = 0x55556d380850
>>>         end = 0x55556d3820d0
>>>         hash = 0
>>
>> Could you show glyph->frame, f, *glyph->frame, and *f in this stack
>> frame?
>>
>> Is it possible we're simply failing to trace glyph->frame in
>> fix_glyph_matrix? Is there some reason those frames should be pinned,
>> but might fail to be?
>
> Assuming the answers are "yes" and "no", respectively, I think these two
> patches might help:
>
> John, would it be possible for you to keep your current Emacs session
> alive in gdb but start a new one with these patches to see whether the
> issue still happens?


I'd rather recommend trying with the commit I mentioned in
my other mail reverted. That should add the tracing of glyph::frame to
the pools. Then let's see further.

> Of course, this may fail to work because of the glyph pool tracing bug
> Helmut discovered; Helmut, do you have a preference for how to fix
> that?

Has there been proof of the bug meanwhile? In the case where Helmut said
that, glyph pools were not even used.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79193; Package emacs. Full text available.

Message received at 79193 <at> debbugs.gnu.org:


Received: (at 79193) by debbugs.gnu.org; 7 Aug 2025 18:05:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 07 14:05:01 2025
Received: from localhost ([127.0.0.1]:35853 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uk4z6-0004ka-OM
	for submit <at> debbugs.gnu.org; Thu, 07 Aug 2025 14:05:01 -0400
Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:45512)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1uk4z4-0004kH-5M
 for 79193 <at> debbugs.gnu.org; Thu, 07 Aug 2025 14:04:58 -0400
Received: by mail-wr1-x42b.google.com with SMTP id
 ffacd0b85a97d-3b786421e36so657445f8f.3
 for <79193 <at> debbugs.gnu.org>; Thu, 07 Aug 2025 11:04:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1754589891; x=1755194691; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=voCWKoS3VLJFQnhZyHFn+JSTTbEG9WVDxHZpmFih5gA=;
 b=eMZKYabSbLRr0AU4tCZIjchN3ZB/so11BQap6DgJqIi/ctAaRqSnWIVasyDKo9S9e/
 3qBQN6sLt25OFocJGRR/d1vxvdflPxIJMXxWiArFi6Hiq8baP/E2gi5fv5O6LaaeAo7m
 l9CRqIvQy6HlaGX8OvJHk983HmFqXuZFwG1RkLFBDF6hQL0rjyaBXtmvAa3+XCom19p9
 f0u2aVNu/AAsLtaB1NXOdeDoF3aAckOQZoHFWjAKkGqPKfK2opL9rc5ool7G3uSUW8zD
 /4Aigwasndqo0nVoaD0mGIy5c6BZOIaJgMOpGdU03+ilbjygCMRqTEyovskFd15AnLs4
 v+xg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1754589891; x=1755194691;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=voCWKoS3VLJFQnhZyHFn+JSTTbEG9WVDxHZpmFih5gA=;
 b=euux9wWx96LJ9E2Tf/VTcbInm7nFMmiAFX043Ys+u8ty5kIG1C4gpsaF0ioS/eiIA9
 KUJroeXAhjH3U5Cv6H18oexl3h8vBXZ9lw7lOd+u4kuesj1W/wCyBjhjX+ewshuZcFtM
 ddONkepDVYqc0qMdazt3GkMsp54vZJgauv8jTl/M/WpJi04/jl8qEqUVAzHMW4OXJbpp
 1P9kE08KKTwxKHiwKiRe9DiJRwyveeGxSLH6frYdaoLXnNE0cdZByaRaKsWq10dhQw/l
 ujSfaz04wdFFquqKglz1qszNZMA3bpZ42Rzxh386cy9WChRHNFMDaqGpUAcvuneyd5Vp
 sVKQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCVx49f98V+xUOryfc2F5RTyr3MrYb62230NJ7DrRcbMY2J1zTJ0SI8aoHQnmOsolsJcZj312Q==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yx6NFRULDLgORBg5j4Ai5pIkgrMTuYoudX/IGjzq2SdS8GF3dWw
 rEWmWr6g9CwH0ds6RtLwN1xUWjsWriQ/NIPS1fuVEBJ/WtJPa2HREDbB0JoLOrLQ
X-Gm-Gg: ASbGnctZH1e/Gv6uFvyB4ZUf6ag50NRwtrfsEJ2bd+Z8hKieHW3qe+GhlwMOKAH/l5v
 4nIvRa8LHEd3O7d6j39ZjG0/Mvv6ItFZEy4N9RFG2PW2g6Fb7QJICPnWZr9zwsoCEzgGgklzCiZ
 eIYdDUW0ezXrlBru9A5aWiVC0CO5I2MI/vq1y8ibWXe9oSd0beGUcd4g8n1MnoE/OI2wrv1Uq7q
 QjCnz+KIlYLQ53EtnJzSwU4r57lnW4J7rhK5FENPfGHRO18G3LsYJC+BNuAMcQW8bgOxt42HN5n
 gQe/JceS8as8kBnvOl1XSlZeO6+j6XsxgmkNlwjulONqErjdMZx+L+Kw4KgNyEFYQg7UYAlw1wx
 wAZ5l9MGgSfvbcpN4srhAVplIr3CxuAu/tqVcbiC+bjbEAUne4fwVmv3ZyIKB83KUbpbqhlHshe
 e1zCEWLjEw6NyhQFE1CY/cPrta/qhELHU=
X-Google-Smtp-Source: AGHT+IEBYzkS0JzXE12uCa+/noGz3nrlzQ+kgewbAY6QUFnMI65hi/b0Pep2F6yMSmN+o6fh9awthQ==
X-Received: by 2002:a05:6000:420d:b0:3b7:9c28:f846 with SMTP id
 ffacd0b85a97d-3b900b51065mr138342f8f.44.1754589891534; 
 Thu, 07 Aug 2025 11:04:51 -0700 (PDT)
Received: from pro2 (p200300e0b73acc00f4975b92ab4b3284.dip0.t-ipconnect.de.
 [2003:e0:b73a:cc00:f497:5b92:ab4b:3284])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-3b8fc28a830sm3035655f8f.16.2025.08.07.11.04.50
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 07 Aug 2025 11:04:51 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Pip Cet <pipcet@HIDDEN>
Subject: Re: bug#79193: 31.0.50; feature/igc: crashes with no gui frame
In-Reply-To: <m2wm7fggh1.fsf@HIDDEN>
References: <87tt2j83eo.fsf@HIDDEN> <87fre382ff.fsf@HIDDEN>
 <m2wm7fggh1.fsf@HIDDEN>
Date: Thu, 07 Aug 2025 20:04:50 +0200
Message-ID: <m2sei3gg8t.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79193
Cc: john muhl <jm@HIDDEN>, Helmut Eller <eller.helmut@HIDDEN>,
 79193 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:

> Pip Cet <pipcet@HIDDEN> writes:
>
>> Could you show glyph->frame, f, *glyph->frame, and *f in this stack
>> frame?
>>
>> Is it possible we're simply failing to trace glyph->frame in
>> fix_glyph_matrix?=20
>
> IIRC, the idea was to not trace the glyph::frame in fix_matrix because
> that is not enough in the tty case because not everything is a window in
> that case. That lead to fix_glyph_pool and fix_glyph_matrix in the tty
> windows could be a nop because window matrices on ttys are sub-allocated
> from the pools.
>
> No, for some reason I did
>
>   a19e818265e ; Fix last change
>
> which removed the frame from fix_glyph_pool but left the braces which I
> normally dislike if it's only a single statement.
>
> And secondly, I don't check for window-system frames in
> fix_glyph_matrix.

I take that back, I just did is differently:

igc.c<cl-packages>:
 2365     if (w->current_matrix && !w->current_matrix->pool)
 2366       IGC_FIX_CALL (ss, fix_glyph_matrix (ss, w->current_matrix));

the pool is null on window systems. So that's okay.But the frame is
missing.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79193; Package emacs. Full text available.

Message received at 79193 <at> debbugs.gnu.org:


Received: (at 79193) by debbugs.gnu.org; 7 Aug 2025 18:00:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 07 14:00:06 2025
Received: from localhost ([127.0.0.1]:35836 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uk4uL-0004WT-KL
	for submit <at> debbugs.gnu.org; Thu, 07 Aug 2025 14:00:05 -0400
Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:52334)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1uk4uI-0004UO-Bj
 for 79193 <at> debbugs.gnu.org; Thu, 07 Aug 2025 14:00:03 -0400
Received: by mail-wm1-x32e.google.com with SMTP id
 5b1f17b1804b1-459ddf8acf1so11953435e9.0
 for <79193 <at> debbugs.gnu.org>; Thu, 07 Aug 2025 11:00:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1754589596; x=1755194396; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=1H5WyGAFjz3z7/hCJq8nVEjlJA2jSm8mfJ0ZkSdx23A=;
 b=C+p3ia+MZtvd1nZxoFVB/ZaleRTcZELI2L3QFG9WvT/hTEhw1CpPEZWeZDE3KvDJVd
 e5IBkxy8S8Wvh0AsN5QOz3AWrSHP7+/vZGSzJbWYcPL0LTBkP7NRtz45f7dDC3shgevG
 fUG9xenBZKQu6ChJxecmQ6lA3s5qClXep9kCyMhuFN0OeNCYl0AMBJr2Kc6DIbNB55Xv
 oaeFtCaqSPHRY3sdwE8kRfvpv/fRAFCclvHhSln5nBIQiqWIzZ5u43pGmjecYEk2kwOz
 6bcqc0cyucJskt44lBT5MnDrQAt07K4aksvawbgzzTxbF5oWqYV2oWPI6kC8MAbT1h61
 svdw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1754589596; x=1755194396;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=1H5WyGAFjz3z7/hCJq8nVEjlJA2jSm8mfJ0ZkSdx23A=;
 b=rfQcyIaRlztgSOt6VDedblpFKgWD+92tzCtgczc8hSGKjSyyglRBGwx1q56PyvxXwM
 mE1qbAh00+E38qrmVgC4hQg+cJhb1Tfty2idZWsuW44UQkV40cekuo2JKGpCK4BgVq3e
 jCtLUyK98Nh/NyT3mEhofeLxUJAdtMhxX6h+3iO5+u/2erkOuNCKex7sETq1jhk9PGXI
 1l7icr/WjGcIXrZxTPWvrI5R+eZ7pwbCRcSu0+YorvKnvh23E0Il+OgXgFF9cXO2Wq1I
 vx7EvgLm8Ak6qkbAOWeYLopa8V79CGVA2ht++JX1ahAIjk4efh+6wrYQP2IG7IedaMOw
 QTFw==
X-Forwarded-Encrypted: i=1;
 AJvYcCXAO1SHGiNJwKAeG1JjauTktr4bltQjYd6OYcKETjM/SS8VOp1rq4lbDFkrEGYRUn8OgJofSA==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yx6YyU/zCnHMBgKXy6hWQ2kQZjFyodBWzLVDEPVhwg9UyIkl79G
 TNyzrta0diZLhSH3kbAqEnRBawZkfCVnHnVIQDV/i6KXZ+gP/SnMH99zXPTaCsoy
X-Gm-Gg: ASbGncvJ1cmyjJ8zO66sBZcQFK+TQfDwmWK+Kqxdat7vmu6EUfSQiXG6Jj8dg/B2gXh
 PAjI0xSImHei0335GkFHE/PNDmtcNMzpQjF+GQlnNNSesXspQwM3NG05e4NweGx+9/TXa72AF/F
 jH3PBdxHJkPux7M/Uj4ni2Qtic878sPuEbnBbyu13zh4FRoGopk4OOemO5t6j0RCrpG1UtLxfDC
 is2Hf6JqTmR6x2K0cR59RU0Ddzc9vUQvhuQcs5OryH3//xIoSYp1Geri9CO9fvh7bDOUPa5iQPK
 KwzcoQ5FUn4rRXwcG+O6hM6UKwXp5gyaYiMxLikHuLE9fDpXkS+Rg70KI6vhfbbzQVviOCWFlJ+
 i8yYVPBVojpM1zEmTxdi/RwLpuf6w+jKMOrzK5e45iSfN0eR7hpi8OQVfq8Sk/y3H71abD4G+FJ
 al7u7fn+gyGFXi3npLQkIDKYiiG7zJi5A=
X-Google-Smtp-Source: AGHT+IF9uZpPlz7kZ6gR64Q/VR6wVR+7yqJ6uKo4xBbkIm8WvbKkbEs+Oq8GxEVyFyqyNjNJAk8hdw==
X-Received: by 2002:a05:600c:3b20:b0:458:bb0e:8cda with SMTP id
 5b1f17b1804b1-459e70d7840mr80998595e9.17.1754589595592; 
 Thu, 07 Aug 2025 10:59:55 -0700 (PDT)
Received: from pro2 (p200300e0b73acc00f4975b92ab4b3284.dip0.t-ipconnect.de.
 [2003:e0:b73a:cc00:f497:5b92:ab4b:3284])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-458953eb7acsm342494675e9.28.2025.08.07.10.59.54
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 07 Aug 2025 10:59:55 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Pip Cet <pipcet@HIDDEN>
Subject: Re: bug#79193: 31.0.50; feature/igc: crashes with no gui frame
In-Reply-To: <87fre382ff.fsf@HIDDEN>
References: <87tt2j83eo.fsf@HIDDEN> <87fre382ff.fsf@HIDDEN>
Date: Thu, 07 Aug 2025 19:59:54 +0200
Message-ID: <m2wm7fggh1.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79193
Cc: john muhl <jm@HIDDEN>, Helmut Eller <eller.helmut@HIDDEN>,
 79193 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Pip Cet <pipcet@HIDDEN> writes:

> Could you show glyph->frame, f, *glyph->frame, and *f in this stack
> frame?
>
> Is it possible we're simply failing to trace glyph->frame in
> fix_glyph_matrix? 

IIRC, the idea was to not trace the glyph::frame in fix_matrix because
that is not enough in the tty case because not everything is a window in
that case. That lead to fix_glyph_pool and fix_glyph_matrix in the tty
windows could be a nop because window matrices on ttys are sub-allocated
from the pools.

No, for some reason I did

  a19e818265e ; Fix last change

which removed the frame from fix_glyph_pool but left the braces which I
normally dislike if it's only a single statement.

And secondly, I don't check for window-system frames in
fix_glyph_matrix.

And my memory of that is entirely erase at the moment. How weird!
What happened?

> Is there some reason those frames should be pinned, but might fail to
> be?

No, that's not required.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79193; Package emacs. Full text available.

Message received at 79193 <at> debbugs.gnu.org:


Received: (at 79193) by debbugs.gnu.org; 7 Aug 2025 17:51:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 07 13:51:28 2025
Received: from localhost ([127.0.0.1]:35821 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uk4m0-0004AO-EJ
	for submit <at> debbugs.gnu.org; Thu, 07 Aug 2025 13:51:28 -0400
Received: from mail-24418.protonmail.ch ([109.224.244.18]:10413)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <pipcet@HIDDEN>)
 id 1uk4ly-0004A3-7x
 for 79193 <at> debbugs.gnu.org; Thu, 07 Aug 2025 13:51:27 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=protonmail3; t=1754589078; x=1754848278;
 bh=spm7rV2oCtH6h0y3n3gjjedn/JteHeJXYl4uumQtR80=;
 h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References:
 Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID:
 Message-ID:BIMI-Selector;
 b=SfJSGWtmF0I4U8YBkVYqQEgJ1jycRmJPCgVoqVHk6Ko5RwNtWt+EQkL67iXews7cU
 iYhZFbqi498KmTmc108neDH5JN5dCqzyoyKHKrLGdNHRQMGh8Y4wqkuTlA1wpoYSNr
 uuL1Sh+We8BPKSUq+NU/ZBkyq9F6waC9TGj9MeWEv/FfuYRowB029cM/b5g38y8xaA
 5bEYxWgh6bjUYO0k7f/UjxBTneFDm2ZIPGW0Isnt33kvfxi4xZSW/dIGSAZ6e9N8VJ
 +QPYht1JxAhcg7l3FzZs0e2yJfsZxAQ75+JRZbe3/8YsrPfFq6k8kpG258qhXi5jQu
 yVRNYHm/4bbvw==
Date: Thu, 07 Aug 2025 17:51:12 +0000
To: john muhl <jm@HIDDEN>
From: Pip Cet <pipcet@HIDDEN>
Subject: Re: bug#79193: 31.0.50; feature/igc: crashes with no gui frame
Message-ID: <87a54b81i8.fsf@HIDDEN>
In-Reply-To: <87tt2j83eo.fsf@HIDDEN>
References: <87tt2j83eo.fsf@HIDDEN>
Feedback-ID: 112775352:user:proton
X-Pm-Message-ID: edf31745614e60e9d83657cddab6f342f462d586
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79193
Cc: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>,
 Helmut Eller <eller.helmut@HIDDEN>, 79193 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Pip Cet <pipcet@HIDDEN> writes:

> "john muhl" <jm@HIDDEN> writes:

>> (gdb) bt full
>> #0  terminate_due_to_signal (sig=3D11, backtrace_limit=3D40) at emacs.c:=
444
>> No locals.
>> #1  0x000055555589a228 in handle_fatal_signal (sig=3D11) at sysdep.c:179=
3
>> No locals.
>> #2  0x000055555589a2b2 in deliver_thread_signal (sig=3D11, handler=3D0x5=
5555589a210 <handle_fatal_signal>) at sysdep.c:1785
>>         old_errno =3D 2
>> #3  0x00005555558959ea in deliver_fatal_thread_signal (sig=3D11) at sysd=
ep.c:1805
>> No locals.
>> #4  0x000055555589a342 in handle_sigsegv (sig=3D11, siginfo=3D0x555555bf=
b7f0 <sigsegv_stack+62928>, arg=3D0x555555bfb6c0 <sigsegv_stack+62624>) at =
sysdep.c:1943
>>         fatal =3D false
>> #5  <signal handler called>
>> No locals.
>> #6  0x00007ffff57d0327 in __GI_kill () at ../sysdeps/unix/syscall-templa=
te.S:120
>> No locals.
>> #7  0x0000555555b5f0f9 in sigHandle ()
>> No symbol table info available.
>> #8  <signal handler called>
>> No locals.
>> #9  0x00005555556ca07a in line_hash_code (f=3D0x7fff43aae670, row=3D0x55=
5556059240) at dispnew.c:1196
>>         c =3D 32
>>         face_id =3D 0
>>         glyph =3D 0x55556d380850
>>         end =3D 0x55556d3820d0
>>         hash =3D 0
>
> Could you show glyph->frame, f, *glyph->frame, and *f in this stack
> frame?
>
> Is it possible we're simply failing to trace glyph->frame in
> fix_glyph_matrix? Is there some reason those frames should be pinned,
> but might fail to be?

Assuming the answers are "yes" and "no", respectively, I think these two
patches might help:

John, would it be possible for you to keep your current Emacs session
alive in gdb but start a new one with these patches to see whether the
issue still happens?

From 2fb119758582ab202e1691bd14d7545c6cbf948c Mon Sep 17 00:00:00 2001
From: Pip Cet <pipcet@HIDDEN>
Date: Thu, 7 Aug 2025 17:41:14 +0000
Subject: [PATCH 1/2] [MPS] Fix hashing of text terminal lines (bug#79193)

* src/dispnew.c (line_hash_code) [MPS]: Use 'igc_hash', not the
address of a movable object, as a hash value.
---
 src/dispnew.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/dispnew.c b/src/dispnew.c
index 1eaab64d876..755422b7cf1 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -1192,8 +1192,17 @@ line_hash_code (struct frame *f, struct glyph_row *r=
ow)
 =09     index into the frame's face cache), we need the hash
 =09     value to include something specific to the frame, and we
 =09     use the frame cache's address for that purpose.  */
+#ifndef HAVE_MPS
 =09  if (glyph->frame && glyph->frame !=3D f)
 =09    face_id +=3D (uintptr_t) glyph->frame->face_cache;
+#else
+=09  if (glyph->frame && glyph->frame !=3D f)
+=09    {
+=09      Lisp_Object face_cache;
+=09      XSETVECTOR (face_cache, glyph->frame->face_cache);
+=09      face_id +=3D igc_hash (face_cache);
+=09    }
+#endif
 =09  if (FRAME_MUST_WRITE_SPACES (f))
 =09    c -=3D SPACEGLYPH;
 =09  hash =3D (((hash << 4) + (hash >> 24)) & 0x0fffffff) + c;
--=20
2.50.0

From 88bd0327b90ba599a31e5ecbb4eabb36c557f7b8 Mon Sep 17 00:00:00 2001
From: Pip Cet <pipcet@HIDDEN>
Date: Thu, 7 Aug 2025 17:42:29 +0000
Subject: [PATCH 2/2] [MPS] Trace frame pointer in glyphs (bug#79193)

* src/igc.c (fix_glyph_pool):
(fix_glyph_matrix): Trace the ->frame pointer in a glyph structure
when fixing the glyph.
---
 src/igc.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/igc.c b/src/igc.c
index 765b6a47fb2..966dcb30ac2 100644
--- a/src/igc.c
+++ b/src/igc.c
@@ -2282,6 +2282,7 @@ fix_glyph_pool (mps_ss_t ss, struct glyph_pool *pool)
     for (ptrdiff_t i =3D 0; i < pool->nglyphs; ++i)
       {
 =09IGC_FIX12_OBJ (ss, &pool->glyphs[i].object);
+=09IGC_FIX12_PVEC (ss, &pool->glyphs[i].frame);
       }
   }
   MPS_SCAN_END (ss);
@@ -2304,7 +2305,10 @@ fix_glyph_matrix (mps_ss_t ss, struct glyph_matrix *=
matrix)
 =09      struct glyph *glyph =3D row->glyphs[area];
 =09      struct glyph *end_glyph =3D glyph + row->used[area];
 =09      for (; glyph < end_glyph; ++glyph)
-=09=09IGC_FIX12_OBJ (ss, &glyph->object);
+=09=09{
+=09=09  IGC_FIX12_OBJ (ss, &glyph->object);
+=09=09  IGC_FIX12_PVEC (ss, &glyph->frame);
+=09=09}
 =09    }
 =09}
     IGC_FIX12_PVEC (ss, &matrix->buffer);
--=20
2.50.0

Of course, this may fail to work because of the glyph pool tracing bug
Helmut discovered; Helmut, do you have a preference for how to fix that?
My preference would be to simply use igc_xzalloc_ambig, but I also have
code here to make glyph pools, and glyph arrays, special IGC object
types.

Thanks!
Pip





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79193; Package emacs. Full text available.

Message received at 79193 <at> debbugs.gnu.org:


Received: (at 79193) by debbugs.gnu.org; 7 Aug 2025 17:31:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 07 13:31:41 2025
Received: from localhost ([127.0.0.1]:35785 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uk4Sq-0003GS-Ri
	for submit <at> debbugs.gnu.org; Thu, 07 Aug 2025 13:31:41 -0400
Received: from mail-4316.protonmail.ch ([185.70.43.16]:60039)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <pipcet@HIDDEN>)
 id 1uk4Sn-0003G8-8N
 for 79193 <at> debbugs.gnu.org; Thu, 07 Aug 2025 13:31:39 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=protonmail3; t=1754587889; x=1754847089;
 bh=maywCmXngM4+40PI/LCcOzY/k3YRVqjT0i8Q7fCPM8Y=;
 h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References:
 Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID:
 Message-ID:BIMI-Selector;
 b=gv7xa1qFKFbZSCvdXpcmgltFe/D1O5sir5d30gIBAtzjjODPdlfBNEK72YD+BlBg+
 fh1iJQHz+oVs+knrA1Gg76aPNHEjP+MZ0dlrAi9sXYs0B//hWoE6aWi0g6IiPFLrmf
 0R7e2glWhVjb1bfbGGTNcHTnB/sFq4P93gn3KOHwvUcvxWFvUza5nayTt3HxaXe3po
 zOxWfNKZnt1EjF4wNnzu/gTqOE6Z+i/YFoimSfKcv54SxfIWJ9SfvXdax1dQD6yPXF
 1upyYfo3lQpLrLDFV6G3QtHUYz0WGECQspPw6dNoLIPsNZAuWAleiPuIhU/mBjgVNe
 PoEna7qvXo+wg==
Date: Thu, 07 Aug 2025 17:31:23 +0000
To: john muhl <jm@HIDDEN>
From: Pip Cet <pipcet@HIDDEN>
Subject: Re: bug#79193: 31.0.50; feature/igc: crashes with no gui frame
Message-ID: <87fre382ff.fsf@HIDDEN>
In-Reply-To: <87tt2j83eo.fsf@HIDDEN>
References: <87tt2j83eo.fsf@HIDDEN>
Feedback-ID: 112775352:user:proton
X-Pm-Message-ID: cd19f98dcc928c32911ff98626cd74f038b23083
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79193
Cc: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>,
 Helmut Eller <eller.helmut@HIDDEN>, 79193 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

"john muhl" <jm@HIDDEN> writes:

> I still have the crashed session attached to gdb around if there is
> anything else that would help.

Please keep it around, and also generate a coredump file in case we
accidentally lose it (the gdb command to do that is "gcore")

> (gdb) bt full
> #0  terminate_due_to_signal (sig=3D11, backtrace_limit=3D40) at emacs.c:4=
44
> No locals.
> #1  0x000055555589a228 in handle_fatal_signal (sig=3D11) at sysdep.c:1793
> No locals.
> #2  0x000055555589a2b2 in deliver_thread_signal (sig=3D11, handler=3D0x55=
555589a210 <handle_fatal_signal>) at sysdep.c:1785
>         old_errno =3D 2
> #3  0x00005555558959ea in deliver_fatal_thread_signal (sig=3D11) at sysde=
p.c:1805
> No locals.
> #4  0x000055555589a342 in handle_sigsegv (sig=3D11, siginfo=3D0x555555bfb=
7f0 <sigsegv_stack+62928>, arg=3D0x555555bfb6c0 <sigsegv_stack+62624>) at s=
ysdep.c:1943
>         fatal =3D false
> #5  <signal handler called>
> No locals.
> #6  0x00007ffff57d0327 in __GI_kill () at ../sysdeps/unix/syscall-templat=
e.S:120
> No locals.
> #7  0x0000555555b5f0f9 in sigHandle ()
> No symbol table info available.
> #8  <signal handler called>
> No locals.
> #9  0x00005555556ca07a in line_hash_code (f=3D0x7fff43aae670, row=3D0x555=
556059240) at dispnew.c:1196
>         c =3D 32
>         face_id =3D 0
>         glyph =3D 0x55556d380850
>         end =3D 0x55556d3820d0
>         hash =3D 0

Could you show glyph->frame, f, *glyph->frame, and *f in this stack
frame?

Is it possible we're simply failing to trace glyph->frame in
fix_glyph_matrix? Is there some reason those frames should be pinned,
but might fail to be?

Thanks!

Pip





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79193; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Aug 2025 17:09:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 07 13:09:52 2025
Received: from localhost ([127.0.0.1]:35745 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uk47j-0002CN-JE
	for submit <at> debbugs.gnu.org; Thu, 07 Aug 2025 13:09:52 -0400
Received: from lists.gnu.org ([2001:470:142::17]:58088)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <jm@HIDDEN>) id 1uk47g-0002Bx-2R
 for submit <at> debbugs.gnu.org; Thu, 07 Aug 2025 13:09:49 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <jm@HIDDEN>) id 1uk47W-0008OF-OJ
 for bug-gnu-emacs@HIDDEN; Thu, 07 Aug 2025 13:09:40 -0400
Received: from fout-a3-smtp.messagingengine.com ([103.168.172.146])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <jm@HIDDEN>) id 1uk47R-0007W2-On
 for bug-gnu-emacs@HIDDEN; Thu, 07 Aug 2025 13:09:38 -0400
Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44])
 by mailfout.phl.internal (Postfix) with ESMTP id BBA88EC02C8
 for <bug-gnu-emacs@HIDDEN>; Thu,  7 Aug 2025 13:09:30 -0400 (EDT)
Received: from phl-mailfrontend-01 ([10.202.2.162])
 by phl-compute-04.internal (MEProxy); Thu, 07 Aug 2025 13:09:30 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pub.pink; h=cc
 :content-transfer-encoding:content-type:content-type:date:date
 :from:from:in-reply-to:message-id:mime-version:reply-to:subject
 :subject:to:to; s=fm3; t=1754586570; x=1754672970; bh=L3/iz4C6zt
 nQb0fX1QgV/63XgC0E4KbGtnrfeetYowE=; b=Sa0GqvjGNye/HsH8kP64mZSLvS
 nAk4uH8QRsL24giDLGFjo5znCExIblKXCpmGwV1/j08onKSMW2cbjzz1ZNnK/mtP
 E23U8NG5Cx1y94iXpqoBBr9s3rlf0XRU7GKvg1YoNjRpuZnDrVego1ED2uN08X2m
 khoBlpA0yCnDoFLwrlDZEBoOX4Ie9Lq56C+pv4KgZc5LFdq53yyCnO8XVqlcCp3z
 HctzbsfoUH0oWQlTz7c9NHqx/RarxGsqWZvlOctUSXx3Z8aCwluNurXb4G2WvEEF
 Z0zBwjk+HCHCC8phAFUtLM+in8HLEQBvD5mm7zWvLUQnYCBSlyGUGrSujKEg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :content-type:date:date:feedback-id:feedback-id:from:from
 :in-reply-to:message-id:mime-version:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=
 1754586570; x=1754672970; bh=L3/iz4C6ztnQb0fX1QgV/63XgC0E4KbGtnr
 feetYowE=; b=dKlpGclr9YBRaU2yMP4RCcqFER+Mr2s4WGpJ6doz3vzf4MpVqVv
 T7UPgbsvPGj5rC/cfbbVphqBd3M532VXAc+HsZTA/dWBeXGyJ4p1WHGXeAdx9FbF
 EtgIc1lQ77Yiy6MedKlDnR4fHMyGD9UzCwes9g6SqqwakeAEHTiMTNFrP0VB2i+i
 qZVYIDH7mDYrMBlrc6e5nQXoC+Ojaa7uvLBT0JPwhgK1/mfj+gy1XG71sPFtI0W8
 8Qf3lXv96ijPlN1fae42T007g1t0uRwbZI/39JDlLiQh19amUDBOba6sgSPfuKXa
 2e2S2p4bIQaEXyasGlVObXls8WCgBJAfkwg==
X-ME-Sender: <xms:yt2UaETXWFIPaklZtTKqu0IzQbvxLltmlFtP6aYRDb0p673rqbYb-Q>
 <xme:yt2UaNCMm1Qn-cQPWu_ITwDkO7vwALw1cr1Lu63Ije7JRDZ3DEj9yKfhPm16QtTuy
 QP2Q9xhAITXK2zx4Og>
X-ME-Received: <xmr:yt2UaCfpHZ0MvNrIBzSQ_2zi5Dk2x0jBwq8Zv0EBPCSpczZia5zkCg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduvddugeelucetufdoteggodetrf
 dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu
 rghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtgfesthhqredttddtje
 enucfhrhhomhepjhhohhhnuchmuhhhlhcuoehjmhesphhusgdrphhinhhkqeenucggtffr
 rghtthgvrhhnpeetuefhgfeuieejteekffejudettdeuueekueffkeeileekueegleefke
 fhgefhueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm
 pehjmhesphhusgdrphhinhhkpdhnsggprhgtphhtthhopedupdhmohguvgepshhmthhpoh
 huthdprhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhg
X-ME-Proxy: <xmx:yt2UaOO6SwPKlWEi6WVjfprVfHdT0O1HlWN-YYQ-tTP-EbN5BU1t-A>
 <xmx:yt2UaM4F4Pw0KpTaimAUaFirxSsdx1WqFQBDMR3s75avaCwtMtidTQ>
 <xmx:yt2UaCKCpo9YZMke5Ntqvz32pUVnZHs4Fk-Qia-SvrDf3ZLFJN_YkA>
 <xmx:yt2UaGfh0veCLDddhLNOJoZKjf6e6S5NXNr86pTc6cXZCOHOE6slqg>
 <xmx:yt2UaJC8RFunhgQToqb6QGWePx8Bwj0B7jkO9CXPJkJtbBzdOHA1hrVd>
Feedback-ID: i74194916:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bug-gnu-emacs@HIDDEN>; Thu, 7 Aug 2025 13:09:30 -0400 (EDT)
From: john muhl <jm@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 31.0.50; feature/igc: crashes with no gui frame
X-Debbugs-Cc: 
Date: Thu, 07 Aug 2025 12:09:19 -0500
Message-ID: <87tt2j83eo.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=103.168.172.146; envelope-from=jm@HIDDEN;
 helo=fout-a3-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

Recently (since a0757e0ac05) Emacs has been crashing regularly when
running with only tty frames. It could be a coincidence but keeping a
gui frame around has let me run crash free for days, then I get rid of
that frame and within a couple of hours at most Emacs crashes.

I haven=E2=80=99t been able to find a recipe that reliably crashes but hit =
them
in various everyday usage like C-n in a dired buffer, C-xb otherbuf TAB,
C/M-v, etc. This latest crash was after pressing SPC in a gnus summary
buffer to go the next unread article.

I still have the crashed session attached to gdb around if there is
anything else that would help.

(gdb) bt full
#0  terminate_due_to_signal (sig=3D11, backtrace_limit=3D40) at emacs.c:444
No locals.
#1  0x000055555589a228 in handle_fatal_signal (sig=3D11) at sysdep.c:1793
No locals.
#2  0x000055555589a2b2 in deliver_thread_signal (sig=3D11, handler=3D0x5555=
5589a210 <handle_fatal_signal>) at sysdep.c:1785
        old_errno =3D 2
#3  0x00005555558959ea in deliver_fatal_thread_signal (sig=3D11) at sysdep.=
c:1805
No locals.
#4  0x000055555589a342 in handle_sigsegv (sig=3D11, siginfo=3D0x555555bfb7f=
0 <sigsegv_stack+62928>, arg=3D0x555555bfb6c0 <sigsegv_stack+62624>) at sys=
dep.c:1943
        fatal =3D false
#5  <signal handler called>
No locals.
#6  0x00007ffff57d0327 in __GI_kill () at ../sysdeps/unix/syscall-template.=
S:120
No locals.
#7  0x0000555555b5f0f9 in sigHandle ()
No symbol table info available.
#8  <signal handler called>
No locals.
#9  0x00005555556ca07a in line_hash_code (f=3D0x7fff43aae670, row=3D0x55555=
6059240) at dispnew.c:1196
        c =3D 32
        face_id =3D 0
        glyph =3D 0x55556d380850
        end =3D 0x55556d3820d0
        hash =3D 0
#10 0x00005555556c83f2 in scrolling (frame=3D0x7fff43aae670) at dispnew.c:5=
827
        unchanged_at_top =3D 0
        unchanged_at_bottom =3D 45
        window_size =3D 0
        changed_lines =3D 0
        i =3D 0
        height =3D 45
        free_at_end_vpos =3D 45
        current_matrix =3D 0x55555632fe30
        desired_matrix =3D 0x555555ccc520
        old_hash =3D 0x7fffffff95d0
        sa_avail =3D 15664
        sa_count =3D {
          bytes =3D 192
        }
        new_hash =3D 0x7fffffff9684
        draw_cost =3D 0x7fffffff9738
        old_draw_cost =3D 0x7fffffff97ec
#11 0x00005555556b9749 in write_matrix (f=3D0x7fff43aae670, inhibit_id_p=3D=
false, updating_menu_p=3Dfalse) at dispnew.c:5772
        first_row =3D 0
        last_row =3D 21845
#12 0x00005555556b906d in combine_updates_for_frame (f=3D0x7fff43aae670, in=
hibit_scrolling=3Dfalse) at dispnew.c:4085
        root =3D 0x7fff43aae670
        z_order =3D {
          i =3D 0x7fff44c58d0b
        }
        topmost_child =3D 0x0
#13 0x00005555556ba424 in combine_updates (roots=3D...) at dispnew.c:4135
        root =3D 0x7fff43aae670
#14 0x000055555570f6f6 in redisplay_internal () at xdisp.c:17807
        tty_root_frames =3D {
          i =3D 0x7fff44c4d4cb
        }
        MAX_HSCROLL_RETRIES =3D MAX_HSCROLL_RETRIES
        MAX_GARBAGED_FRAME_RETRIES =3D MAX_GARBAGED_FRAME_RETRIES
        w =3D 0x7fff467b0748
        sw =3D 0x7fff467b0748
        fr =3D 0x7fff4399e000
        must_finish =3D true
        match_p =3D true
        tlbufpos =3D {
          charpos =3D 6192,
          bytepos =3D 6197
        }
        tlendpos =3D {
          charpos =3D 0,
          bytepos =3D 0
        }
        number_of_visible_frames =3D 2
        sf =3D 0x7fff4399e000
        polling_stopped_here =3D true
        tail =3D {
          i =3D 0x0
        }
        frame =3D {
          i =3D 0x7fff43aae675
        }
        hscroll_retries =3D 0
        garbaged_frame_retries =3D 0
        consider_all_windows_p =3D true
        update_miniwindow_p =3D true
        count =3D {
          bytes =3D 96
        }
        previous_frame =3D 0x7fff4399e000
        current_matrices_cleared =3D false
        new_count =3D 32767
#15 0x00005555557179b9 in redisplay () at xdisp.c:16850
No locals.
#16 0x000055555585d1d0 in read_char (commandflag=3D1, map=3D..., prev_event=
=3D..., used_mouse_menu=3D0x7fffffffd4df, end_time=3D0x0) at keyboard.c:2689
        echo_current =3D true
        c =3D {
          i =3D 0x0
        }
        local_getcjmp =3D {{
            __jmpbuf =3D {55832, 0, 160, 55832, 93824999301240, 55832, 5583=
2, 55832},
            __mask_was_saved =3D 55832,
            __saved_mask =3D {
              __val =3D {55832, 140737488342704, 93824995580517, 0, 192, 14=
0734347075432, 140734347075435, 160, 445, 118, 563, 6, 557, 2, 140734576048=
900, 1030}
            }
          }}
        save_jump =3D {{
            __jmpbuf =3D {14323566176, 24, 140737488342304, 93824997369764,=
 59136, 12884901912, 140734347075432, 140734347075435},
            __mask_was_saved =3D -12976,
            __saved_mask =3D {
              __val =3D {93824997369689, 140734347075432, 140734347075411, =
55832, 140734347075435, 140737488342400, 93824996183549, 96, 14073434707541=
1, 55832, 140734347075435, 140737488342704, 93824995566605, 0, 140734576049=
085, 56}
            }
          }}
        tem =3D {
          i =3D 0x7fffe8001a00
        }
        save =3D {
          i =3D 0x7fff44c3df68
        }
        previous_echo_area_message =3D {
          i =3D 0x0
        }
        also_record =3D {
          i =3D 0x0
        }
        reread =3D false
        recorded =3D false
        polling_stopped_here =3D false
        orig_kboard =3D 0x555556c4a1b0
        jmpcount =3D {
          bytes =3D 1
        }
        c_volatile =3D {
          i =3D 0x38
        }
#17 0x0000555555859b1a in read_key_sequence (keybuf=3D0x7fffffffd9f0, promp=
t=3D..., dont_downcase_last=3Dfalse, can_return_switch_frame=3Dtrue, fix_cu=
rrent_buffer=3Dtrue, prevent_redisplay=3Dfalse, disable_text_conversion_p=
=3Dfalse) at keyboard.c:11197
        interrupted_kboard =3D 0x555556c4a1b0
        interrupted_frame =3D 0x7fff4399e000
        key =3D {
          i =3D 0x7d2
        }
        used_mouse_menu =3D false
        echo_local_start =3D 0
        last_real_key_start =3D 0
        keys_local_start =3D 0
        new_binding =3D {
          i =3D 0x0
        }
        count =3D {
          bytes =3D 96
        }
        t =3D 0
        echo_start =3D 0
        keys_start =3D 0
        current_binding =3D {
          i =3D 0x7fff44c3df6b
        }
        first_unbound =3D 31
        mock_input =3D 0
        used_mouse_menu_history =3D {false <repeats 30 times>}
        fkey =3D {
          parent =3D {
            i =3D 0x7fff439da8ab
          },
          map =3D {
            i =3D 0x7fff439da8ab
          },
          start =3D 0,
          end =3D 0
        }
        keytran =3D {
          parent =3D {
            i =3D 0x7fff4398eeab
          },
          map =3D {
            i =3D 0x7fff4398eeab
          },
          start =3D 0,
          end =3D 0
        }
        indec =3D {
          parent =3D {
            i =3D 0x7fff439da893
          },
          map =3D {
            i =3D 0x7fff439da893
          },
          start =3D 0,
          end =3D 0
        }
        shift_translated =3D false
        delayed_switch_frame =3D {
          i =3D 0x0
        }
        original_uppercase =3D {
          i =3D 0x0
        }
        original_uppercase_position =3D -1
        starting_buffer =3D 0x7fff46678f50
        fake_prefixed_keys =3D {
          i =3D 0x0
        }
        first_event =3D {
          i =3D 0x0
        }
        second_event =3D {
          i =3D 0x0
        }
#18 0x00005555558577a6 in command_loop_1 () at keyboard.c:1441
        keybuf =3D {{
            i =3D 0x82
          }, {
            i =3D 0x555555958162 <builtin_lisp_symbol+34>
          }, {
            i =3D 0x56069dd0
          }, {
            i =3D 0x0
          }, {
            i =3D 0x7fffffffda90
          }, {
            i =3D 0x555555958bd1 <unbind_to+305>
          }, {
            i =3D 0x0
          }, {
            i =3D 0x0
          }, {
            i =3D 0x555556069e30
          }, {
            i =3D 0x0
          }, {
            i =3D 0x0
          }, {
            i =3D 0xc
          }, {
            i =3D 0x13e80
          }, {
            i =3D 0x38
          }, {
            i =3D 0x7fff46678f55
          }, {
            i =3D 0x0
          }, {
            i =3D 0x0
          }, {
            i =3D 0x0
          }, {
            i =3D 0x60
          }, {
            i =3D 0x0
          }, {
            i =3D 0x7fffffffdbf0
          }, {
            i =3D 0x555555858ca3 <cmd_error+915>
          }, {
            i =3D 0x555556c4a1b0
          }, {
            i =3D 0x555556c4a1b0
          }, {
            i =3D 0x56069dd0
          }, {
            i =3D 0x7fff44a6ed68
          }, {
            i =3D 0x0
          }, {
            i =3D 0x0
          }, {
            i =3D 0x0
          }, {
            i =3D 0x0
          }}
        i =3D 1
        last_pt =3D 6192
        cmd =3D {
          i =3D 0x2aa9edeab5a8
        }
        prev_modiff =3D 8343
        prev_buffer =3D 0x7fff46678f50
#19 0x000055555595ebd1 in internal_condition_case (bfun=3D0x5555558571c0 <c=
ommand_loop_1>, handlers=3D..., hfun=3D0x555555858910 <cmd_error>) at eval.=
c:1713
        val =3D {
          i =3D 0x0
        }
        c =3D 0x555555cc74b0
#20 0x0000555555857173 in command_loop_2 (handlers=3D...) at keyboard.c:1180
        val =3D {
          i =3D 0x2
        }
#21 0x000055555595dc6f in internal_catch (tag=3D..., func=3D0x555555857150 =
<command_loop_2>, arg=3D...) at eval.c:1393
        val =3D {
          i =3D 0xa8
        }
        c =3D 0x555555cc7320
#22 0x000055555585638e in command_loop () at keyboard.c:1158
No locals.
#23 0x0000555555856160 in recursive_edit_1 () at keyboard.c:766
        count =3D {
          bytes =3D 32
        }
        val =3D {
          i =3D 0x55555595e141 <record_unwind_protect+129>
        }
#24 0x00005555558566af in Frecursive_edit () at keyboard.c:849
        count =3D {
          bytes =3D 0
        }
        buffer =3D {
          i =3D 0x0
        }
#25 0x00005555558529dc in main (argc=3D1, argv=3D0x7fffffffe248) at emacs.c=
:2651
        stack_bottom_variable =3D 0x555555c7d560
        old_argc =3D 1
        dump_file =3D 0x0
        no_loadup =3D false
        junk =3D 0x0
        dname_arg =3D 0x0
        ch_to_dir =3D 0x0
        original_pwd =3D 0x0
        dump_mode =3D 0x0
        skip_args =3D 0
        temacs =3D 0x0
        attempt_load_pdump =3D true
        only_version =3D false
        rlim =3D {
          rlim_cur =3D 10022912,
          rlim_max =3D 18446744073709551615
        }
        lc_all =3D 0x0
        sockfd =3D -1
        module_assertions =3D false

Lisp Backtrace:
"redisplay_internal (C function)" (0x0)

In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
 3.24.49, cairo version 1.18.4) of 2025-08-03 built on nano
Repository revision: 92f52805f9e99068ff07148a3a76b1d97e77adbf
Repository branch: feature/igc
System Description: Void Linux

Configured using:
 'configure CC=3Dclang 'CFLAGS=3D-O0 -g3' CPPFLAGS=3D-I/home/jm/opt/mps
 'LDFLAGS=3D-L/home/jm/opt/mps -fuse-ld=3Dlld' --enable-check=3Dyes,glyphs
 --enable-check-lisp-object-type --with-mps --with-pgtk
 --without-native-compilation'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG
LCMS2 LIBOTF LIBXML2 MODULES MPS NOTIFY INOTIFY PDUMPER PGTK PNG RSVG
SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP
XIM GTK3 ZLIB

Important settings:
  value of $LC_COLLATE: C
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  bug-reference-prog-mode: t
  checkdoc-minor-mode: t
  outline-minor-mode: t
  whitespace-mode: t
  flyspell-mode: t
  midnight-mode: t
  kill-ring-deindent-mode: t
  global-paren-face-mode: t
  paren-face-mode: t
  global-kkp-mode: t
  desktop-save-mode: t
  cua-mode: t
  auto-insert-mode: t
  savehist-mode: t
  save-place-mode: t
  repeat-mode: t
  global-auto-revert-mode: t
  electric-pair-mode: t
  delete-selection-mode: t
  minibuffer-electric-default-mode: t
  global-completion-preview-mode: t
  completion-preview-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-quote-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  prettify-symbols-mode: t
  tab-bar-history-mode: t
  file-name-shadow-mode: t
  context-menu-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  minibuffer-regexp-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  auto-save-visited-mode: t
  abbrev-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime
smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file svg dom
gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap
nnmail browse-url xdg url url-proxy url-privacy url-expand url-methods
url-history url-cookie generate-lisp-file url-domsuf url-util
mail-source utf7 nnoo parse-time iso8601 gnus-spec gnus-int gnus-range
gnus-win emacsbug message mailcap yank-media puny rfc822 mml mml-sec epa
derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums vc-git diff-mode track-changes files-x vc vc-dispatcher
bug-reference checkdoc lisp-mnt thingatpt noutline outline disp-table
whitespace flyspell ispell auth-source-pass url-parse url-vars
auth-source cl-seq eieio eieio-core cl-macs password-cache json map
server noco-theme unspecified-theme most-faces color time window-x
dired-x dired dired-loaddefs help-at-pt cursor-sensor midnight
indent-aux gnus nnheader gnus-util text-property-search time-date subr-x
mail-utils range mm-util mail-prsvr paren-face kkp term/xterm xterm
byte-opt gv bytecomp byte-compile compat desktop frameset cua-base
autoinsert fennel-mode-autoloads gauge-autoloads gauge
indent-bars-autoloads kkp-autoloads nanoid-autoloads
paren-face-autoloads unspecified-theme-autoloads most-faces-autoloads
xr-autoloads rx blase-theme cl-extra help-mode blase-defaults-theme
savehist saveplace repeat autorevert filenotify elec-pair delsel
easy-mmode blase-completion-theme minibuf-eldef completion-preview
site-start cus-edit pp cus-start cus-load icons wid-edit cl-loaddefs
cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify
ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win
pgtk-win term/common-win touch-screen pgtk-dnd tool-bar dnd fontset
image regexp-opt fringe tabulated-list replace newcomment text-mode
lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch
easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify
dynamic-setting system-font-setting font-render-setting cairo gtk pgtk
lcms2 multi-tty move-toolbar make-network-process tty-child-frames mps
emacs)

Memory information:
((conses 24 0 0) (symbols 56 0 0) (strings 40 0 0) (string-bytes 1 0)
 (vectors 24 0) (vector-slots 8 0 0) (floats 24 0 0)
 (intervals 64 0 0) (buffers 1072 0))




Acknowledgement sent to john muhl <jm@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#79193; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 8 Aug 2025 06:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.