Subject: bug#73310: tree-sitter makes cpu 100%

From: Eli Zaretskii <[email-masked]>
Date: Fri, 20 Dec 2024 14:15:49 +0200

> From: Yuan Fu <[email-masked]>
> Date: Fri, 20 Dec 2024 01:14:04 -0800
> Cc: vinurs <[email-masked]>,
>  [email-masked]
> 
> > On Dec 20, 2024, at 12:37 AM, Eli Zaretskii <[email-masked]> wrote:
> > 
> > Can we have a GDB backtrace when Emacs freezes like that?  If the
> > freeze is inside tree-sitter, maybe build that with debug symbols, so
> > that GDB shows information inside the library, and we could then try
> > to figure out what causes this.
> 
> It’s almost certainly tree-sitter. And it’s unlikely for us to find the cause of the hang without considerable knowledge of tree-sitter internals.

Maybe.  But we have the sources of tree-sitter, so nothing prevents us
from trying -- provided that we have the backtrace from the freeze.

> Anyway, I’ll start with reproducing it reliably.

Thanks, that will help.