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 19:05:41 +0200 Message-ID: <83d3avfnoa.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> <831urbhjmz.fsf@gnu.org> <4F0831DD.7050504@gmx.at> <83vcong0tx.fsf@gnu.org> <4F084F4B.8040700@gmx.at> <83lipjftix.fsf@gnu.org> <4F087281.6080800@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1325955971 26488 80.91.229.12 (7 Jan 2012 17:06:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 7 Jan 2012 17:06: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 18:06:06 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 1RjZiW-0002S2-HK for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Jan 2012 18:06:04 +0100 Original-Received: from localhost ([::1]:55893 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjZiW-0004O6-2H for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Jan 2012 12:06:04 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:37713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjZiT-0004No-FR for bug-gnu-emacs@gnu.org; Sat, 07 Jan 2012 12:06:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RjZiS-00017l-A1 for bug-gnu-emacs@gnu.org; Sat, 07 Jan 2012 12:06:01 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjZiS-00017f-7C for bug-gnu-emacs@gnu.org; Sat, 07 Jan 2012 12:06:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RjZiU-0002ew-BB for bug-gnu-emacs@gnu.org; Sat, 07 Jan 2012 12:06:02 -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 17:06:02 +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.132595595610210 (code B ref 9087); Sat, 07 Jan 2012 17:06:02 +0000 Original-Received: (at 9087) by debbugs.gnu.org; 7 Jan 2012 17:05:56 +0000 Original-Received: from localhost ([127.0.0.1]:49132 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RjZiO-0002ed-5u for submit@debbugs.gnu.org; Sat, 07 Jan 2012 12:05:56 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:44980) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RjZiK-0002eO-HI for 9087@debbugs.gnu.org; Sat, 07 Jan 2012 12:05:54 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LXF00H00TZBA800@a-mtaout22.012.net.il> for 9087@debbugs.gnu.org; Sat, 07 Jan 2012 19:05:43 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.156.26]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LXF00EQHU5HGWK1@a-mtaout22.012.net.il>; Sat, 07 Jan 2012 19:05:43 +0200 (IST) In-reply-to: <4F087281.6080800@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:55516 Archived-At: > Date: Sat, 07 Jan 2012 17:27:45 +0100 > From: martin rudalics > CC: monnier@iro.umontreal.ca, jasonr@gnu.org, claudio.bley@gmail.com, > lekktu@gmail.com, 9087@debbugs.gnu.org > > > This call to QUIT is the problem, because this code runs in a > > different thread than the main Lisp thread, the one that set up the > > setjmp point to which we longjmp when we throw to top level. So it > > unwinds the wrong stack. > > Thanks. I'm beginning to understand. Is post_character_message the > only potential source of this problem or are there others as well? There are others. Search for the callers of signal_user_input, and you will find them. E.g., it is called for mouse inputs as well. > > By contrast, C-g does not call signal_user_input to be called, see > > above. So it avoids this fate. > > Naively asked: Could we avoid the problem if on normal input we did not > call signal_user_input but did something similar to C-g handling? We could, but why would we want to? signal_user_input does TRT, except when immediate_quit is set. If we don't call it, we won't be able to support throw-on-input and while-no-input.