Hi Stephen, Vin,
Thanks for your responses. I've managed to build xemacs with the
debugging on. I've attached the installation report once more.
These are somethings you might want to know:
1. Interestingly, my xemacs does not support (?) M-x report-xemacs-bug!
I really don't like to use the menu, but, then, I also noticed that
"Send Bug Report" from my help menu is disabled.
2. Reproducing my crash is simple. I just bring up xemacs, and exit.
This crash happens just as xemacs is exiting.
3. Another interesting thing: This crash does not occur when I follow
this sequence:
o Start xemacs
o M-x (I get into the mini buffer)
o C-g (Quit the mini buffer)
o C-x-c (Quit xemacs)
4. The crash occurs if I get into the mini-buffer with a C-s (for a
search), and then C-g, C-x-c
5. Off topic, but, I am not able to build xemacs with a "--with-gtk". I
get into some compiler error complaining undeclared GTK_TYPE_GDK_EVENT
in when compiling device-gtk.c. Nothing related to the problem at hand,
could possible be due to the co-existense of both gtk-1.2 and gtk-2.0 in
my machine; I'll look more into it before I pass on the cake to you. If
this is a known problem, you could possibly tell me where I've gone wrong.
Thanks for all the efforts in making xemacs strong. I've never worked
with xemacs; and I find the editor is having wonderful features. I am
getting late, and my next mail would be after about 12 hours.
Regards,
Arvind.
uname -a: SunOS insn123f 5.6 Generic_105181-26 sun4u sparc SUNW,Ultra-60
./configure '--debug' '--prefix=/usr/local/xemacs'
XEmacs 21.4.12 "Portable Code" configured for `sparc-sun-solaris2.6'.
Compilation / Installation:
Source code location: /home2/arvind/downloads/xemacs-21.4.12
Installation prefix: /usr/local/xemacs
Runtime library search path:
/usr/dt/lib:/usr/openwin/lib:/home2/gcc/bin/../lib/gcc-lib/sparc-sun-solaris2.6/3.1/../../..:/home2/gcc//lib/gcc-lib/sparc-sun-solaris2.6/3.1/../../..
Operating system description file: `s/sol2.h'
Machine description file: `m/sparc.h'
Compiler: gcc -g -O3 -Wall -Wno-switch
-Winline -Wmissing-prototypes -Wsign-compare -Wshadow -Wpointer-arith
Relocating allocator for buffers: yes
GNU version of malloc: yes
Window System:
Compiling in support for the X window system:
- X Windows headers location: /usr/dt/include
/usr/openwin/include
- X Windows libraries location: /usr/dt/lib
/usr/openwin/lib
- Handling WM_COMMAND properly.
Using Lucid menubars.
Using Lucid scrollbars.
Using Motif dialog boxes.
Using Motif native widgets.
TTY:
Compiling in support for ncurses.
Images:
Compiling in support for GIF images (builtin).
Compiling in support for XPM images.
Compiling in support for PNG images.
Compiling in support for JPEG images.
Sound:
Databases:
Compiling in support for Berkeley database.
Compiling in support for DBM.
Internationalization:
Mail:
Compiling in support for "dot-locking" mail spool file locking method.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for ToolTalk.
Compiling in support for dynamic shared object modules.
Compiling in support for extra debugging code.
% gdb /usr/local/xemacs/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.6"...
warning: core file may not match specified executable file.
Core was generated by `/usr/local/xemacs/bin/xemacs'.
Program terminated with signal 11, Segmentation Fault.
Reading symbols from /usr/dt/lib/libXm.so.3...done.
Reading symbols from /usr/local/lib/libpng.so.3...done.
Reading symbols from /usr/local/lib/libjpeg.so.62...done.
Reading symbols from /usr/local/lib/libz.so...done.
Reading symbols from /usr/openwin/lib/libXpm.so.4.11...done.
Reading symbols from /usr/dt/lib/libtt.so.2...done.
Reading symbols from /usr/openwin/lib/libXmu.so.4...done.
Reading symbols from /usr/openwin/lib/libXt.so.4...done.
Reading symbols from /usr/openwin/lib/libXext.so.0...done.
Reading symbols from /usr/openwin/lib/libX11.so.4...done.
Reading symbols from /usr/local/lib/libdb.so...done.
Reading symbols from /usr/local/lib/libncurses.so.5...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/libdl.so.1...done.
Reading symbols from /usr/lib/libc.so.1...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/lib/libmp.so.2...done.
Reading symbols from /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1...done.
#0 0xef00a5f0 in _kill ()
(gdb) bt
#0 0xef00a5f0 in _kill ()
#1 0x7b318 in fatal_error_signal (sig=11) at emacs.c:642
#2 <signal handler called>
#3 0xef6cd90c in RemoveMatchingEntries ()
#4 0xef68041c in _XmEnumerateHashTable ()
#5 0xef6cda48 in CleanupOnDisplayClose ()
#6 0xef39f9a4 in XtCallCallbackList ()
#7 0xef3a8208 in XtPhase2Destroy ()
#8 0xef3a8420 in _XtDoPhase2Destroy ()
#9 0xef3a8630 in XtDestroyWidget ()
#10 0x185990 in x_delete_device (d=0x467100) at device-x.c:879
#11 0x6b828 in delete_device_internal (d=0x467100, force=2344964,
called_from_delete_console=2164736, from_io_error=0) at device.c:826
#12 0x625d4 in delete_console_internal (con=0x43b980, force=2344964,
called_from_kill_emacs=4634356, from_io_error=0) at console.c:689
#13 0x7df80 in Fkill_emacs (arg=2344964) at emacs.c:2968
#14 0x81188 in Ffuncall (nargs=528768, args=0x4) at eval.c:3536
#15 0x56750 in execute_optimized_program (program=0x4d5ee1 "\207",
stack_depth=0, constants_data=0x3a2290) at bytecode.c:748
#16 0x562cc in funcall_compiled_function (fun=3844604, nargs=1,
args=0xefffe374) at bytecode.c:516
#17 0x810b4 in Ffuncall (nargs=1, args=0xefffe370) at eval.c:3572
#18 0x5a778 in Fcall_interactively (function=2436948, record_flag=1,
keys=2167808) at callint.c:941
#19 0x7fe00 in Fcommand_execute (cmd=2436948, record_flag=2344964,
keys=2344964) at eval.c:2974
#20 0xb32f8 in execute_command_event (command_builder=0x465500,
event=5483428)
at event-stream.c:3924
#21 0xaefa0 in Fdispatch_event (event=5483428) at event-stream.c:4258
#22 0x60d28 in Fcommand_loop_1 () at cmdloop.c:583
#23 0x7ee04 in condition_case_1 (handlers=2168832,
bfun=0x60fc8 <command_loop_1>, barg=2344964, hfun=0x60fec <cmd_error>,
harg=2344964) at eval.c:1652
#24 0x611e0 in command_loop_2 (dummy=2344964) at cmdloop.c:256
#25 0x7ecc8 in internal_catch (tag=2425028, func=0x61194 <command_loop_2>,
arg=2344964, threw=0x0) at eval.c:1318
#26 0x609b4 in initial_command_loop (load_me=1) at cmdloop.c:305
#27 0x7c3f0 in xemacs_21_4_12_sparc_sun_solaris2_6 (argc=1, argv=0x210c00,
envp=0xefffeb94, restart=2678500) at emacs.c:2460
#28 0x7cc08 in main (argc=1, argv=0xefffeb8c, envp=0xefffeb94) at
emacs.c:2892
(gdb)
Stephen J. Turnbull wrote:
>>>>>"Arvind" == Arvind Devarajan
<arvind.sankruthi(a)oracle.com> writes:
>>>>>
>>>>>
Arvind> Well, my crash never occurs when I start with a -vanilla,
The goal is an XEmacs that is impossible to crash from inside. It may
be triggered by your customizations but we still want to fix it!
FWIW, the stack trace makes no sense at all to me (those functions
just shouldn't be calling each other, and there's only one "real" Lisp
function, the other Ffunctions() are all redisplay "glue") suggesting
that the stack has been smashed, or that gdb is very very confused.
I note you're using Motif on Solaris 5.6; that Motif is known to have
bugs which can cause crashes (but the symptoms are quite different
from your report). Sun has made patches available, see our PROBLEMS
file for details if you're not sure your system is up to date.
Arvind> For your benefit, I am attaching my init.el here -
Arvind> everything in there was scooped from somewhere in the net.
setnu, at least, is now packaged; if you have the edit-utils package
installed, you can just get rid of that code. cscope I'm not sure
about; I've heard of it but it doesn't seem immediately available from
my XEmacs (I know I need a separate binary, but the Lisp bindings
should be visible and they're not).
Arvind> I'll build xemacs with the debugging turned on and then
Arvind> send you my results; please give me some time.
Please give a more precise description of what you're doing when you
crash, too. Did you click on a GUI element, or drag a scroll bar?
Were you typing? If so, what? What mode were you in? Does it seem
to be aassociated with certain files? etc etc
Finally, a convenient feature: M-x report-xemacs-bug will give you a
formatted bug report buffer, containing Installation, information
about your installed packages and loaded features, and the last few
strokes typed (not very useful with a crash, of course, but can be
very useful if you experience a non-fatal bug). If your environment
permits you to send mail from XEmacs, you can send it with C-c C-c,
otherwise you can save it to a file and attach the file.