[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#6585: 23.1; Hang / CPU 100% on background interaction when in minibu
Jason S. Cornez
bug#6585: 23.1; Hang / CPU 100% on background interaction when in minibuffer
Tue, 31 Aug 2010 08:42:50 +0200
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:22.214.171.124pre) Gecko/20100821 Lanikai/3.1.3pre ThunderBrowse/3.3.2
-----BEGIN PGP SIGNED MESSAGE-----
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ård 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))
(while (and (not (eq current start))
(if (eq buffer (window-buffer current))
(setq found current))
(setq current (next-window current 'no-minibuffer 'visible)))
(if (null 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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
- bug#6585: 23.1; Hang / CPU 100% on background interaction when in minibuffer,
Jason S. Cornez <=