GNU bug report logs -
#71693
30.0.50, SIGSEGV in FRAME_TTY (sf) in redisplay_internal
Previous Next
Reported by: Daniel Clemente <n142857 <at> gmail.com>
Date: Fri, 21 Jun 2024 10:48:01 UTC
Severity: normal
Merged with 71694
Found in version 30.0.50
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 71693 in the body.
You can then email your comments to 71693 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71693
; Package
emacs
.
(Fri, 21 Jun 2024 16:25:02 GMT)
Full text and
rfc822 format available.
Message #3 received at 71693 <at> debbugs.gnu.org (full text, mbox):
> From: Daniel Clemente <n142857 <at> gmail.com>
> Date: Fri, 21 Jun 2024 10:46:58 +0000
>
> I enabled -fsanitize. I'm using an X terminal to run TTY Emacs inside.
> I opened the daemon inside gdb with emacs --fg-daemon -Q
Did you follow the advice and notes in etc/DEBUG regarding runn ing
Emacs compiled with this option?
> [Detaching after fork from child process 5364]
> xdisp.c:16932:10: runtime error: member access within null pointer of
> type 'struct terminal'
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x0000555556610d93 in redisplay_internal () at xdisp.c:16932
> 16932 && FRAME_TTY (sf)->previous_frame != sf)
If the claim is that sf->terminal is a NULL pointer, then how come we
don't segfault when running a build without -fsanitize?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71693
; Package
emacs
.
(Wed, 26 Jun 2024 13:31:02 GMT)
Full text and
rfc822 format available.
Message #6 received at 71693 <at> debbugs.gnu.org (full text, mbox):
> >
> > I enabled -fsanitize. I'm using an X terminal to run TTY Emacs inside.
> > I opened the daemon inside gdb with emacs --fg-daemon -Q
>
> Did you follow the advice and notes in etc/DEBUG regarding runn ing
> Emacs compiled with this option?
I missed some things. For instance I used this:
-fsanitize=undefined,address,bounds-strict,float-cast-overflow ''
But I didn't notice this:
Address sanitization is incompatible with undefined-behavior
sanitization, unfortunately
If you want me to enable just one for next reports, please tell me
which one. For now I think I'll disable the whole -fsanitize, because
of the false positives.
>
> > [Detaching after fork from child process 5364]
> > xdisp.c:16932:10: runtime error: member access within null pointer of
> > type 'struct terminal'
> >
> > Program received signal SIGSEGV, Segmentation fault.
> > 0x0000555556610d93 in redisplay_internal () at xdisp.c:16932
> > 16932 && FRAME_TTY (sf)->previous_frame != sf)
>
> If the claim is that sf->terminal is a NULL pointer, then how come we
> don't segfault when running a build without -fsanitize?
Even with -fsanitize, it didn't crash each time, just this particular time.
I have seen similar crashes in redisplay code even without -fsanitize,
but none at this particular line and none doing something as simple as
opening and closing 3 frames.
I also thought that maybe I had enabled so many debug options (-O0,
-fsanitize, …) that my emacs become slower and therefore more prone to
errors that depend on timing, like things happening at specific points
of the frame opening and closing code.
But this report may be bogus and you may close it if it seems so.
Forcibly Merged 71693 71694.
Request was from
Stefan Kangas <stefankangas <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Sat, 01 Mar 2025 02:01:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 29 Mar 2025 11:24:48 GMT)
Full text and
rfc822 format available.
This bug report was last modified 99 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.