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

From: Mattias Engdegård <[email-masked]>
Date: Mon, 21 Nov 2022 13:00:45 +0100

>> We _used_ to have max-specpdl-size, which would act as a limit if the
>> recursion was surrounded by specbind.
>> 
>> But it was deleted in Emacs 29.  Maybe it should be brought back, for
>> this and other deeply recursive C functions?

Highly unlikely. If reasonable use can make C recurse too deeply, then fix that bug instead.
What is the call structure leading to the crash? Is Lisp involved?

(I understand that the tree-sitter branch is very experimental as it doesn't even build on my machine.)