GNU bug report logs - #60237
30.0.50; tree sitter core dumps when I edebug view a node

Previous Next

Package: emacs;

Reported by: Mickey Petersen <mickey <at> masteringemacs.org>

Date: Wed, 21 Dec 2022 12:30:02 UTC

Severity: normal

Found in version 30.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Po Lu <luangruo <at> yahoo.com>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: casouri <at> gmail.com, mickey <at> masteringemacs.org, 60237 <at> debbugs.gnu.org
Subject: Re: bug#60237: 30.0.50; tree sitter core dumps when I edebug view a
 node
Date: Sun, 26 Feb 2023 08:18:23 +0200
> From: Po Lu <luangruo <at> yahoo.com>
> Cc: Eli Zaretskii <eliz <at> gnu.org>,  Mickey Petersen
>  <mickey <at> masteringemacs.org>,  60237 <at> debbugs.gnu.org
> Date: Sun, 26 Feb 2023 10:37:17 +0800
> 
> Anyway, the profiler should either be fixed to not hook into xmalloc, or
> (better) tree-sitter should be fixed to not call xmalloc during GC.

That's what the "memory" profiler does, AFAIU.  It uses xmalloc as a
poor-man's timer.  It is rather useless and misleading, but if we
remove it, platforms that don't have timers and SIGPROF will not be
able to profile.

But maybe there are no such platforms?  (DJGPP has setitimer and
SIGPROF, so the MSDOS build shouldn't be a problem, although I never
tried profiling in the MSDOS build.)




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

Previous Next


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