GNU bug report logs - #46988
28.0.50; Documenting and verifying assumptions about C code not calling quit or GCing

Previous Next

Package: emacs;

Reported by: Pip Cet <pipcet <at> gmail.com>

Date: Sun, 7 Mar 2021 13:48:01 UTC

Severity: wishlist

Tags: patch

Found in version 28.0.50

Full log


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

From: Pip Cet <pipcet <at> gmail.com>
To: 46988 <at> debbugs.gnu.org
Subject: Re: bug#46988: 28.0.50; Documenting and verifying assumptions about C
 code not calling quit or GCing
Date: Sun, 7 Mar 2021 14:06:01 +0000
[Message part 1 (text/plain, inline)]
On Sun, Mar 7, 2021 at 1:48 PM Pip Cet <pipcet <at> gmail.com> wrote:
> Proof-of-concept patch for a runtime check will be attached once this
> has a bug number.

Patch attached. It assumes the standard stack growth direction, and
that __builtin_frame_address (0) is available and works. Uses GCC's
__attribute__ ((cleanup (...))).

My point here is that the technical implementation isn't the problem,
the question is whether we're disciplined enough to run with checking
enabled and react to bug reports about the fatal error being thrown.

Pip
[0001-Runtime-check-that-some-functions-don-t-GC-bug-46988.patch (text/x-patch, attachment)]

This bug report was last modified 178 days ago.

Previous Next


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