GNU bug report logs - #28630
27.0.50; C-g while a non-main thread is sitting crashes Emacs

Previous Next

Package: emacs;

Reported by: Alex <agrambot <at> gmail.com>

Date: Thu, 28 Sep 2017 07:24:01 UTC

Severity: normal

Found in version 27.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Alex <agrambot <at> gmail.com>
Cc: 28630 <at> debbugs.gnu.org, tom <at> tromey.com
Subject: bug#28630: 27.0.50; C-g while a non-main thread is sitting crashes Emacs
Date: Sun, 01 Oct 2017 18:01:19 +0300
> From: Alex <agrambot <at> gmail.com>
> Cc: eliz <at> gnu.org, Tom Tromey <tom <at> tromey.com>
> Date: Sat, 30 Sep 2017 21:18:08 -0600
> 
> Should this be labelled a blocker for Emacs 26?

Maybe I'm not sure.  It doesn't sound like threads are used much, if
at all, which would make blocking on it silly.

> This appears to be a related to bug 25214, since I just tried to hit
> C-g when running the example there and it indeed crashes Emacs.

Could be, but the problem in that bug is not a crash, it's the way the
code was written to work.

> It should be noted that `keyboard-escape-quit' (ESC ESC ESC) doesn't
> crash Emacs.

Most probably because it doesn't longjmp.

> Also, replacing (sit-for 2) with (read-char) or its family and hitting
> C-g will also crash Emacs.

Is your Emacs built with --enable-checking?  Because I get an
assertion violation in that case, not a crash.




This bug report was last modified 7 years and 284 days ago.

Previous Next


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