[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Busy wait in Emacs
From: |
David Kastrup |
Subject: |
Busy wait in Emacs |
Date: |
Thu, 10 Aug 2006 21:29:38 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
At some point of time, an Emacs GTK+ X11 session left alone suddenly
decided to devour full CPU power, with the cursor only blinking
infrequently. This is a build from yesterday.
Hardly surprising, sit-for is involved.
If emacs crashed, and you have the emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
See here:
(gdb) bt
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb774808d in select () from /lib/tls/i686/cmov/libc.so.6
#2 0x08182933 in select_wrapper (n=-514, rfd=0x0, wfd=0xbfa00198, xfd=0x0,
tmo=0x0)
at /home/tmp/emacs/src/process.c:4189
#3 0x08184812 in wait_reading_process_output (time_limit=0, microsecs=499903,
read_kbd=-1, do_display=1, wait_for_cell=137427145, wait_proc=0x0,
just_wait_proc=0) at /home/tmp/emacs/src/process.c:4558
#4 0x080fa298 in read_char (commandflag=0, nmaps=0, maps=0x0,
prev_event=137427193,
used_mouse_menu=0x0, end_time=0xbfa00548) at
/home/tmp/emacs/src/keyboard.c:3962
#5 0x08166a7f in read_filtered_event (no_switch_frame=0, ascii_required=0,
error_nonascii=0, input_method=0, seconds=137417878)
at /home/tmp/emacs/src/lread.c:495
#6 0x08166d56 in Fread_event (prompt=137427145, inherit_input_method=137427145,
seconds=-514) at /home/tmp/emacs/src/lread.c:600
#7 0x081531df in Ffuncall (nargs=4, args=0xbfa00600)
at /home/tmp/emacs/src/eval.c:2988
#8 0x0817ca2e in Fbyte_code (bytestr=136060667, vector=136060684, maxdepth=40)
at /home/tmp/emacs/src/bytecode.c:679
#9 0x08152bea in funcall_lambda (fun=136060604, nargs=1, arg_vector=0xbfa00734)
at /home/tmp/emacs/src/eval.c:3169
#10 0x08153040 in Ffuncall (nargs=2, args=0xbfa00730)
at /home/tmp/emacs/src/eval.c:3028
#11 0x0817ca2e in Fbyte_code (bytestr=136485603, vector=136485628, maxdepth=48)
at /home/tmp/emacs/src/bytecode.c:679
#12 0x08152768 in Feval (form=136485589) at /home/tmp/emacs/src/eval.c:2319
#13 0x08154a21 in internal_lisp_condition_case (var=137427145,
bodyform=136485589,
handlers=136485941) at /home/tmp/emacs/src/eval.c:1414
#14 0x0817dbe0 in Fbyte_code (bytestr=136485515, vector=136485532, maxdepth=32)
at /home/tmp/emacs/src/bytecode.c:869
#15 0x08152bea in funcall_lambda (fun=136485484, nargs=0, arg_vector=0xbfa00b08)
at /home/tmp/emacs/src/eval.c:3169
#16 0x08153040 in Ffuncall (nargs=1, args=0xbfa00b04)
at /home/tmp/emacs/src/eval.c:3028
#17 0x0815461f in Fapply (nargs=2, args=0xbfa00b04) at
/home/tmp/emacs/src/eval.c:2411
#18 0x0815331e in Ffuncall (nargs=3, args=0xbfa00b00)
at /home/tmp/emacs/src/eval.c:2963
#19 0x0817ca2e in Fbyte_code (bytestr=136511459, vector=136511484, maxdepth=32)
at /home/tmp/emacs/src/bytecode.c:679
#20 0x08152768 in Feval (form=136511445) at /home/tmp/emacs/src/eval.c:2319
#21 0x08154a21 in internal_lisp_condition_case (var=137427145,
bodyform=136511445,
handlers=136511517) at /home/tmp/emacs/src/eval.c:1414
#22 0x0817dbe0 in Fbyte_code (bytestr=136511315, vector=136511332, maxdepth=40)
at /home/tmp/emacs/src/bytecode.c:869
#23 0x08152bea in funcall_lambda (fun=136511276, nargs=1, arg_vector=0xbfa00e44)
at /home/tmp/emacs/src/eval.c:3169
#24 0x08153040 in Ffuncall (nargs=2, args=0xbfa00e40)
at /home/tmp/emacs/src/eval.c:3028
#25 0x08154257 in call1 (fn=137462553, arg1=145505828)
at /home/tmp/emacs/src/eval.c:2767
#26 0x080f2368 in timer_check (do_it_now=1) at
/home/tmp/emacs/src/keyboard.c:4507
#27 0x080f24eb in readable_events (flags=1) at
/home/tmp/emacs/src/keyboard.c:3532
#28 0x080f9669 in get_input_pending (addr=0x82fd5b8, flags=1)
at /home/tmp/emacs/src/keyboard.c:6626
#29 0x080f9721 in detect_input_pending_run_timers (do_display=1)
at /home/tmp/emacs/src/keyboard.c:10000
#30 0x081848c4 in wait_reading_process_output (time_limit=30, microsecs=0,
read_kbd=-1, do_display=1, wait_for_cell=137427145, wait_proc=0x0,
just_wait_proc=0) at /home/tmp/emacs/src/process.c:4661
#31 0x0805ac2b in sit_for (timeout=240, reading=1, do_display=1)
at /home/tmp/emacs/src/dispnew.c:6543
#32 0x080faa79 in read_char (commandflag=1, nmaps=4, maps=0xbfa014d0,
prev_event=137427145, used_mouse_menu=0xbfa01578, end_time=0x0)
at /home/tmp/emacs/src/keyboard.c:2783
#33 0x080fc4cf in read_key_sequence (keybuf=0xbfa01614, bufsize=30,
prompt=137427145,
dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1)
at /home/tmp/emacs/src/keyboard.c:8902
#34 0x080fdf9d in command_loop_1 () at /home/tmp/emacs/src/keyboard.c:1535
#35 0x0815167c in internal_condition_case (bfun=0x80fde09 <command_loop_1>,
handlers=137471809, hfun=0x80f6520 <cmd_error>) at
/home/tmp/emacs/src/eval.c:1469
#36 0x080f0b5f in command_loop_2 () at /home/tmp/emacs/src/keyboard.c:1326
#37 0x08151380 in internal_catch (tag=-514, func=0x80f0b3c <command_loop_2>,
arg=137427145) at /home/tmp/emacs/src/eval.c:1210
#38 0x080f0991 in command_loop () at /home/tmp/emacs/src/keyboard.c:1305
#39 0x080f0a2f in recursive_edit_1 () at /home/tmp/emacs/src/keyboard.c:1003
#40 0x080f0b00 in Frecursive_edit () at /home/tmp/emacs/src/keyboard.c:1064
#41 0x080efb2d in main (argc=1, argv=0xbfa01d04) at
/home/tmp/emacs/src/emacs.c:1794
Lisp Backtrace:
"read-event" (0x830f8c9)
"sit-for" (0x830d496)
"byte-code" (0x8229ae3)
"jit-lock-stealth-fontify" (0x830f8c9)
"apply" (0x853e069)
"byte-code" (0x822ffe3)
"timer-event-handler" (0x8ac3e24)
(gdb)
In GNU Emacs 22.0.50.5 (i686-pc-linux-gnu, GTK+ Version 2.8.18)
of 2006-08-09 on lola
X server distributor `The X.Org Foundation', version 11.0.70000000
configured using `configure '--prefix=/usr/local/emacs-21' '--with-gtk'
'--without-toolkit-scroll-bars''
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: en_US.UTF-8
locale-coding-system: utf-8
default-enable-multibyte-characters: t
Major mode: PDFdocTeX
Minor modes in effect:
reftex-mode: t
TeX-PDF-mode: t
desktop-save-mode: t
iswitchb-mode: t
minibuffer-electric-default-mode: t
tooltip-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
unify-8859-on-decoding-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
auto-compression-mode: t
line-number-mode: t
Recent input:
M-x e m a c s - r e p o r t - b u g <return> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
r e p o r t - e m a c s - b u g <return>
Recent messages:
Applying style hooks... done
Sorting environment...
Removing duplicates... done
Applying style hooks... done
Loading info...done
uncompressing latex.info.gz...done
uncompressing gdb.info.gz...done
uncompressing guile-tut.info.gz...done
Desktop: 14 buffers restored.
Loading emacsbug...done
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- Busy wait in Emacs,
David Kastrup <=