Discussion:
crash in emacs-multi-tty on freebsd
Richard Lewis
2007-02-02 17:57:50 UTC
Permalink
I had 'gdb --args emacs -nw' running on a on freebsd 5.4-prerelease box, and on a
remote host (running linux) I ran

ssh -X user at freebsd-host -t emacsclient

to get an X frame. But then the linux host lost power (so in
particular the X frame got killed rather suddenly) and this crashed
the whole emacs process on the freebsd box. This was from 2007-01-15
- i think i took the source code from whatever debian package was
current at that time, and compiled it on freebsd.

Here's the backtrace, hope it helps.

(gdb) bt
#0 0x284c125b in kill () from /lib/libc.so.5
#1 0x080e0ec2 in abort () at emacs.c:465
#2 0x0813f778 in internal_condition_case_2 (bfun=0x8142360 <Frun_hook_with_args>, nargs=2, args=0xbfbfc7a8,
handlers=137513009, hfun=0x8059590 <delete_frame_handler>) at eval.c:1548
#3 0x0805b081 in Fdelete_frame (frame=154066948, force=137513009) at frame.c:1423
#4 0x080c5da6 in x_connection_closed (dpy=0x8e2c800,
error_message=0xbfbfc8c0 "Connection lost to X server `localhost:10.0'") at xterm.c:7740
#5 0x080c5e2a in x_io_error_quitter (display=0x8e2c800) at xterm.c:7878
#6 0x2839eec6 in _XIOError () from /usr/X11R6/lib/libX11.so.6
#7 0x2839bf23 in _XFlushInt () from /usr/X11R6/lib/libX11.so.6
#8 0x2839bdc0 in _XFlush () from /usr/X11R6/lib/libX11.so.6
#9 0x2839bfbb in _XEventsQueued () from /usr/X11R6/lib/libX11.so.6
#10 0x283909ab in XPending () from /usr/X11R6/lib/libX11.so.6
#11 0x080c5f18 in XTread_socket (terminal=0x9005e00, expected=1, hold_quit=0xbfbfd3b0) at xterm.c:7068
#12 0x080e9718 in read_avail_input (expected=1) at keyboard.c:6840
#13 0x080e97d2 in handle_async_input () at keyboard.c:7047
#14 0x080e97ff in input_available_signal (signo=23) at keyboard.c:7089
#15 0xbfbfff94 in ?? ()
#16 0x00000017 in ?? ()
#17 0x00000000 in ?? ()
#18 0xbfbfd440 in ?? ()
#19 0x00000002 in ?? ()
#20 0x080e97d8 in handle_async_input () at keyboard.c:7052
#21 0x080f92a4 in request_sigio () at sysdep.c:1046
#22 0x08078336 in redisplay_internal (preserve_echo_area=0) at xdisp.c:11295
#23 0x080eac2d in read_char (commandflag=1, nmaps=4, maps=0xbfbfdf50, prev_event=137512961, used_mouse_menu=0xbfbfdf98)
at keyboard.c:2633
#24 0x080ed681 in read_key_sequence (keybuf=0xbfbfe0b0, bufsize=30, prompt=137512961, dont_downcase_last=0,
can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9022
#25 0x080ef051 in command_loop_1 () at keyboard.c:1610
#26 0x0813f676 in internal_condition_case (bfun=0x80eeeb8 <command_loop_1>, handlers=137601097,
hfun=0x80e8a38 <cmd_error>) at eval.c:1474
#27 0x080e329e in command_loop_2 () at keyboard.c:1400
---Type <return> to continue, or q <return> to quit---
#28 0x0813f39d in internal_catch (tag=0, func=0x80e3280 <command_loop_2>, arg=137512961) at eval.c:1212
#29 0x080e3080 in command_loop () at keyboard.c:1379
#30 0x080e311b in recursive_edit_1 () at keyboard.c:987
#31 0x080e326b in Frecursive_edit () at keyboard.c:1049
#32 0x080e256d in main (argc=2, argv=0xbfbfe3e4) at emacs.c:1798
(gdb)

Loading...