GNU bug report logs -
#76091
31.0.50; festure/igc: buffer.h:829: Emacs fatal error: assertion failed: BUFFERP (a)
Previous Next
Reported by: Gregor Zattler <telegraph <at> gmx.net>
Date: Thu, 6 Feb 2025 12:51:01 UTC
Severity: normal
Found in version 31.0.50
Done: Pip Cet <pipcet <at> protonmail.com>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 76091 <at> debbugs.gnu.org (full text, mbox):
> Date: Thu, 06 Feb 2025 13:49:30 +0100
> From: Gregor Zattler via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
> Dear Emacs developers, I don't know if
> this failed assertion is due to using
> MPS as GC.
>
> I played along with pdf-tools and
> org-noter when it happened.
>
> This time I built with a current
> checkout of feature/igc.
>
> GDB output even further below.
>
> The crashed session is still in GDB.
> [...]
> Breakpoint 1, terminate_due_to_signal (sig=sig <at> entry=6, backtrace_limit=backtrace_limit <at> entry=2147483647) at ./src/emacs.c:425
> 425 {
> +bt
> #0 terminate_due_to_signal (sig=sig <at> entry=6, backtrace_limit=backtrace_limit <at> entry=2147483647) at ./src/emacs.c:425
> #1 0x00005555555b8f5b in die (msg=msg <at> entry=0x5555559b40d0 "BUFFERP (a)", file=file <at> entry=0x5555559b40c7 "buffer.h", line=line <at> entry=829) at ./src/alloc.c:7683
> #2 0x00005555555a0bda in XBUFFER (a=Python Exception <class 'gdb.error'>: value has been optimized out
> ) at ./src/buffer.h:829
> #3 0x00005555555a4370 in XBUFFER (a=Python Exception <class 'gdb.error'>: value has been optimized out
> ) at ./src/xdisp.c:17024
> #4 prepare_menu_bars () at ./src/xdisp.c:14041
This is here:
FOR_EACH_FRAME (tail, frame)
{
struct frame *f = XFRAME (frame);
struct window *w = XWINDOW (FRAME_SELECTED_WINDOW (f));
if (some_windows
&& !f->redisplay
&& !w->redisplay
&& !XBUFFER (w->contents)->text->redisplay)
continue;
And I don't understand how w->contents of a frame's selected window
could fail the BUFFERP test. Can you tell what the below commands
produce?
(gdb) frame 3
(gdb) print a
(gdb) xtype
Other than that, with all the locals "optimized out", there really is
not much else to do, except analyze the machine instructions and the
corresponding registers.
This bug report was last modified 102 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.