Subject: Re: bug#59426: 29.0.50; [tree-sitter] Some functions exceed maximum recursion limit

From: Po Lu <[email-masked]>
Date: Tue, 22 Nov 2022 08:27:57 +0800

Mattias Engdegård <[email-masked]> writes:

> Highly unlikely. If reasonable use can make C recurse too deeply, then
> fix that bug instead.

When the use is not reasonable (as C files with thousands of nested
brackets clearly are not), max-specpdl-size can prevent Emacs from
crashing.

> What is the call structure leading to the crash? Is Lisp involved?

Apparently not.  I don't know the details.