From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jason S. Cornez" Newsgroups: gmane.emacs.bugs Subject: bug#6585: 23.1; Hang / CPU 100% on background interaction when in minibuffer Date: Tue, 31 Aug 2010 08:42:50 +0200 Message-ID: <4C7CA46A.7010001@ravenpack.com> References: <20100708141906.C46AE80333@dev268-l> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1283238593 9229 80.91.229.12 (31 Aug 2010 07:09:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 Aug 2010 07:09:53 +0000 (UTC) To: 6585@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 31 09:09:52 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OqKyd-0006Bs-Iv for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Aug 2010 09:09:51 +0200 Original-Received: from localhost ([127.0.0.1]:57175 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqKyc-0008CU-EV for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Aug 2010 03:09:50 -0400 Original-Received: from [140.186.70.92] (port=59416 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqKyV-0008BP-2I for bug-gnu-emacs@gnu.org; Tue, 31 Aug 2010 03:09:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OqKyT-0000jQ-2d for bug-gnu-emacs@gnu.org; Tue, 31 Aug 2010 03:09:42 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37770) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqKyS-0000jJ-TB for bug-gnu-emacs@gnu.org; Tue, 31 Aug 2010 03:09:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OqKXh-0004FZ-RY; Tue, 31 Aug 2010 02:42:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <20100708141906.C46AE80333@dev268-l> Resent-From: "Jason S. Cornez" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 Aug 2010 06:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6585 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6585-submit@debbugs.gnu.org id=B6585.128323687916322 (code B ref 6585); Tue, 31 Aug 2010 06:42:01 +0000 Original-Received: (at 6585) by debbugs.gnu.org; 31 Aug 2010 06:41:19 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqKX0-0004FD-DV for submit@debbugs.gnu.org; Tue, 31 Aug 2010 02:41:18 -0400 Original-Received: from out1.smtp.messagingengine.com ([66.111.4.25]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqKWx-0004F6-JI for 6585@debbugs.gnu.org; Tue, 31 Aug 2010 02:41:16 -0400 Original-Received: from compute1.internal (compute1.nyi.mail.srv.osa [10.202.2.41]) by gateway1.messagingengine.com (Postfix) with ESMTP id C154C309 for <6585@debbugs.gnu.org>; Tue, 31 Aug 2010 02:42:52 -0400 (EDT) Original-Received: from frontend1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Tue, 31 Aug 2010 02:42:52 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=message-id:date:from:mime-version:to:subject:content-type:content-transfer-encoding; s=smtpout; bh=ZD5Cea/l0H8PbMxkDhjeruXvUh4=; b=DlKPdNfNnZvmE4Emxfsifb7TUXepHy3m5nlWJnXueHw5JmAA9dQqHxw7vNRfpD+5YrO10gQ5gaiGv6ouq4p8yQ6/wkwzeWP/5on4lRo1XC9FEEq/oenYSVrokUWsdAwPPkPtRwzcpbSkgknapax5anIRukgtjZkB0Hy1l/5gA+A= X-Sasl-enc: jLNbBND+KALE7/vvJpW3yo/zpteNfcS1Di8brpjmmgve 1283236971 Original-Received: from [10.1.3.5] (unknown [83.43.82.224]) by mail.messagingengine.com (Postfix) with ESMTPSA id 984334060F4 for <6585@debbugs.gnu.org>; Tue, 31 Aug 2010 02:42:51 -0400 (EDT) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9pre) Gecko/20100821 Lanikai/3.1.3pre ThunderBrowse/3.3.2 X-Enigmail-Version: 1.1.2 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 31 Aug 2010 02:42:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39849 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sorry this has taken so long; I've just been busy with other stuff. Here is a self-contained test case that shows emacs hanging as I have described above. It does seem to depend on the inhibited quitting as suggested by Johan Bockg=E5rd in Msg #26 above. 1. Start a fresh emacs-23.2: /usr/local/emacs-23.2/src/emacs -q 2. M-x ielm and paste the following function. (defun my::switch-to-buffer (buffer) ;; if buffer is in some window, go to it, otherwise switch-to-buffer (let ((start (selected-window)) (current (next-window (selected-window) 'no-minibuffer 'visible)) (found nil)) (while (and (not (eq current start)) (not found)) (if (eq buffer (window-buffer current)) (setq found current)) (setq current (next-window current 'no-minibuffer 'visible))) (if (null found) (switch-to-buffer buffer) (select-window found)))) 3. (run-at-time 5 nil 'my::switch-to-buffer "*GNU Emacs*") [Wait 5 seconds and emacs should switch to the buffer] 4. C-x b *ielm* 5. (run-at-time 5 nil 'my::switch-to-buffer "*GNU Emacs*") C-x C-f [do this immediately, before the 5 seconds, then wait] Once the 5 seconds expires, emacs will be using 100% CPU and will not respond to C-g. It is not totally dead, as mouse rollovers (eg. on the toolbar) seem to work. But it is in a state where I can't seem to get it back to being useful again. Of course, fixing the elisp function is easy and that simply and effectively avoids this problem. Still, I find it disconcerting that I can lockup emacs in such a manner. Hoping this is helpful. - -Jason -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkx8pGoACgkQQlm6HDTMLyO2OQCfXinWQlQ/EeYlhOdoSQGlQ7pq OKUAoLwpSxsEThEkn4mPpZk9PlOkNsOy =3Diq6n -----END PGP SIGNATURE-----