Hello,
I had xemacs crash... with a simple problem. I have a windows machine
that I use to remotely work on a linux system. I use putty (a terminal
program) to connect to that machine using ssh, which also tunnels the X
session for xemacs. As such, I have a DISPLAY defined in the environment
there. However, at the time I started xemacs, I had no xserver running
locally on the windows machine. I believe that to be the problem.
Even though xemacs could never start in this situation, I would not
expect it to coredump or crash in this manner.
Below are the output of starting xemacs (lisp backtrace!), the requested
backtrace and the output of describe-installation.
Hopefully this helps you to improve a very usable prooduct.
Jan Evert
Fatal error: assertion failed, file device-x.c, line 1119, d != NULL
Fatal error (6).
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 /usr/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:
# (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()
# (unwind-protect ...)
normal-top-level()
# (condition-case ... . error)
# (catch top-level ...)
(gdb) bt
#0 0x42029241 in kill () from /lib/i686/libc.so.6
#1 0x080ace17 in fatal_error_signal ()
#2 <signal handler called>
#3 0x42029241 in kill () from /lib/i686/libc.so.6
#4 0x4202902a in raise () from /lib/i686/libc.so.6
#5 0x4202a7d2 in abort () from /lib/i686/libc.so.6
#6 0x080aed45 in assert_failed ()
#7 0x08186f52 in x_IO_error_handler ()
#8 0x401c3bce in _XIOError () from /usr/X11R6/lib/libX11.so.6
#9 0x401c1494 in _XRead () from /usr/X11R6/lib/libX11.so.6
#10 0x401b3843 in XOpenDisplay () from /usr/X11R6/lib/libX11.so.6
#11 0x0818637d in x_init_device ()
#12 0x080a11cd in Fmake_device ()
#13 0x080b3cf1 in Ffuncall ()
#14 0x0808f4cb in execute_optimized_program ()
#15 0x0808f167 in funcall_compiled_function ()
#16 0x080b3e1e in Ffuncall ()
#17 0x0808f4cb in execute_optimized_program ()
#18 0x0808f167 in funcall_compiled_function ()
#19 0x080b3e1e in Ffuncall ()
#20 0x0808f4cb in execute_optimized_program ()
#21 0x0808f167 in funcall_compiled_function ()
#22 0x080b3e1e in Ffuncall ()
#23 0x0808f4cb in execute_optimized_program ()
#24 0x0808f167 in funcall_compiled_function ()
#25 0x080b3987 in Feval ()
#26 0x080b124e in condition_case_1 ()
#27 0x080995a0 in top_level_1 ()
#28 0x080b0eea in internal_catch ()
#29 0x080996a5 in initial_command_loop ()
#30 0x080add68 in xemacs_21_4_6_i386_redhat_linux ()
#31 0x080ae533 in main ()
#32 0x42017499 in __libc_start_main () from /lib/i686/libc.so.6
uname -a: Linux
daffy.perf.redhat.com 2.4.17-0.13smp #1 SMP Fri Feb 1
10:30:48 EST 2002 i686 unknown
./configure 'i386-redhat-linux' '--prefix=/usr'
'--exec-prefix=/usr'
'--bindir=/usr/bin' '--datadir=/usr/share' '--libdir=/usr/lib'
'--mandir=/usr/share/man/man1' '--infodir=/usr/share/info'
'--with-gpm=no' '--with-sound=native' '--with-pop'
'--mail-locking=lockf' '--with-clash-detection' '--debug=no'
'--error-checking=none' '--with-mule=yes' '--with-database=no'
'--with-ldap=yes' '--with-hesiod=no' '--with-canna=yes'
'--with-wnn=yes'
'--with-menubars=lucid' '--with-scrollbars=lucid'
'--with-dialogs=lucid'
'--with-xim=xlib' '--with-msw=no' '--with-xfs=yes'
XEmacs 21.4.6 "Common Lisp" configured for `i386-redhat-linux'.
Compilation / Installation:
Source code location:
/usr/src/build/74640-i386/BUILD/xemacs-21.4.6
Installation prefix: /usr
Operating system description file: `s/linux.h'
Machine description file: `m/intel386.h'
Compiler: gcc -O2 -march=i386 -mcpu=i686
Relocating allocator for buffers: no
GNU version of malloc: yes
- Using Doug Lea's new malloc from the GNU C Library.
Linking with `-z nocombreloc'.
- Consider configuring with --pdump.
Window System:
Compiling in support for the X window system:
- X Windows headers location: /usr/X11R6/include
- X Windows libraries location: /usr/X11R6/lib
- Handling WM_COMMAND properly.
Using Lucid menubars.
Using Lucid scrollbars.
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.
Compiling in support for TIFF images.
Sound:
Compiling in support for sound (native).
Databases:
Compiling in support for LDAP.
Compiling in support for PostgreSQL.
- Using PostgreSQL header file: libpq-fe.h
- Using PostgreSQL V7 bindings.
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.
- Using XFontSet to provide bilingual menubar.
Compiling in support for Canna on Mule.
Compiling in support for the WNN input method on Mule.
Mail:
Compiling in support for POP mail retrieval.
Compiling in support for "lockf" mail spool file locking method.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.