GNU bug report logs - #59426
29.0.50; [tree-sitter] Some functions exceed maximum recursion limit

Previous Next

Package: emacs;

Reported by: Yuan Fu <casouri <at> gmail.com>

Date: Mon, 21 Nov 2022 00:54:02 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #71 received at 59426 <at> debbugs.gnu.org (full text, mbox):

From: Mattias EngdegÄrd <mattiase <at> acm.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 59426 <at> debbugs.gnu.org, Yuan Fu <casouri <at> gmail.com>,
 Stefan Kangas <stefankangas <at> gmail.com>
Subject: Re: bug#59426: 29.0.50; [tree-sitter] Some functions exceed maximum
 recursion limit
Date: Tue, 22 Nov 2022 09:59:00 +0100
22 nov. 2022 kl. 01.27 skrev Po Lu <luangruo <at> yahoo.com>:

> 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.

No, that variable is gone.

Using lisp_eval_depth is possible (and used by json for a similar purpose) but an independent limit seems safer, since Lisp evaluation does not necessarily use the C stack.






This bug report was last modified 2 years and 174 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.