emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

23.0.60; Emacs consumes all CPU while idle


From: Reiner Steib
Subject: 23.0.60; Emacs consumes all CPU while idle
Date: Mon, 17 Mar 2008 21:42:34 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.92 (gnu/linux)

Hi,

since today or yesterday, Emacs starts consuming very much CPU time
while doing nothing (AFAICS).  And Emacs is not responsive.  After
moving other X windows in front of the Emacs frame, the Emacs frame
isn't redisplayed (just a white, empty window).  I can't even do M-x
report-emacs-bug, but here are the configure options (from a previous
report, date adjusted):

--8<---------------cut here---------------start------------->8---
In GNU Emacs 23.0.60.9 (i686-pc-linux-gnu, GTK+ Version 2.10.6)
 of 2008-03-17 on viandante
Windowing system distributor `The X.Org Foundation', version 11.0.70199902
configured using `configure '--prefix=/import/xtra/emacs/HEAD'
 '--exec-prefix=/import/xtra/emacs/HEAD-i686' 'CFLAGS=-Wno-pointer-sign
 -O0 -fno-crossjumping -gdwarf-2 -g3''
--8<---------------cut here---------------end--------------->8---

I can't reproduce it with -Q upto now.  Below are backtraces of two
instances after `kill -TSTP $PID' as suggested in etc/DEBUG.

Any idea what could be the problem?

Huch, now the Emacs instance where I tried to do `M-x' responds after
consuming more than 5 minutes of CPU time:

,----[ top ]
| Tasks: 177 total,   4 running, 171 sleeping,   2 stopped,   0 zombie
| Cpu(s): 28.7%us, 71.3%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
| Mem:    499840k total,   493420k used,     6420k free,     9376k buffers
| Swap:   618492k total,   214992k used,   403500k free,   119832k cached
| 
|   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND          
 
|   673 [...]     25   0 46048  24m 9936 R 99.1  5.0   5:45.55 emacs            
  
