emacs-devel
[Top][All Lists]
Advanced

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

Need help debugging Emacs: emacsclient will not draw its contents someti


From: Jon Dufresne
Subject: Need help debugging Emacs: emacsclient will not draw its contents sometimes
Date: Tue, 8 Sep 2015 06:00:25 -0700

Hi,

I run into a bug daily but I can't pin down the exact source of the problem.

I can't reproduce the bug on demand, but if I use Emacs long enough,
eventually the bug will be triggered.

The scenario:

I run Emacs using the Emacs daemon. I regularly connect to the daemon
with emacsclient. Frequently, the client is started from an external
program, such as during a mercurial commit. _Sometimes the emacsclient
frame will not draw its contents_, leaving Emacs in a useless state.
This only occurs after the Emacs daemon has been running for hours and
has already successfully started many emacsclients. When this occurs,
my window manager shows that the program is running and has drawn an
outline of where Emacs should be, but there are no contents. After the
first occurrence, all new emacsclients will suffer the same fate and
will not draw their contents. To Emacs return to a useful state, I
restart the Emacs daemon. This means I lose the open buffers of my
currently running Emacs.

Unfortunately, as I can't reliably reproduce this on demand, it is
difficult and time consuming to tests different versions of init.el.

Emacs version:
GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.16.2) of
2015-04-22 on buildhw-10.phx2.fedoraproject.org

I have attached a debugger to the running Emacs after this has
occurred. I see the following backtrace below.

Any help towards debugging this issue would be greatly appreciated.
Please let me know if there is a useful command I can run run to help
diagnose the issue.

(gdb) bt
#0  0x00007f184dcd313c 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=15,
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=0x7fff0ba232eb, kbp=<synthetic
pointer>) at ../../src/keyboard.c:3907
#4  0x00000000004f3eb1 in read_decoded_event_from_main_queue
(used_mouse_menu=0x7fff0ba232eb, local_getcjmp=0x7fff0ba23040,
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=0x7fff0ba23758) at ../../src/emacs.c:1642

(gdb) bt
#0  0x00007f67c0942a0d 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=0x7fffb54676b0, __fd=<optimized out>) at
/usr/include/bits/socket2.h:44
#2  main (argc=3, argv=0x7fffb54697d8) at ../../lib-src/emacsclient.c:1742



reply via email to

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