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

From: Eli Zaretskii <[email-masked]>
Date: Tue, 18 Feb 2025 17:46:18 +0200

> Date: Tue, 18 Feb 2025 15:38:43 +0000
> From: Pip Cet <[email-masked]>
> 
> "Evgeniy Dushistov via \"Bug reports for GNU Emacs, the Swiss army knife of text editors\"" <[email-masked]> writes:
> 
> > (gdb) fr 5
> > #5  make_lispy_event (event=0x555555f308e0 <kbd_buffer+13952>) at keyboard.c:6375
> > warning: Source file is more recent than executable.
> > 6375		  return list5 (head, position, make_fixnum (double_click_count),
> > (gdb) pp event->arg
> > (33558466)
> 
> So XCDR (event->arg) is nil, not a cons cell, and its car is also not
> what it should be.  (My reading of xterm.c is that it should be Qnil,
> and there should be floats in the list following the nil).
> 
> The car would be XLI(0x8003f0a), but that doesn't ring any immediate
> bells (it might be a weird character with a shift modifier, but not an
> ASCII one...)

But we are talking about a mouse-wheel event, so it cannot be a
character with a modifier, right?

> So this still seems like a GC issue.

Probably.  I just don't understand what could that have to do with
tree-sitter.