From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregor Zattler via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74831: 31.0.50; scratch/igc: segfaults on startup when called under gdb Date: Thu, 12 Dec 2024 17:53:50 +0100 Message-ID: <871pyc4zc1.fsf@no.lan> References: <87ikrp3rl3.fsf@no.lan> <86jzc5ymue.fsf@gnu.org> <87cyhw513i.fsf@no.lan> <86frmszwai.fsf@gnu.org> Reply-To: Gregor Zattler Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33263"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74831@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 12 17:55:31 2024 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 1tLmTK-0008WK-TG for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Dec 2024 17:55:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLmSx-0002vC-CX; Thu, 12 Dec 2024 11:55:08 -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 1tLmSu-0002v3-S4 for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2024 11:55:04 -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 1tLmSt-0007Sm-RV for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2024 11:55:04 -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:Date:References:In-Reply-To:From:To:Subject; bh=jNoi0VGbhHIc42XmWMlG+G/1cXyVH1gVB2LlOfnCLsU=; b=Lw+6Zh5SVEZ7CCmDeuOHIulvaGuH6S3tL3SmMLoGwOzFCzvaQuvMvCI9oVbfAzIThYd9KJSuOMAirJXHjTAh1f59EyYjiowQaCWNY36L/cgYmwbODnGO4Vgu/05hNNB5FMMhfkuDtgPlS0HGfkpVAPyYhqzTFEoAUR84QrjYl1EkF+SeEYJ8SOEDnVj7VsPcJFbA6RgMhXD/m06Q1XQdwvuNZqBi73938Fs7hgOBC/+Vo+DWz7oJ4I6v4NJ6gsFy4RsRzRsODmJUqcXBsSJ3oH18v/3wYm8qvE28igMrK7iUZ4BBKQHl+vmCKfiFKepfMD+nK+/7zf6FndxowDwSjw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tLmSs-0004Fu-KT for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2024 11:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gregor Zattler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Dec 2024 16:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74831 X-GNU-PR-Package: emacs Original-Received: via spool by 74831-submit@debbugs.gnu.org id=B74831.173402248316315 (code B ref 74831); Thu, 12 Dec 2024 16:55:02 +0000 Original-Received: (at 74831) by debbugs.gnu.org; 12 Dec 2024 16:54:43 +0000 Original-Received: from localhost ([127.0.0.1]:40093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLmSY-0004F4-KL for submit@debbugs.gnu.org; Thu, 12 Dec 2024 11:54:43 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:34077) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLmSR-0004Eh-8S for 74831@debbugs.gnu.org; Thu, 12 Dec 2024 11:54:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1734022468; x=1734627268; i=telegraph@gmx.net; bh=jNoi0VGbhHIc42XmWMlG+G/1cXyVH1gVB2LlOfnCLsU=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=lap61VDbDl/v4wSgfb2y7fUSDFPZkHTr+7BKaubkAIr/Piz7U2oEUreIb2AIYxM7 HJbuwhgLOVnfX+h3hvIrk68INSbHeQ5VEplgl0+36iBbF4g85XV4i4WLNmP60pjY7 2qJYVQ4Ewk+g7/f+WVbMRp254ygTn7newI6nMqsS22CPXVAFSxYCayTOpdzeoK58V l8OiTCNjye/5KmJ4tVMTXNk4lN2HynQn5ah8C1vgW1xwEEZdiolkhhF3EUxp7CBDU 1K24zq+bZjBwb5/7ZRDY9deSiOBuLPDVu4VnvrStX420kMWrhFnCtbsaaSEs8fao9 /dXI/DhzRYHW7i8OvQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from localhost ([95.90.236.208]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mk0JM-1u1l7c0XCy-00bCMN; Thu, 12 Dec 2024 17:54:28 +0100 In-Reply-To: <86frmszwai.fsf@gnu.org> X-Provags-ID: V03:K1:vBjNTDWLoHKtKPNNjcxFrD4XvN2n1AQzVw4RWiEqI0OYwSZOBQq ZZkxGRxL7w4wh4z5JYeBuai2i4SbI3kexqsRyipUt++mFH5TY+b8uTG2bZuw4TsgqauT99P KgKuyZcz005EGRAaUics+9XLI/+ZRxoV1OL2Gn2L9EDq/e7A4nP6/dl4+7haE0DCYcUmzEn vikzOMGfdGSYiA4U3B6rQ== UI-OutboundReport: notjunk:1;M01:P0:Qzp9E4nxMsc=;xuQ9BgCqsHS/4RnWDs/YQNOl1AB aPqQutrPLgPWG+o+10zRpXM1G07hImT0/86JFBprjLnnqT66VmOjXgT4wANvGyUKzazJkwwY1 dYhvkYC1YIuL86/XxcHbMy8IM/AyxfAoIC+J3sDAjLQaozblNk4/RSBxIGS08sT/FLGnOmhw9 rOVOGb9G+gs0w2B/WA6PdBnUGOtrbtNvbMZFA6+kF5miCdl5VYcW5maKx836UJplbiC6IiArU Xz17cC5lDPi+5abXOAB8z/HbQunvbZ/0bUc6ut0notTiYp5XXrxu3AIQfzP761ZwWxmysguk5 Io/IJOTUh8rGMKCYCzLRL9Dx3PhdJrK0cWnvEPXdZe+JraxdDvKae0kSEL9jztDsgbi8SNLI+ 55h1iDKFHsLxx3o7sWMpL+2nzdKuQufMbUUNvJ/d4UIPPsthFunsZFSvpD2ANWFswVYwIRdpX lTqFfv/XV+zhzJEWibBe7T1nWdtchMutx9b6CWX++U5zdm8/TszwHjOhFMoEWkPws0+b9SeeV Lfm1Ou5QIaOXCAvu+4dWI6RFbyjFyDKPyM0EhnBjkmuOeKHro8T1klD/48e7PHHLSn8rfnBWD MpQ/lQbrrVlmhlZfepQoc1srotrzYfRLbXggd5SgeY6iCwwEOO9fuD3jdwV/rM6zoVKP85l+s 9uFPGWqMpV4vS6wV5kgL9/uc7/QoQW2eliWSKyiW8t+UaQRgldi5RXD7m3CS2zYD8IGY4Zxk7 Qci3CcFCmuRq9UM/oOup+NM0KFtFUiwZ1QrDBioFYP/Fkf+ORDe+SfgTifOcgj3HNUXgDN+S 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:296926 Archived-At: Hi Eli, * Eli Zaretskii [2024-12-12; 18:43 +02]: >> From: Gregor Zattler >> Cc: 74831@debbugs.gnu.org >> Date: Thu, 12 Dec 2024 17:15:45 +0100 >> >> >> Program received signal SIGSEGV, Segmentation fault. >> >> 0x0000555555779816 in XSETCDR (c=3D..., n=3Dn@entry=3D...) at ./src/= lisp.h:1605 >> >> 1605 *xcdr_addr (c) =3D n; >> > >> > So what is the value of xcdr_addr(s) here? It looks like >> > dereferencing it causes the segfault, so its value might give us some >> > hints. >> >> sorry, I'm clueless: >> >> (gdb) print xcdr_addr >> No symbol "xcdr_addr" in current context. > > No, you should say > > (gdb) print xcdr_addr(c) this I also tried: (gdb) print xcdr_addr(c) No symbol "xcdr_addr" in current context. >> > Also, where did you start GDB? It looks like you started it not from >> > the Emacs' src/ directory, >> >> I started it in the Emacs src directory:: >> >> (gdb) pwd >> Working directory /home/grfz/src/emacs-igc2/src. >> >> because you once told me to do so for >> gdb. > > That's strange, because if you did that, the backtrace command would > have shown a Lisp backtrace as well, which didn't happen. > >> I now added >> >> -ex "source /home/grfz/src/emacs-igc2/src/.gdbinit" >> >> to my gdb invocation and tried again. >> Now there are plenty of >> >> Program received signal SIGSEGV, Segmentation fault. > > That's expected. > >> lines in GDBs output but Emacs runs and >> and (not so far) functions correct. >> >> > before running Emacs. That's because the MPS library uses SIGSEGV fo= r >> > its memory barriers, and .gdbinit there makes sure such SIGSEGVs don'= t >> > stop Emacs. IOW, this could be a false positive, not a real segfault= . >> >> That seemed to be the case. > > Yes. > > I think we can close this bug now. Fine with me. Regards, gregor