Hi,
Xemacs crashes often when I try to ctrl-x ctrl-c to exit. No files are lost
but it is a hassle to see the core dump. Here is the error dump and C stack
backtrace. Please let me know if there is anything I can do to avoid problem
like this.
Thanks a bunch.
***************************** Error
Log*******************************************
Fatal error (11).
Your files have been auto-saved.
Use `M-x recover-session' to recover them.
If you have access to the PROBLEMS file that came with your
version of XEmacs, please check to see if your crash is described
there, as there may be a workaround available.
Otherwise, please report this bug by running the send-pr
script included with XEmacs, or selecting `Send Bug Report'
from the help menu.
As a last resort send ordinary email to `crashes(a)xemacs.org'.
*MAKE SURE* to include the information in the command
M-x describe-installation.
If at all possible, *please* try to obtain a C stack backtrace;
it will help us immensely in determining what went wrong.
To do this, locate the core file that was produced as a result
of this crash (it's usually called `core' and is located in the
directory in which you started the editor, or maybe in your home
directory), and type
gdb /tools/xemacs/21.4.1/SunOS/bin/xemacs core
then type `where' when the debugger prompt comes up.
(If you don't have GDB on your system, you might have DBX,
or XDB, or SDB. A similar procedure should work for all of
these. Ask your system administrator if you need more help.)
Lisp backtrace follows:
kill-emacs()
# bind (arg)
save-buffers-kill-emacs(nil)
# bind (command-debug-status)
call-interactively(save-buffers-kill-emacs)
# (condition-case ... . error)
# (catch top-level ...)
[2] Segmentation fault xemacs tb_serdes5915_bert_sata.v -font
9x15 -geometry 90x45 -bg gray -fg black (core dumped)
*******************************C Stack
Backtrace*****************************************
[cs-irva-158]{10:46}[bench]-> gdb /tools/xemacs/21.4.1/SunOS/bin/xemacs core
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.5.1"...
warning: core file may not match specified executable file.
Core was generated by `/tools/xemacs/21.4.1/SunOS/bin/xemacs
tb_serdes5915_bert_sata.v -font 9x15 -geo'.
Program terminated with signal 11, Segmentation Fault.
Reading symbols from /usr/dt/lib/libXm.so.3...done.
Reading symbols from /tools/X11/R6.4/SunOS/lib/libpng.so.2...done.
Reading symbols from /usr/openwin/lib/libtt.so.2...done.
Reading symbols from /tools/X11/R6.4/SunOS/lib/libXmu.so.6.0...done.
Reading symbols from /tools/X11/R6.4/SunOS/lib/libXt.so.6.0...done.
Reading symbols from /tools/X11/R6.4/SunOS/lib/libXext.so.6.4...done.
Reading symbols from /tools/X11/R6.4/SunOS/lib/libX11.so.6.1...done.
Reading symbols from /tools/X11/R6.4/SunOS/lib/libSM.so.6.0...done.
Reading symbols from /tools/X11/R6.4/SunOS/lib/libICE.so.6.3...done.
Reading symbols from /usr/lib/libkvm.so.1...done.
Reading symbols from /usr/lib/libkstat.so.1...done.
Reading symbols from /usr/lib/libm.so.1...done.
Reading symbols from /usr/lib/libsocket.so.1...done.
Reading symbols from /usr/lib/libnsl.so.1...done.
Reading symbols from /usr/lib/libelf.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/openwin/lib/libXt.so.4...done.
Reading symbols from /usr/openwin/lib/libX11.so.4...done.
Reading symbols from /usr/lib/libmp.so.2...done.
Reading symbols from /usr/openwin/lib/libSM.so.6...done.
Reading symbols from /usr/openwin/lib/libICE.so.6...done.
Reading symbols from /usr/openwin/lib/libXext.so.0...done.
Reading symbols from /usr/openwin/lib/libdga.so.1...done.
Reading symbols from /usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1...done.
#0 0x7f51b638 in _libc_kill ()
(gdb) where
#0 0x7f51b638 in _libc_kill ()
#1 0x8f4bc in fatal_error_signal (sig=11) at
/tools/src/xemacs/xemacs-21.4.1/src/emacs.c:535
#2 <signal handler called>
#3 0x7facd70c in RemoveMatchingEntries ()
#4 0x7fa8040c in _XmEnumerateHashTable ()
#5 0x7facd848 in CleanupOnDisplayClose ()
#6 0x7f870cfc in XtCallCallbackList ()
#7 0x7f879840 in XtPhase2Destroy ()
#8 0x7f879a58 in _XtDoPhase2Destroy ()
#9 0x7f879c68 in XtDestroyWidget ()
#10 0x16feec in x_delete_device (d=0x4eb800) at
/tools/src/xemacs/xemacs-21.4.1/src/device-x.c:875
#11 0x810bc in delete_device_internal (d=0x4eb800, force=2179072,
called_from_delete_console=2179072, from_io_error=0)
at /tools/src/xemacs/xemacs-21.4.1/src/device.c:823
#12 0x78318 in delete_console_internal (con=0x48da00, force=1,
called_from_kill_emacs=2179072, from_io_error=0)
at /tools/src/xemacs/xemacs-21.4.1/src/console.c:689
#13 0x91594 in Fkill_emacs (arg=2361348) at
/tools/src/xemacs/xemacs-21.4.1/src/emacs.c:2848
#14 0x97fbc in Ffuncall (nargs=-1, args=0xffbed04c) at
/tools/src/xemacs/xemacs-21.4.1/src/eval.c:3528
#15 0x6cea0 in execute_optimized_program (program=0x26f161 "\207",
stack_depth=0, constants_data=0x399110) at
/tools/src/xemacs/xemacs-21.4.1/src/bytecode.c:746
#16 0x6caf8 in funcall_compiled_function (fun=3817728, nargs=1,
args=0xffbed21c) at /tools/src/xemacs/xemacs-21.4.1/src/bytecode.c:515
#17 0x9819c in Ffuncall (nargs=1, args=0xffbed218) at
/tools/src/xemacs/xemacs-21.4.1/src/eval.c:3563
#18 0x71ce4 in Fcall_interactively (function=2452948, record_flag=2361348,
keys=2361348) at /tools/src/xemacs/xemacs-21.4.1/src/callint.c:940
#19 0x96f34 in Fcommand_execute (cmd=2452948, record_flag=2361348,
keys=2361348) at /tools/src/xemacs/xemacs-21.4.1/src/eval.c:2970
#20 0xc2680 in execute_command_event (command_builder=0x4ce280,
event=5986000) at /tools/src/xemacs/xemacs-21.4.1/src/event-stream.c:3834
#21 0xc2cc0 in Fdispatch_event (event=5986000) at
/tools/src/xemacs/xemacs-21.4.1/src/event-stream.c:4117
#22 0x769c0 in Fcommand_loop_1 () at
/tools/src/xemacs/xemacs-21.4.1/src/cmdloop.c:583
#23 0x76c28 in command_loop_1 (dummy=2361348) at
/tools/src/xemacs/xemacs-21.4.1/src/cmdloop.c:494
#24 0x941d0 in condition_case_1 (handlers=2361444, bfun=0x76c0c
<command_loop_1>, barg=2361348, hfun=0x76c88 <cmd_error>, harg=2361348)
at /tools/src/xemacs/xemacs-21.4.1/src/eval.c:1651
#25 0x76d98 in command_loop_2 (dummy=2361348) at
/tools/src/xemacs/xemacs-21.4.1/src/cmdloop.c:256
#26 0x9bff0 in internal_catch (tag=2441388, func=0x76d4c <command_loop_2>,
arg=2361348, threw=0x0) at /tools/src/xemacs/xemacs-21.4.1/src/eval.c:1317
#27 0x7656c in initial_command_loop (load_me=2361348) at
/tools/src/xemacs/xemacs-21.4.1/src/cmdloop.c:305
#28 0x90e20 in sort_args (argc=2173952, argv=0xffbeda54) at
/tools/src/xemacs/xemacs-21.4.1/src/emacs.c:2344
#29 0x92a54 in voodoo_free_hook (mem=0xa) at
/tools/src/xemacs/xemacs-21.4.1/src/emacs.c:2773
(gdb)
===========================================
Sam Liu Email: sliu(a)broadcom.com
Broadcom Corporation Phone:(949)585-5847
16215 Alton Parkway Fax: (949)585-6022
Irvine, CA 92619
http://www.broadcom.com