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:15:45 +0100 Message-ID: <87cyhw513i.fsf@no.lan> References: <87ikrp3rl3.fsf@no.lan> <86jzc5ymue.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="32850"; 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:17:22 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 1tLlsN-0008K1-Jt for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Dec 2024 17:17:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLls9-0006Us-0y; Thu, 12 Dec 2024 11:17:05 -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 1tLls6-0006Ua-TZ for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2024 11:17: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 1tLls6-0006RF-Iq for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2024 11:17:02 -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=ayug4UYFyRUmIVyALfZP7Rd1vxEw/djrpfGIulhr6J8=; b=W80LDFB4ZuJrZZntpFVO1kqn8C3WwqjfYlOeJlDE32rzrbp3eKt+DAIflkOc/yMExFM7R4krgZB2Vrtl6uncRxdp/25ZMnQ9W337sr4q8X0jr7FWyJ6vhalLRBZj9aR5YjZXlsGOjv5R/ANWw9ZXPbuKzwGECT44cUYxIKoQtqKiXl/gqSZ3Ia2nibglypBswtowZQC6F3u5mUBDd1x+mhqgDVGtgY1BSvEEfsQ9tagsXchyaB8J3X7A+YRNVECsg5vyMauhNdXZx76eLv9vl3Z2jZYGMqFFDJHSO6endzkkzdPy8syJjBSnsPnHSN1dJTDjiIsv31tfz6KBmGUsag==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tLls6-00027c-0h for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2024 11:17: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:17:01 +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.17340201998094 (code B ref 74831); Thu, 12 Dec 2024 16:17:01 +0000 Original-Received: (at 74831) by debbugs.gnu.org; 12 Dec 2024 16:16:39 +0000 Original-Received: from localhost ([127.0.0.1]:40031 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLlrd-00026E-1l for submit@debbugs.gnu.org; Thu, 12 Dec 2024 11:16:39 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:37039) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLlrZ-00025a-Tq for 74831@debbugs.gnu.org; Thu, 12 Dec 2024 11:16:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1734020181; x=1734624981; i=telegraph@gmx.net; bh=ayug4UYFyRUmIVyALfZP7Rd1vxEw/djrpfGIulhr6J8=; 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=LN76ZIuuRnA1UprAFXk0lQgPj5CPAzUF7dT/cS3xDb564h0jAmSAkTsQ/ZxGqxuV pRAmhpaH2jrZC3h0/duu55KShkxXpOkeYLFWHAuybaMYaNgoN0lbMdjvWckrZr2Sz x8UHebTfWdH/yMnMTn5ZjDYn6LUE3pdiJ1KOItk223XHKF1EX0qR21cuPxpdjKcvR P7eYGWWbmNlIFbCBRSeZQkPy3Z+Qxl2MSrSjhEc16kigGzdbzyJso7k0O9rsAq4tK t6d+tdf1JWSskPm6p6VvUjLJvMRNa2buO4BQDl/fA3N99g82beZcHD6qgVGuFvE89 KwOFwZAxTpQzoPsKAA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from localhost ([95.90.236.208]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M7sHy-1tGqAx0TyM-006N1k; Thu, 12 Dec 2024 17:16:21 +0100 In-Reply-To: <86jzc5ymue.fsf@gnu.org> X-Provags-ID: V03:K1:6ySxedtYBKRG8RZVmOkH/y8/oThAtMR3F83lcgAGnWl1JRoJiNP Bk2WXaWcnPmFx7InwFPJjINH4XQdPw5Q3hnx4gFeAamtym/M9s9IW4SbDl4Q8JAGMdy4ffm 7lRe9vf6fdjRLT84rbi9Qi2csP+p9h+1UpHWPfvfbbxKBe9ISBGneY7H9aFS/oOyjo9gOD+ XdiaXghVhVAxuxD4/U1QA== UI-OutboundReport: notjunk:1;M01:P0:y4VIOKjCawo=;wPnSn9WYeByCs1eensLQUDc4Gnu gPV3+p/kgEnvv0D+9mgt1S4tRKtheN+GQSWdosUCCNU7eR0h2LWFP67097BSRuCMAU5dojMvu z5q5DgbkTqeB5+KJTEnlbZ4H09Qv31UrBYdASttL1nkIVzbcnhN6lK4waNlwRiz++6zWuXZMy l82woENvELbnjpCRt6IrTMeXyu1u1Cux7P6Rb4QAv4ViZQ4F2YA5wbcTtsRc2ejhiiaAChETf G+OKIo9lH/tfmmpHrLxNYxT0lTOAr262+xp8Be5NhT+mqdggGQc197CTzTgQudljKY68qj6KJ Emd9lTJuIYtSE9qifk0d653vihlsmr4wBFA3Y27+3dqwNw+j/GIAfc683pE35YXOIFRDFZZUj T5c1YFZuNG0P+WVgJzcU8uZGYSfcMfi8TPSWq0OYfxkyItGqgPLqL2PO25GPw29d+4WQWsgMl ISGgzTfB5beCctN6SMrhyzAzdkqge2LQXv0SWlkKNJ5EMQ2HA6aDJGCcWcSbGwZXbKslxoAMx Is9yrVHIvFHadzXjzNElX2a9ymxXb5iAssnKRzAqizx4r6Wf9dTMz+Vd3/GIdYzUeU03JMybY vwonS7sB9Z1dv9zJGwHwKAucnnZyAtOYtrNLVAoR/elu2DWT9eNObUP9i5w/Z6AZ9JR3Te4mw BiH0058ee+OtDay8Vycjid7+ikbnFyUA1R/XtdITgQTjdxR0Sc3T379idWyywYdLRjPt0WP/O zCFy/fI6bDFZKwkutTHPwPyTUh/yNvHCbxKR3JFnPgnOvuaL8LCGkH2WAOQIt0n+rPS10Hhz 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:296920 Archived-At: Hi Eli, * Eli Zaretskii [2024-12-12; 16:53 +02]: >> Date: Thu, 12 Dec 2024 15:26:32 +0100 >> From: Gregor Zattler via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >> >> Program received signal SIGSEGV, Segmentation fault. >> 0x0000555555779816 in XSETCDR (c=3D..., n=3Dn@entry=3D...) at ./src/lis= p.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. > 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. Anyway... > in which case please say > > (gdb) source /path/to/emacs/src/.gdbinit 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. 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 for > 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. Regards, Gregor