unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Running two processes rapidly makes Emacs eat 100% CPU on w32
@ 2006-10-12  8:44 Slawomir Nowaczyk
  2006-10-12 10:47 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Slawomir Nowaczyk @ 2006-10-12  8:44 UTC (permalink / raw)


Hello,

I have tested on M$ Windows only, I do not know if the problem also
exists on other systems...

Evaluating the following code
  (progn (start-process "" nil "ls") (call-process "ls"))
makes my emacs eat 100% CPU. Emacs is still responsive, I can edit
things etc., but the CPU usage remains extreme. When I try to exit, it
asks whether to kill an active process "ls". If I answer yes, emacs
exits cleanly.

Changing the code to
  (progn (start-process "" nil "ls") (sleep-for 0.1) (call-process "ls"))
makes the problem go away (but sleeping for 0.01 is not enough on my
machine).

I have encountered the problem when I tried to upgrade to newest tramp,
which seems to run several processes one after another in order to test
some things (if anyone is interested, the code is in tramp-util.el,
lines 104 to 180 -- at least as of tramp-2.1.7.tar.gz).

I have also seen similar behaviour (which I believe -- and hope -- is
caused by the same bug) with ispell... changing buffers back and forth
rapidly made my emacs, occasionally, start eating 100% CPU as well -- I
now think that the buffers might have been using different dictionaries
and flyspell tried restarting ispell with different arguments too
quickly.

What is the best way to debug such problem? toggle-debug-on-quit is not
helpful, since the emacs itself remains responsive and the traceback it
provides is useless. I do not have C debugger on this machine, although
I might try installing one if that's the only way to go.


In GNU Emacs 22.0.50.1 (i386-msvc-nt5.1.2600)
 of 2006-09-27 on FIONA
X server distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-msvc (13.10) --cflags -IM:/EmacsCVS/libraries/include/'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENG
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

-- 
 Best wishes,
   Slawomir Nowaczyk
     ( slawomir.nowaczyk.847@student.lu.se )

Programming:  "Bloody instructions which, being taught, return to
plague their inventor" ("Macbeth", Act 1, Scene 7)

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-11-04  3:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-12  8:44 Running two processes rapidly makes Emacs eat 100% CPU on w32 Slawomir Nowaczyk
2006-10-12 10:47 ` Eli Zaretskii
2006-10-12 13:52   ` Slawomir Nowaczyk
2006-10-13 15:50     ` Eli Zaretskii
2006-10-14  7:53       ` Slawomir Nowaczyk
2006-10-27 21:36       ` Slawomir Nowaczyk
2006-11-03 21:11         ` Slawomir Nowaczyk
2006-11-04  3:37           ` Chong Yidong

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).