GNU bug report logs - #74831
31.0.50; scratch/igc: segfaults on startup when called under gdb

Previous Next

Package: emacs;

Reported by: Gregor Zattler <telegraph <at> gmx.net>

Date: Thu, 12 Dec 2024 14:28:02 UTC

Severity: normal

Found in version 31.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Gregor Zattler <telegraph <at> gmx.net>
Cc: 74831 <at> debbugs.gnu.org
Subject: bug#74831: 31.0.50; scratch/igc: segfaults on startup when called under gdb
Date: Thu, 12 Dec 2024 16:53:13 +0200
> 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" <bug-gnu-emacs <at> gnu.org>
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x0000555555779816 in XSETCDR (c=..., n=n <at> entry=...) at ./src/lisp.h:1605
> 1605	  *xcdr_addr (c) = 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.

Also, where did you start GDB?  It looks like you started it not from
the Emacs' src/ directory, in which case please say

  (gdb) source /path/to/emacs/src/.gdbinit

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.




This bug report was last modified 154 days ago.

Previous Next


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