From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#75459: 31.0.50; scratch-igc: Breakpoint 1, terminate_due_to_signal (sig=sig@entry=6, backtrace_limit=backtrace_limit@entry=2147483647) at ./src/emacs.c:432 Date: Fri, 10 Jan 2025 09:15:37 +0200 Message-ID: <86msfz16na.fsf@gnu.org> References: <87zfk0p741.fsf@no.lan> <861pxc2l6y.fsf@gnu.org> <87wmf42gdx.fsf@protonmail.com> <87frlst34b.fsf@no.lan> <87plkv3hzd.fsf@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24708"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pipcet@protonmail.com, telegraph@gmx.net, 75459@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 10 08:16:15 2025 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tW9Ff-0006EZ-FQ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Jan 2025 08:16:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tW9FX-0002LK-Bl; Fri, 10 Jan 2025 02:16:07 -0500 Original-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 ) id 1tW9FT-0002KY-Cs for bug-gnu-emacs@gnu.org; Fri, 10 Jan 2025 02:16:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tW9FS-0000K5-U1 for bug-gnu-emacs@gnu.org; Fri, 10 Jan 2025 02:16:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=dec2kg5eJK2oTVRWpkbYTPKwGDxXldwImaEm7uGUdOA=; b=f6nsQusqxAsnNCm5c3y/EcDVHL/uzWNjX4pzt0os+a9+7rtxU4RuS7SvWj99/pD2SM6T2QY9fUZUEr39jmmEwsdziA54eu/ngr3WKVrJmSKOef4YxU9gaSSRfW9VNZOrQBQPM9Jui3KazCBZzYLL8sV8ztzAiXjtNzYNbDrS6qDh2FE7hS7v6DCmjvPdXOcec2kqCzVzUjrJWt8RO1P7KUmBpI/yion8cZkZ4vH+3Pt0ghAKzudUhr1404bh7Qq9gwK8q+Wx0/kjxKvAI3y+OI32fcSJ/U3OFnffls7Ss0ZwuWq4VdY0Rq0eL8GXa4TRRH1pkUPrFterQORQAK19nw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tW9FR-0000ss-OH for bug-gnu-emacs@gnu.org; Fri, 10 Jan 2025 02:16:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Jan 2025 07:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75459 X-GNU-PR-Package: emacs Original-Received: via spool by 75459-submit@debbugs.gnu.org id=B75459.17364933493380 (code B ref 75459); Fri, 10 Jan 2025 07:16:01 +0000 Original-Received: (at 75459) by debbugs.gnu.org; 10 Jan 2025 07:15:49 +0000 Original-Received: from localhost ([127.0.0.1]:56222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tW9FE-0000sP-WF for submit@debbugs.gnu.org; Fri, 10 Jan 2025 02:15:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54802) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tW9FD-0000sB-M6 for 75459@debbugs.gnu.org; Fri, 10 Jan 2025 02:15:48 -0500 Original-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 ) id 1tW9F7-0000G1-Vt; Fri, 10 Jan 2025 02:15:42 -0500 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=dec2kg5eJK2oTVRWpkbYTPKwGDxXldwImaEm7uGUdOA=; b=mO6If7UYVrnbRixOgVYr vLd9zOrjbAEDeDKp+dgTkDmmKqwipfcE1sUvYR4gDjOsrPZqfFfdDoffVeRrTPhW8yccd52h19SVG rI/eLW0XICSckTgxYZ1y+kBRLOAXan4U6cE5c28SXSQIuj5QvifX4VIFbo4YU/QujoBrgixg76icI YQ2dyTprkoaKfjfcokewzE5CNnudkslScuYEWnOWzGSmKYoUWw2eQF0EffRW24IzeJiR95NIswHbc Sf5lpuiBDR97z1egC3Lh7SdNDvVVQGB/xUMgYUa2Sx15xBtkYpPQuoGcafS046kKVISFIpeuf7mFL D8gOcQnzbuIhGw==; In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Fri, 10 Jan 2025 05:52:39 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298866 Archived-At: > From: Gerd Möllmann > Cc: Gregor Zattler , Eli Zaretskii , > 75459@debbugs.gnu.org > Date: Fri, 10 Jan 2025 05:52:39 +0100 > > Pip Cet writes: > > > Gerd Möllmann writes: > > > > >>> #0 terminate_due_to_signal (sig=sig@entry=6, > > backtrace_limit=backtrace_limit@entry=2147483647) at ./src/emacs.c:432 > >>> #1 0x00005555555b72db in die (msg=msg@entry=0x5555559d49e0 > >> "pdl->kind == SPECPDL_BACKTRACE", file=file@entry=0x5555559d4540 > >> "eval.c", line=line@entry=118) at ./src/alloc.c:8377 > >>> #2 0x00005555555bcc21 in backtrace_function (pdl=) at ./src/eval.c:118 > >>> #3 0x00007fffffff986f in () > > Another thing that irritates me is that I don't see emacs_backtrace in > the bt. Die is there, which calls terminate_due_to_signal, but then we > are immediately in backtrace_function. That makes no sense. I think that's because we stopped before the call to emacs_backtrace: > Breakpoint 1, terminate_due_to_signal (sig=sig@entry=6, backtrace_limit=backtrace_limit@entry=2147483647) at ./src/emacs.c:432 > 432 { > #0 terminate_due_to_signal (sig=sig@entry=6, backtrace_limit=backtrace_limit@entry=2147483647) at ./src/emacs.c:432 > #1 0x00005555555b72db in die (msg=msg@entry=0x5555559cedde "CHAR_TABLE_P (obj)", file=file@entry=0x5555559b0565 "character.h", line=line@entry=597) at ./src/alloc.c:8377 This happens because src/.gdbinit sets a breakpoint there: # When debugging, it is handy to be able to "return" from # terminate_due_to_signal when an assertion failure is non-fatal. break terminate_due_to_signal The call to emacs_backtrace is further down in terminate_due_to_signal. It was not called yet. The xbacktrace command is automatically called by GDB as a post-hook of the "bt" (backtrace) command. So when the functions called by GDB to generate the Lisp backtrace crash, you see more calls to terminate_due_to_signal, which again hit the above breakpoint.