`----

--8<---------------cut here---------------start------------->8---
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-suse-linux"...Using host libthread_db library 
"/lib/libthread_db.so.1".

DISPLAY = :0.0
TERM = screen
Breakpoint 1 at 0x8180dc0: file [...]/cvs-HEAD/emacs/src/emacs.c, line 430.
Breakpoint 2 at 0x81a1648: file [...]/cvs-HEAD/emacs/src/sysdep.c, line 1317.
(gdb) run
Starting program: [...]/cvs-HEAD/i686/src/emacs-23.0.60.9 
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1220024640 (LWP 32497)]

Program received signal SIGTSTP, Stopped (user).
[Switching to Thread -1220024640 (LWP 32497)]
input_available_signal (signo=29)
    at [...]/cvs-HEAD/emacs/src/keyboard.c:7358
7358    {
(gdb) bt
#0  input_available_signal (signo=29)
    at [...]/cvs-HEAD/emacs/src/keyboard.c:7358
#1  <signal handler called>
#2  0xb7f81410 in ?? ()
#3  0xbfc128b8 in ?? ()
#4  0x091ab10d in ?? ()
#5  0x0000001d in ?? ()
#6  0xb7511386 in kill () from /lib/libc.so.6
#7  0x08255ce4 in wait_reading_process_output (time_limit=0, microsecs=0, 
    read_kbd=-1, do_display=1, wait_for_cell=138492105, wait_proc=0x0, 
    just_wait_proc=0)
    at [...]/cvs-HEAD/emacs/src/process.c:4739
#8  0x0818a31e in kbd_buffer_get_event (kbp=0xbfc129d8, 
    used_mouse_menu=0xbfc12db8, end_time=0x0)
    at [...]/cvs-HEAD/emacs/src/keyboard.c:4124
#9  0x0818846c in read_char (commandflag=1, nmaps=5, maps=0xbfc12c20, 
    prev_event=138492105, used_mouse_menu=0xbfc12db8, end_time=0x0)
    at [...]/cvs-HEAD/emacs/src/keyboard.c:3078
#10 0x08192807 in read_key_sequence (keybuf=0xbfc12fc8, bufsize=30, 
    prompt=138492105, dont_downcase_last=0, can_return_switch_frame=1, 
    fix_current_buffer=1)
    at [...]/cvs-HEAD/emacs/src/keyboard.c:9458
#11 0x08184dab in command_loop_1 ()
    at [...]/cvs-HEAD/emacs/src/keyboard.c:1653
#12 0x08210a18 in internal_condition_case (bfun=0x8184a79 <command_loop_1>, 
    handlers=138536361, hfun=0x8184439 <cmd_error>)
    at [...]/cvs-HEAD/emacs/src/eval.c:1494
#13 0x081847d2 in command_loop_2 ()
    at [...]/cvs-HEAD/emacs/src/keyboard.c:1370
#14 0x082104d4 in internal_catch (tag=138531209, 
    func=0x81847af <command_loop_2>, arg=138492105)
    at [...]/cvs-HEAD/emacs/src/eval.c:1230
#15 0x08184788 in command_loop ()
    at [...]/cvs-HEAD/emacs/src/keyboard.c:1349
#16 0x08184046 in recursive_edit_1 ()
    at [...]/cvs-HEAD/emacs/src/keyboard.c:958
#17 0x081841b4 in Frecursive_edit ()
    at [...]/cvs-HEAD/emacs/src/keyboard.c:1020
#18 0x08182a4c in main (argc=1, argv=0xbfc137a4)
    at [...]/cvs-HEAD/emacs/src/emacs.c:1784
(gdb) xbacktrace 
(gdb) 
--8<---------------cut here---------------end--------------->8---

--8<---------------cut here---------------start------------->8---
DISPLAY = :0.0
TERM = screen
Breakpoint 1 at 0x8180dc0: file [...]/cvs-HEAD/emacs/src/emacs.c, line 430.
Breakpoint 2 at 0x81a1648: file [...]/cvs-HEAD/emacs/src/sysdep.c, line 1317.
(gdb) run 
Starting program: [...]/cvs-HEAD/i686/src/emacs 
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1220581696 (LWP 562)]

Program received signal SIGTSTP, Stopped (user).
[Switching to Thread -1220581696 (LWP 562)]
0x0818ae3b in timer_check (do_it_now=1)
    at [...]/cvs-HEAD/emacs/src/keyboard.c:4580
4580              if (!VECTORP (timer) || XVECTOR (timer)->size != 8)
(gdb) bt
#0  0x0818ae3b in timer_check (do_it_now=1)
    at [...]/cvs-HEAD/emacs/src/keyboard.c:4580
#1  0x08255430 in wait_reading_process_output (time_limit=0, microsecs=0, 
    read_kbd=-1, do_display=1, wait_for_cell=138492105, wait_proc=0x0, 
    just_wait_proc=0)
    at [...]/cvs-HEAD/emacs/src/process.c:4367
#2  0x0818a31e in kbd_buffer_get_event (kbp=0xbfebf498, 
    used_mouse_menu=0xbfebf878, end_time=0x0)
    at [...]/cvs-HEAD/emacs/src/keyboard.c:4124
#3  0x0818846c in read_char (commandflag=1, nmaps=5, maps=0xbfebf6e0, 
    prev_event=138492105, used_mouse_menu=0xbfebf878, end_time=0x0)
    at [...]/cvs-HEAD/emacs/src/keyboard.c:3078
#4  0x08192807 in read_key_sequence (keybuf=0xbfebfa88, bufsize=30, 
    prompt=138492105, dont_downcase_last=0, can_return_switch_frame=1, 
    fix_current_buffer=1)
    at [...]/cvs-HEAD/emacs/src/keyboard.c:9458
#5  0x08184dab in command_loop_1 ()
    at [...]/cvs-HEAD/emacs/src/keyboard.c:1653
#6  0x08210a18 in internal_condition_case (bfun=0x8184a79 <command_loop_1>, 
    handlers=138536361, hfun=0x8184439 <cmd_error>)
    at [...]/cvs-HEAD/emacs/src/eval.c:1494
#7  0x081847d2 in command_loop_2 ()
    at [...]/cvs-HEAD/emacs/src/keyboard.c:1370
#8  0x082104d4 in internal_catch (tag=138531209, 
    func=0x81847af <command_loop_2>, arg=138492105)
    at [...]/cvs-HEAD/emacs/src/eval.c:1230
#9  0x08184788 in command_loop ()
    at [...]/cvs-HEAD/emacs/src/keyboard.c:1349
#10 0x08184046 in recursive_edit_1 ()
    at [...]/cvs-HEAD/emacs/src/keyboard.c:958
#11 0x081841b4 in Frecursive_edit ()
    at [...]/cvs-HEAD/emacs/src/keyboard.c:1020
#12 0x08182a4c in main (argc=1, argv=0xbfec0264)
    at [...]/cvs-HEAD/emacs/src/emacs.c:1784
(gdb) xbacktrace 
(gdb) 
--8<---------------cut here---------------end--------------->8---

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]