Subject: bug#71679: 29.3; treesit-node-child function chokes and crashes emacs for nodes with large number of child nodes

From: Eli Zaretskii <[email-masked]>
Date: Thu, 20 Jun 2024 21:35:25 +0300

> From: Mauritz Stenek <[email-masked]>
> Cc: [email-masked]
> Date: Thu, 20 Jun 2024 12:24:24 -0600
> 
> On 2024-06-20 at 12:06, Eli Zaretskii <[email-masked]> wrote:
> 
> > Thanks, but I cannot reproduce the crash with the Julia files.
> >
> > Can anyone else reproduce this crash?
> 
> So basically, `treesit-node-child` worked for you?

Yes, with the recipe you provided.

> How can I generate a detailed stack trace?

Start Emacs from GDB, run your recipe, and when it crashes and GDB
kicks in, type

  (gdb) thread apply all bt

and post here everything GDB displays as result.