Bug 754837 - emacs -nw hangs, consumes 100% CPU
Summary: emacs -nw hangs, consumes 100% CPU
Keywords:
Status: CLOSED DUPLICATE of bug 752936
Alias: None
Product: Fedora
Classification: Fedora
Component: emacs
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Karel Klíč
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-17 21:07 UTC by Richard W.M. Jones
Modified: 2013-03-03 23:03 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-11-22 16:23:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2011-11-17 21:07:54 UTC
Description of problem:

Just run 'emacs -nw'.  This command hangs, consuming 100% of CPU.
The last message printed at the bottom of the screen (may not
be relevant) is:

  Loading /usr/share/emacs/site-lisp/site-start.d/rpmdev-init.el

Version-Release number of selected component (if applicable):

emacs-23.3-13.fc17.x86_64
rpmdevtools-8.2-1.fc16.noarch

How reproducible:

100%

Steps to Reproduce:
1. emacs -nw
2.
3.
  
Actual results:

Hangs, consuming 100% CPU.

Expected results:

Should start up emacs.

Additional info:

Ordinary graphical emacs (no -nw option) works fine.

Comment 1 Richard W.M. Jones 2011-11-17 21:21:17 UTC
A gdb stack trace taken during the hang.  I'm not sure how relevant
this is to anything.

#0  xg_select (max_fds=4, rfds=0x7fff4f931fd0, wfds=0x0, efds=0x0, timeout=
    0x7fff4f932220) at /usr/src/debug/emacs-23.3/src/xgselect.c:58
#1  0x000000000059cd3b in wait_reading_process_output (time_limit=1, microsecs=
    998615, read_kbd=<optimized out>, do_display=1, wait_for_cell=11690546, 
    wait_proc=0x0, just_wait_proc=0)
    at /usr/src/debug/emacs-23.3/src/process.c:4981
#2  0x00000000004f0049 in kbd_buffer_get_event (end_time=0x7fff4f9326c0, 
    used_mouse_menu=0x0, kbp=read_sleb128: Corrupted DWARF expression.
) at /usr/src/debug/emacs-23.3/src/keyboard.c:4177
#3  read_char (commandflag=0, nmaps=0, maps=0x0, prev_event=11690642, 
    used_mouse_menu=0x0, end_time=0x7fff4f9326c0)
    at /usr/src/debug/emacs-23.3/src/keyboard.c:3081
#4  0x000000000057a97d in read_filtered_event (no_switch_frame=0, 
    ascii_required=0, error_nonascii=0, input_method=0, 
    seconds=<optimized out>) at /usr/src/debug/emacs-23.3/src/lread.c:720
#5  0x0000000000559a59 in Ffuncall (nargs=4, args=<optimized out>)
    at /usr/src/debug/emacs-23.3/src/eval.c:3037
#6  0x0000000000593f53 in Fbyte_code (bytestr=<optimized out>, 
    vector=<optimized out>, maxdepth=<optimized out>)
    at /usr/src/debug/emacs-23.3/src/bytecode.c:680
#7  0x000000000055954b in funcall_lambda (fun=15751381, nargs=<optimized out>, 
    arg_vector=0x7fff4f932978) at /usr/src/debug/emacs-23.3/src/eval.c:3220
#8  0x00000000005598ab in Ffuncall (nargs=1, args=0x7fff4f932970)
    at /usr/src/debug/emacs-23.3/src/eval.c:3088
#9  0x0000000000593f53 in Fbyte_code (bytestr=<optimized out>, 
    vector=<optimized out>, maxdepth=<optimized out>)
    at /usr/src/debug/emacs-23.3/src/bytecode.c:680
#10 0x000000000055954b in funcall_lambda (fun=8976317, nargs=<optimized out>, 
    arg_vector=0x7fff4f932b28) at /usr/src/debug/emacs-23.3/src/eval.c:3220
#11 0x00000000005598ab in Ffuncall (nargs=2, args=0x7fff4f932b20)
    at /usr/src/debug/emacs-23.3/src/eval.c:3088
#12 0x0000000000593f53 in Fbyte_code (bytestr=<optimized out>, 
    vector=<optimized out>, maxdepth=<optimized out>)
    at /usr/src/debug/emacs-23.3/src/bytecode.c:680
#13 0x000000000055954b in funcall_lambda (fun=9069213, nargs=<optimized out>, 
    arg_vector=0x7fff4f932cf8) at /usr/src/debug/emacs-23.3/src/eval.c:3220
#14 0x00000000005598ab in Ffuncall (nargs=1, args=0x7fff4f932cf0)
    at /usr/src/debug/emacs-23.3/src/eval.c:3088
#15 0x0000000000593f53 in Fbyte_code (bytestr=<optimized out>, 
    vector=<optimized out>, maxdepth=<optimized out>)
    at /usr/src/debug/emacs-23.3/src/bytecode.c:680
#16 0x000000000055954b in funcall_lambda (fun=9063157, nargs=<optimized out>, 
    arg_vector=0x7fff4f932e20) at /usr/src/debug/emacs-23.3/src/eval.c:3220
#17 0x000000000055b616 in apply_lambda (fun=9063157, args=<optimized out>, 
    eval_flag=1) at /usr/src/debug/emacs-23.3/src/eval.c:3143
#18 0x0000000000558ceb in Feval (form=<optimized out>)
    at /usr/src/debug/emacs-23.3/src/eval.c:2410
[...]

Comment 2 Karel Klíč 2011-11-22 16:23:50 UTC

*** This bug has been marked as a duplicate of bug 752936 ***


Note You need to log in before you can comment on or make changes to this bug.