emacs-devel
[Top][All Lists]
Advanced

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

Re: Need help debugging Emacs: emacsclient will not draw its contents so


From: Jon Dufresne
Subject: Re: Need help debugging Emacs: emacsclient will not draw its contents sometimes
Date: Tue, 8 Sep 2015 11:58:35 -0700

On Tue, Sep 8, 2015 at 10:18 AM, Eli Zaretskii <address@hidden> wrote:
> The backtrace shows that Emacs is idle, waiting for input, which is
> normal.  Try typing "finish" repeatedly to step out of the functions
> shown in the backtrace, until some of them doesn't return.  Then tell
> here which one didn't.

Thanks!

I have tried this. The results are below. The client process hung on
the first "finish" while the server process took a few more commands
but eventually hung in command_loop_1(). Any thoughts on this?

Cheers,
Jon


Client:
(gdb) bt
#0  0x00000030d8b03a0d in __libc_recv (fd=3,
address@hidden, address@hidden, address@hidden) at
../sysdeps/unix/sysv/linux/x86_64/recv.c:29
#1  0x0000000000401ce0 in recv (__flags=0, __n=8192,
__buf=0x7ffd1328bf60, __fd=<optimized out>) at
/usr/include/bits/socket2.h:44
#2  main (argc=3, argv=0x7ffd1328e088) at ../../lib-src/emacsclient.c:1742
(gdb) finish
Run till exit from #0  0x00000030d8b03a0d in __libc_recv (fd=3,
address@hidden, address@hidden, address@hidden) at
../sysdeps/unix/sysv/linux/x86_64/recv.c:29


Server:
(gdb) bt
#0  0x00000030d8af913c in __pselect (address@hidden,
address@hidden,
address@hidden, address@hidden,
timeout=<optimized out>, address@hidden,
address@hidden) at ../sysdeps/unix/sysv/linux/pselect.c:77
#1  0x00000000005dbeb9 in xg_select (fds_lim=17,
address@hidden, address@hidden,
address@hidden, address@hidden,
address@hidden) at ../../src/xgselect.c:114
#2  0x00000000005a2669 in wait_reading_process_output
(address@hidden, address@hidden,
address@hidden, do_display=true, wait_for_cell=12327986,
address@hidden, just_wait_proc=0) at
../../src/process.c:4606
#3  0x00000000004f3eb1 in read_decoded_event_from_main_queue
(end_time=0x0, used_mouse_menu=0x7ffdd014f09b, kbp=<synthetic
pointer>) at ../../src/keyboard.c:3907
#4  0x00000000004f3eb1 in read_decoded_event_from_main_queue
(used_mouse_menu=0x7ffdd014f09b, local_getcjmp=0x7ffdd014edf0,
end_time=0x0) at ../../src/keyboard.c:2247
#5  0x00000000004f3eb1 in read_decoded_event_from_main_queue
(address@hidden,
address@hidden,
address@hidden,
address@hidden) at
../../src/keyboard.c:2310
#6  0x00000000004f7984 in read_char (commandflag=1,
address@hidden, prev_event=12327986,
address@hidden,
address@hidden)
    at ../../src/keyboard.c:2896
#7  0x00000000004f8a48 in read_key_sequence
(address@hidden, prompt=12327986,
address@hidden,
address@hidden,
address@hidden,
address@hidden, bufsize=30) at
../../src/keyboard.c:9089
#8  0x00000000004fa84e in command_loop_1 () at ../../src/keyboard.c:1453
#9  0x000000000055fd47 in internal_condition_case
(address@hidden <command_loop_1>, handlers=<optimized out>,
address@hidden <cmd_error>) at ../../src/eval.c:1348
#10 0x00000000004ec602 in command_loop_2
(address@hidden) at ../../src/keyboard.c:1178
#11 0x000000000055fc2b in internal_catch (tag=12375458,
address@hidden <command_loop_2>, arg=12327986) at
../../src/eval.c:1112
#12 0x00000000004f0d43 in recursive_edit_1 () at ../../src/keyboard.c:1157
#13 0x00000000004f0d43 in recursive_edit_1 () at ../../src/keyboard.c:778
#14 0x00000000004f1098 in Frecursive_edit () at ../../src/keyboard.c:849
#15 0x0000000000418537 in main (argc=<optimized out>,
argv=0x7ffdd014f508) at ../../src/emacs.c:1642
(gdb) finish
Run till exit from #0  0x00000030d8af913c in __pselect
(address@hidden, address@hidden,
address@hidden, address@hidden,
    timeout=<optimized out>, address@hidden,
address@hidden) at ../sysdeps/unix/sysv/linux/pselect.c:77
xg_select (fds_lim=17, address@hidden,
address@hidden, address@hidden,
address@hidden, address@hidden)
    at ../../src/xgselect.c:117
