Subject: bug#76327: 29.4; random segfaults after switch to tree-sitter

From: Evgeniy Dushistov <[email-masked]>
Date: Mon, 17 Feb 2025 18:42:09 +0300

On Mon, Feb 17, 2025 at 04:16:12PM +0300, Evgeniy Dushistov wrote:
> On Sun, Feb 16, 2025 at 11:48:52AM +0200, Eli Zaretskii wrote:
> > Please show this symbol:
> > 
> >   (gdb) source /path/to/emacs/src/.gdbinit
> >   (gdb) frame 0
> >   (gdb) print sym
> >   (gdb) xtype
> >   (gdb) xsymbol
> > 
> 
> (gdb) frame 0
> #0  SYMBOL_NAME (sym=XIL(0x55555f9b3260)) at /usr/src/debug/emacs/emacs-29.4/src/lisp.h:1152
> 1152	  return p;
> (gdb) print sym
> $1 = XIL(0x55555f9b3260)
> (gdb) xtype
> Lisp_Symbol
> (gdb) xsymbol 
> $2 = (struct Lisp_Symbol *) 0xaaaab57810c0
> Cannot access memory at address 0xaaaab57810c8
> (gdb) 
> 
> 
> > > #5  0x000055555570603b in Fcommand_error_default_function (data=0x55555a8e65c3, context=0x7ffff1880284, signal=0x7fe0) at /usr/src/debug/emacs/emacs-29.4/src/lisp.h:1679
> > 
> > Can you show the error and its data here?  Like this:
> > 
> >  (gdb) frame 5
> >  (gdb) pp data
> >  (gdb) pp context
> > 
> 
And because of "pp data" cause additional segfault,
I can not use "pp context",
so here is "pp context", if call it before "pp data":

(gdb) pp context
""

-- 
/Evgeniy