Following up on this, if I run the process under GDB, I get a more
complete stack trace, which shows that this may be related to XIM (see
below). Interestingly, running the same binary (over an NFS mount)
from another Sun Sparc (though a different model) works fine -- no
crash.
-Brent
(gdb) run
Starting program: /usr/gnu/bin/xemacs
warning: Unable to find dynamic linker breakpoint function.
warning: GDB will be unable to debug shared library initializers
warning: and track explicitly loaded dynamic code.
warning: Lowest section in /usr/lib/libintl.so.1 is .hash at 0x74
Program received signal SIGSEGV, Segmentation fault.
0x0 in ?? ()
(gdb) where
#0 0x0 in ?? ()
#1 0xf1a84 in XIM_init_device (d=0xf1c00)
at /d8/gnu/SHARED/src/emacs/xemacs-21.5.13/src/device-impl.h:165
#2 0x3116a4 in x_init_device (d=0x5fad00, props=8)
at /d8/gnu/SHARED/src/emacs/xemacs-21.5.13/src/device-x.c:803
#3 0xa1888 in Fmake_device (type=-22806632, connection=-22178408,
props=-22800080)
at /d8/gnu/SHARED/src/emacs/xemacs-21.5.13/src/device.c:445
#4 0xca118 in Ffuncall (nargs=0, args=0xca108)
at /d8/gnu/SHARED/src/emacs/xemacs-21.5.13/src/eval.c:3842
#5 0x6f9d4 in execute_optimized_program (program=0xffbeddfc
"˛°À¯˛£ˇ\230˛§\0310ˇæflˇæ›¸",
stack_depth=457108, constants_data=0xfeb6fcd0)
at /d8/gnu/SHARED/src/emacs/xemacs-21.5.13/src/bytecode.c:609
#6 0xd2130 in funcall_compiled_function (fun=-21292676, nargs=1,
args=0x6098a0)
at /d8/gnu/SHARED/src/emacs/xemacs-21.5.13/src/opaque.h:36
#7 0xc9f8c in Ffuncall (nargs=1, args=0xffbedfe4)
at /d8/gnu/SHARED/src/emacs/xemacs-21.5.13/src/eval.c:3881
#8 0x6f9d4 in execute_optimized_program (program=0xffbedfe4
"˛†•\b˛§\0310˛≥o\020ˇæ·‡ˇæfl‰",
stack_depth=457108, constants_data=0xfeb6fcec)
at /d8/gnu/SHARED/src/emacs/xemacs-21.5.13/src/bytecode.c:609
#9 0xd2130 in funcall_compiled_function (fun=-21292632, nargs=0,
args=0x60bb00)
at /d8/gnu/SHARED/src/emacs/xemacs-21.5.13/src/opaque.h:36
#10 0xc9f8c in Ffuncall (nargs=0, args=0xffbee1cc)
at /d8/gnu/SHARED/src/emacs/xemacs-21.5.13/src/eval.c:3881
#11 0x6f9d4 in execute_optimized_program (program=0xffbee1cc "˛†•8",
stack_depth=457108,
constants_data=0xfeb86388) at
/d8/gnu/SHARED/src/emacs/xemacs-21.5.13/src/bytecode.c:609
#12 0xd2130 in funcall_compiled_function (fun=-21244100, nargs=0,
args=0x5fa000)
at /d8/gnu/SHARED/src/emacs/xemacs-21.5.13/src/opaque.h:36
#13 0xc93a8 in Feval (form=-21808640) at
/d8/gnu/SHARED/src/emacs/xemacs-21.5.13/src/eval.c:3660
#14 0xc6864 in condition_case_1 (handlers=4837376, bfun=0xc8808
<Feval>, barg=-21808640,
hfun=0xd1d28 <run_condition_case_handlers>, harg=-22815704)
at /d8/gnu/SHARED/src/emacs/xemacs-21.5.13/src/eval.c:1917
#15 0x70d30 in execute_rare_opcode (stack_ptr=0xffbee5cc,
program_ptr=0x4e3470 "\210–\r!\025\t´\r›fifl\t‡ ·
$!\026*‚„!\210\b´\005‚¿!\210’\020‰
\210\016%´\005‚Â!\210’\026%\013´\bÊ\013@\013A\"\210)\016+≠\003Á \207",
opcode=Bcondition_case)
at /d8/gnu/SHARED/src/emacs/xemacs-21.5.13/src/bytecode.c:1134
#16 0x6f75c in execute_optimized_program (
program=0xffbee5d4 "˛≥9Ù˛§\0310˛§\0310˛§\0310˛§\0310ˇæÁ ˇæÂÃ",
stack_depth=456496,
constants_data=0xfeb86b04) at
/d8/gnu/SHARED/src/emacs/xemacs-21.5.13/src/bytecode.c:515
#17 0xd2130 in funcall_compiled_function (fun=-21242648, nargs=0,
args=0x4e3400)
at /d8/gnu/SHARED/src/emacs/xemacs-21.5.13/src/opaque.h:36
#18 0xc93a8 in Feval (form=-22031204) at
/d8/gnu/SHARED/src/emacs/xemacs-21.5.13/src/eval.c:3660
#19 0xc6864 in condition_case_1 (handlers=4837376, bfun=0xc8808
<Feval>, barg=-22031204,
hfun=0x8a850 <cmd_error>, harg=-22800080)
at /d8/gnu/SHARED/src/emacs/xemacs-21.5.13/src/eval.c:1917
#20 0x8a9b0 in top_level_1 (dummy=4837376)
at /d8/gnu/SHARED/src/emacs/xemacs-21.5.13/src/cmdloop.c:214
#21 0xc6704 in internal_catch (tag=-23041304, func=0x8a970
<top_level_1>, arg=-22800080, threw=0x0,
thrown_tag=0x0) at
/d8/gnu/SHARED/src/emacs/xemacs-21.5.13/src/eval.c:1527
#22 0x8a4bc in initial_command_loop (load_me=567664)
at /d8/gnu/SHARED/src/emacs/xemacs-21.5.13/src/cmdloop.c:280
#23 0xc2530 in xemacs_21_5_b13_sparc_sun_solaris2_8 (argc=1,
argv=0xffbeec7c, envp=0x1, restart=8)
On Saturday, May 31, 2003, at 02:44 PM, Brent Townshend wrote:
After bulding, all 'make check' ran OK, starting xemacs with
'-nw'
works fine, but starting xemacs under X windows gives:
Fatal error (11).
Your files have been auto-saved.
Use `M-x recover-session' to recover them.
Your version of XEmacs was distributed with a PROBLEMS file that may
describe
your crash, and with luck a workaround. Please check it first, but do
report
the crash anyway.
Please report this bug by invoking M-x report-emacs-bug, or by
selecting
`Send Bug Report' from the Help menu. If that won't work, send
ordinary
email to `crashes(a)xemacs.org'. *MAKE SURE* to include this entire
output
from this crash, especially including the Lisp backtrace, as well as
the
XEmacs configuration from M-x describe-installation (or equivalently,
the
file `Installation' in the top of the build tree).
*Please* try *hard* to obtain a C stack backtrace; without it, we are
unlikely
to be able to analyze the problem. Locate the core file produced as a
result
of this crash (often called `core' or `core.<process-id>', and located
in
the directory in which you started XEmacs or your home directory), and
type
gdb /usr/gnu/bin/xemacs core
then type `where' at the debugger prompt. No GDB on your system? You
may
have DBX, or XDB, or SDB. (Ask your system administrator if you need
help.)
If no core file was produced, enable them (often with `ulimit -c
unlimited')
in case of future recurrance of the crash.
Lisp backtrace follows:
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
make-device(x nil)
# bind (display)
make-x-device(nil)
init-x-win()
# bind (debugger debug-on-error command-line-args-left)
command-line()
# (condition-case ... . ((t (byte-code " §" [error-data data
nil] 1))))
# bind (error-data)
normal-top-level()
# (condition-case ... . error)
# (catch top-level ...)
From gdb:
picasso$ gdb /usr/gnu/bin/xemacs core
GDB is free software and you are welcome to 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.
GDB 4.16 (sparc-sun-solaris2.5.1), Copyright 1996 Free Software
Foundation, Inc...
warning: core file may not match specified executable file.
Core was generated by `xemacs'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libz.so.1...done.
Reading symbols from /usr/openwin/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/openwin/lib/libSM.so.6...done.
Reading symbols from /usr/openwin/lib/libICE.so.6...done.
Reading symbols from /usr/lib/libcurses.so.1...done.
Reading symbols from /usr/lib/libintl.so.1...
warning: Lowest section in /usr/lib/libintl.so.1 is .hash at 0x74
done.
Reading symbols from /usr/lib/libm.so.1...done.
Reading symbols from /usr/lib/libldap.so.4...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/libgen.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/libdga.so.1...done.
Reading symbols from /usr/lib/libresolv.so.2...done.
Reading symbols from /usr/lib/libmp.so.2...done.
Reading symbols from
/usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1...done.
#0 0xfee1c840 in _kill ()
(gdb) where
#0 0xfee1c840 in _kill ()
#1 0xc5490 in fatal_error_signal (sig=11)
at /d8/gnu/SHARED/src/emacs/xemacs-21.5.13/src/emacs.c:3543
#2 <signal handler called>
(gdb)
--- INSTALLATION ---
uname -a: SunOS picasso 5.8 Generic_108528-14 sun4u sparc SUNW,Ultra-1
../xemacs-21.5.13/configure '--prefix=/usr/gnu' '--pdump'
'--with-mule'
XEmacs 21.5-b13 "cauliflower" configured for `sparc-sun-solaris2.8'.
Compilation / Installation:
Source code location:
/d8/gnu/SHARED/src/emacs/xemacs-21.5.13
Installation prefix: /usr/gnu
Runtime library search path:
/usr/ccs/lib:/usr/openwin/lib:/usr/gnu/lib/gcc-lib/sparc-sun
-solaris2.8/3.3/../../..
Operating system description file: `s/sol2.h'
Machine description file: `m/sparc.h'
Compiler: gcc -Wall -Wno-switch -Winline
-Wmissing-prototypes -Wsign-c
ompare -Wundef -Wstrict-prototypes -Wpacked -Wshadow
-Wmissing-declarations -Wpointer-arith -g -O
3
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/openwin/include
- X Windows libraries location: /usr/openwin/lib
- Handling WM_COMMAND properly.
Using Lucid menubars.
Using Lucid scrollbars.
TTY:
Images:
Compiling in support for GIF images (builtin).
WARNING: -----------------------------------------------------------
WARNING: Compiling without XPM image support.
WARNING: You should strongly consider installing XPM.
WARNING: Otherwise toolbars and other graphics will look suboptimal.
WARNING: (a copy may be found in
ftp://ftp.xemacs.org/pub/xemacs/aux)
WARNING: -----------------------------------------------------------
WARNING: -----------------------------------------------------------
WARNING: Compiling without PNG image support.
WARNING: You should strongly consider installing the PNG libraries.
WARNING: Otherwise certain images and glyphs may not display.
WARNING: (a copy may be found in
ftp://ftp.xemacs.org/pub/xemacs/aux)
WARNING: -----------------------------------------------------------
Sound:
Compiling in support for sound (native).
Databases:
Compiling in support for DBM.
Compiling in support for LDAP.
Internationalization:
Compiling in support for Mule (multi-lingual Emacs).
Compiling in support for XIM (X11R5+ I18N input method).
- Using raw Xlib to provide XIM support.
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.
Using the new portable dumper.
Compiling in support for extra debugging code.
WARNING: ---------------------------------------------------------
WARNING: Compiling in support for runtime error checking.
WARNING: XEmacs will run noticeably more slowly as a result.
WARNING: Error checking is on by default for XEmacs beta releases.
WARNING: ---------------------------------------------------------