117      if (nfds < 0)
Value returned is $1 = 0
(gdb) finish
Run till exit from #0  xg_select (fds_lim=17,
address@hidden, address@hidden,
address@hidden, address@hidden,
    address@hidden) at ../../src/xgselect.c:117
wait_reading_process_output (address@hidden,
address@hidden, address@hidden, do_display=true,
wait_for_cell=12327986, address@hidden,
    just_wait_proc=0) at ../../src/process.c:4620
4620              if (nfds == 0)
Value returned is $2 = 0
(gdb) finish
Run till exit from #0  wait_reading_process_output
(address@hidden, address@hidden,
address@hidden, do_display=true, wait_for_cell=12327986,
    address@hidden, just_wait_proc=0) at ../../src/process.c:4620
0x00000000004f3eb1 in kbd_buffer_get_event (end_time=0x0,
used_mouse_menu=0x7ffdd014f09b, kbp=<synthetic pointer>) at
../../src/keyboard.c:3907
3907          wait_reading_process_output (0, 0, -1, do_display, Qnil, NULL, 0);
Value returned is $3 = true
(gdb) finish
Run till exit from #0  0x00000000004f3eb1 in kbd_buffer_get_event
(end_time=0x0, used_mouse_menu=0x7ffdd014f09b, kbp=<synthetic
pointer>) at ../../src/keyboard.c:3907
2247      c = kbd_buffer_get_event (&kb, used_mouse_menu, end_time);
(gdb) finish
Run till exit from #0  read_event_from_main_queue
(used_mouse_menu=0x7ffdd014f09b, local_getcjmp=0x7ffdd014edf0,
end_time=0x0) at ../../src/keyboard.c:2247
2320          struct frame *frame = XFRAME (selected_frame);
(gdb) finish
Run till exit from #0  read_decoded_event_from_main_queue
(address@hidden,
address@hidden,
address@hidden,
    address@hidden) at
../../src/keyboard.c:2320
read_char (commandflag=1, address@hidden, prev_event=12327986,
address@hidden,
address@hidden) at ../../src/keyboard.c:2898
2898          if (NILP(c) && end_time &&
Value returned is $4 = 75183542
(gdb) finish
Run till exit from #0  read_char (commandflag=1,
address@hidden, prev_event=12327986,
address@hidden,
address@hidden)
    at ../../src/keyboard.c:2898
0x00000000004f8a48 in read_key_sequence
(address@hidden, prompt=12327986,
address@hidden,
    address@hidden,
address@hidden,
address@hidden, bufsize=30)
    at ../../src/keyboard.c:9089
9089            key = read_char (prevent_redisplay ? -2 : NILP (prompt),
Value returned is $5 = 75183542
(gdb) finish
Run till exit from #0  0x00000000004f8a48 in read_key_sequence
(address@hidden, prompt=12327986,
address@hidden,
    address@hidden,
address@hidden,
address@hidden, bufsize=30)
    at ../../src/keyboard.c:9089
0x00000000004fa84e in command_loop_1 () at ../../src/keyboard.c:1453
1453          i = read_key_sequence (keybuf, sizeof keybuf / sizeof keybuf[0],
Value returned is $6 = 1
(gdb) finish
Run till exit from #0  0x00000000004fa84e in command_loop_1 () at
../../src/keyboard.c:1453



reply via email to

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