GNU bug report logs -
#75322
SAFE_ALLOCA assumed to root Lisp_Objects/SSDATA(string)
Previous Next
Full log
Message #224 received at 75322 <at> debbugs.gnu.org (full text, mbox):
> From: Daniel Colascione <dancol <at> dancol.org>
> Cc: gerd.moellmann <at> gmail.com, eliz <at> gnu.org, pipcet <at> protonmail.com
> Date: Sun, 05 Jan 2025 18:28:59 -0500
>
> Daniel Colascione <dancol <at> dancol.org> writes:
>
> Here's a demonstration of the problem. Run ./emacs -batch -Q --eval
> '(acos 0)'. If you leave demo_crash to true, Emacs will abort quickly
> after we detect a use-after-free. If you set demo_crash to false, Emacs
> will run the loop all day.
It is a well-known fact that inserting Fgarbage_collect in various
random places can cause bugs. But expecting every Emacs C-level
hacker to write code that will endure such testing is impractical. We
routinely let much more easily-spotted blunders slip though. The
sheer number of subtleties and factoids you need to keep in mind when
writing safe code in Emacs is already inhumanly large.
We only get away because there are many places where GC cannot happen.
Admittedly, with the proliferation of calls into Lisp, there's less
and less of these places each year.
This bug report was last modified 147 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.