From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#9087: Crash reading from minibuffer with icomplete-mode Date: Sat, 07 Jan 2012 12:49:56 +0200 Message-ID: <831urbhjmz.fsf@gnu.org> References: <83zkkfhk4c.fsf@gnu.org> <871uwng399.fsf@stupidchicken.com> <87obunjg5w.wl%claudio.bley@gmail.com> <83vcovqeu2.fsf@gnu.org> <84ty4ef5ap.wl%claudio.bley@gmail.com> <83vcopno6r.fsf@gnu.org> <83lipkoo60.fsf@gnu.org> <4F071C36.9020401@gmx.at> <83aa60odt9.fsf@gnu.org> <4F074F3F.9030502@gmx.at> <8362goobf6.fsf@gnu.org> <831urco8rt.fsf@gnu.org> <837h13hq17.fsf@gnu.org> <4F081A6D.30508@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1325933531 22172 80.91.229.12 (7 Jan 2012 10:52:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 7 Jan 2012 10:52:11 +0000 (UTC) Cc: claudio.bley@gmail.com, lekktu@gmail.com, 9087@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 07 11:52:05 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RjTsa-0005pV-L5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Jan 2012 11:52:04 +0100 Original-Received: from localhost ([::1]:32824 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjTsZ-0003fa-SC for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Jan 2012 05:52:03 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:55861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjTsX-0003fS-D3 for bug-gnu-emacs@gnu.org; Sat, 07 Jan 2012 05:52:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RjTsW-0002ui-B7 for bug-gnu-emacs@gnu.org; Sat, 07 Jan 2012 05:52:01 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjTsW-0002ue-8N for bug-gnu-emacs@gnu.org; Sat, 07 Jan 2012 05:52:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RjTsX-0001Qg-Gw for bug-gnu-emacs@gnu.org; Sat, 07 Jan 2012 05:52:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Jan 2012 10:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9087 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9087-submit@debbugs.gnu.org id=B9087.13259334675431 (code B ref 9087); Sat, 07 Jan 2012 10:52:01 +0000 Original-Received: (at 9087) by debbugs.gnu.org; 7 Jan 2012 10:51:07 +0000 Original-Received: from localhost ([127.0.0.1]:47774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RjTrf-0001PY-30 for submit@debbugs.gnu.org; Sat, 07 Jan 2012 05:51:07 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:59000) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RjTrc-0001P5-TG for 9087@debbugs.gnu.org; Sat, 07 Jan 2012 05:51:06 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LXF00D00CMN9Y00@a-mtaout22.012.net.il> for 9087@debbugs.gnu.org; Sat, 07 Jan 2012 12:49:57 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.156.26]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LXF00CL4CR8RC70@a-mtaout22.012.net.il>; Sat, 07 Jan 2012 12:49:57 +0200 (IST) In-reply-to: <4F081A6D.30508@gmx.at> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:55498 Archived-At: > Date: Sat, 07 Jan 2012 11:11:57 +0100 > From: martin rudalics > CC: Stefan Monnier , > Jason Rumney , > claudio.bley@gmail.com, lekktu@gmail.com, 9087@debbugs.gnu.org > > >> Is a C-g also delayed in a similar way under w32? > > > > Yes, it is, at least in this case. > > Can you please explain what this means? If C-g is delayed does it mean > that I can't use it to quit immediately? Or does it mean that I can > crash Emacs via C-g in a similar way as with the OP's scenario? The former, of course. You can verify yourself that, in Emacs without the patch I sent, typing C-g when triggerbug.el says "now!" does not cause a crash, but a "Quit", albeit a slightly (by 1-2 seconds on my box) delayed one. > Why and how is all this handled differently on GNU systems? On Posix hosts, Emacs reads keyboard input in the main thread, where it is possible to do a throw to top level without wreaking havoc on the stack. In some configurations, keyboard input is actually handled in a signal handler, and then the throw is even faster, because it interrupts any on-going operation. On Windows, there's a separate thread that reads messages posted by Windows to the Emacs windows. Throwing to top level from a different thread is a no-no. With my patch, throwing will be deferred until the main thread is done with whatever it is doing, and gets to reading input.