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

From: Eli Zaretskii <[email-masked]>
Date: Wed, 19 Feb 2025 18:32:09 +0200

> Date: Wed, 19 Feb 2025 14:20:53 +0300
> From: Evgeniy Dushistov <[email-masked]>
> Cc: Eli Zaretskii <[email-masked]>, [email-masked],
> 	Paul Eggert <[email-masked]>,
> 	Mattias Engdegård <[email-masked]>
> "X-PGP-Key: https://sks-keyservers.net/pks/lookup?op=vindex&search=dushistov%40mail.ru"
> 
> On Tue, Feb 18, 2025 at 05:44:15PM +0000, Pip Cet wrote:
> > Evgeniy,, could you try replacing the definition of
> > flush_stack_call_func in lisp.h by this definition, and recompiling?
> > 
> > INLINE void
> > flush_stack_call_func (void (*func) (void *arg), void *arg)
> > {
> >   volatile bool repeat = true;
> >   while (repeat)
> >     {
> >       __builtin_unwind_init ();
> >       asm volatile ("" : : : "memory");
> >       flush_stack_call_func1 (func, arg);
> >       repeat = false;
> >     }
> > }
> > 
> 
> 
> I tried this fix.
> It doesn't help :(
> 
> New crash dump looks the same to previous (I rebuilt without --enable-checking=all):

Is this still in Emacs 29.4, only with the above patch applied?  Or is
this a different version of Emacs?