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


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

From: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 28630 <at> debbugs.gnu.org, tom <at> tromey.com, Alex <agrambot <at> gmail.com>
Subject: Re: bug#28630: 27.0.50;
 C-g while a non-main thread is sitting crashes Emacs
Date: Mon, 02 Oct 2017 13:30:44 +0900
>>>>> On Sun, 01 Oct 2017 21:32:22 +0300, Eli Zaretskii <eliz <at> gnu.org> said:

> I hope to have some time soon to look into this.  I think I
> understand the root cause: we are longjmp-ing in a thread other than
> the one which called setjmp.

The secondary thread seems to be still blocking in a pselect call when
crash occurs.  Maybe SIGIO (and SIGALRM) should be unmasked in the
secondary thread that calls pselect for keyboard input, and the main
thread should forward the delivery of these signals to the secondary
(or mask them) so that the pselect call in the secondary thread can be
interrupted.

				     YAMAMOTO Mitsuharu
				mituharu <at> math.s.chiba-u.ac.jp




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.