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

From: Eli Zaretskii <[email-masked]>
Date: Sun, 16 Feb 2025 11:48:52 +0200

> Date: Sun, 16 Feb 2025 11:45:38 +0300
> From:  Evgeniy Dushistov via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <[email-masked]>
> 
> Just random crash during editing text (cut or delete text).

What do you mean by "after switch to tree-sitter"?  What exactly did
you change and how in order to switch?

> (gdb) bt full
> #0  SYMBOL_NAME (sym=0x55555e5d3ba0) at /usr/src/debug/emacs/emacs-29.4/src/lisp.h:1152

Please show this symbol:

  (gdb) source /path/to/emacs/src/.gdbinit
  (gdb) frame 0
  (gdb) print sym
  (gdb) xtype
  (gdb) xsymbol

> #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

Thanks.