From xemacs-m  Tue Sep 23 10:43:39 1997
Received: from tanko.sk.tsukuba.ac.jp (root@tanko.sk.tsukuba.ac.jp [130.158.99.155])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id KAA22030
	for <xemacs-beta@xemacs.org>; Tue, 23 Sep 1997 10:43:33 -0500 (CDT)
Received: by tanko.sk.tsukuba.ac.jp
	id m0xDfOS-00002WC
	(Debian Smail-3.2 1996-Jul-4 #2); Wed, 24 Sep 1997 09:33:28 +0900 (JST)
Message-Id: <m0xDfOS-00002WC@tanko.sk.tsukuba.ac.jp>
Date: Wed, 24 Sep 1997 09:33:28 +0900 (JST)
From: "Stephen J. Turnbull" <turnbull@sk.tsukuba.ac.jp>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: XEmacs beta <xemacs-beta@xemacs.org>
Subject: Crash: xemacs -nw -q -f kill-emacs => IOT trap/Abort (core dumped)
In-Reply-To: <m2u3fcvf2g.fsf_-_@altair.xemacs.org>
References: <m27mcame88.fsf@altair.xemacs.org>
	<kig7mc91r56.fsf@jagor.srce.hr>
	<87wwk9yz85.fsf_-_@bittersweet.inetarena.com>
	<kigzpp5dvzj.fsf@jagor.srce.hr>
	<QQdidy13097.199709222339@crystal.WonderWorks.COM>
	<QQdiei15095.199709230205@crystal.WonderWorks.COM>
	<kigzpp4wzbw.fsf@jagor.srce.hr>
	<QQdieo16259.199709230335@crystal.WonderWorks.COM>
	<m2u3fcvf2g.fsf_-_@altair.xemacs.org>
Reply-To: turnbull@sk.tsukuba.ac.jp
X-Mailer: VM 6.34 under 20.3 "Minsk" XEmacs  Lucid (beta22)

I sent a comment on the "startup benchmark" thread, then thought
better of it---should run the benchmark, even if I don't have FSFmacs.
Oops....  Identical core dump with and without `time' (as expected).
Also tried with `--no-site-files'; everything identical to that
reported below except for times and the second stack frame:
#2  0xbfffe694 in ?? ()

>>>>> "sb" == SL Baur <steve@xemacs.org> writes:

    sb> Kyle Jones <kyle_jones@wonderworks.com> writes:

    >> Next on my hit list is startup time.  Try running

    >> time xemacs -nw -q -f kill-emacs

    sb> $ time xemacs -nw -q -f kill-emacs
    sb> xemacs -nw -q -f kill-emacs  0.41s user 0.14s system 95% cpu 0.578 total

bash-2.00$ time /usr/local/src/xemacs-20.3-b22/src/xemacs -nw -q -f kill-emacs >crash-report 2>&1

and oops:

IOT trap/Abort (core dumped)

real    0m3.154s
user    0m0.210s
sys     0m0.350s

(this was after several tries; from a standing start the times were
substantially higher, over 10 seconds for user---serious disk
thrashing).  This is beyond me, so I'll just report tracebacks and
configuration.  I hope I haven't missed anything.

Lisp traceback:

Fatal error: assertion failed, file insdel.c, line 369, ptr == end

Fatal error (6).
Your files have been auto-saved.
Use `M-x recover-session' to recover them.

[explanatory stuff axed]

  # (condition-case ... . error)
  # (unwind-protect ...)
  make-device(tty nil (terminal-type nil controlling-process nil))
  # bind (controlling-process terminal-type tty)
  make-tty-device(nil nil)
  init-tty-win()
  # bind (debugger debug-on-error command-line-args-left)
  command-line()
  # (unwind-protect ...)
  normal-top-level()
  # (condition-case ... . error)
  # (catch top-level ...)

C backtrace (gdb commentary elided...)

bash-2.00$ gdb /usr/local/src/xemacs-20.3-b22/src/xemacs core                 
Core was generated by `/usr/local/src/xemacs-20.3-b22/src/xemacs -nw -q -f kill-emacs'.
Program terminated with signal 6, IOT trap/Abort.
Reading symbols from /usr/X11R6/lib/libXaw.so.6...done.
Reading symbols from /usr/lib/libcompface.so.1...done.
Reading symbols from /usr/X11R6/lib/libXpm.so.4...done.
Reading symbols from /usr/X11R6/lib/libXmu.so.6...done.
Reading symbols from /usr/X11R6/lib/libXt.so.6...done.
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Reading symbols from /usr/X11R6/lib/libICE.so.6...done.
Reading symbols from /usr/lib/libdb.so.1...done.
Reading symbols from /usr/lib/libgdbm.so.1...done.
Reading symbols from /lib/libncurses.so.3.0...done.
Reading symbols from /lib/libm.so.5...done.
Reading symbols from /lib/libc.so.5...done.
Reading symbols from /lib/ld-linux.so.1...done.
#0  0x40237159 in __kill ()
(gdb) where
#0  0x40237159 in __kill ()
#1  0x8083797 in fatal_error_signal (sig=6) at emacs.c:217
#2  0xbfffe6ac in ?? ()
#3  0x4020641d in gsignal ()
#4  0x8103ac5 in bytecount_to_charcount (ptr=0x845c103 "\eO\200", len=3)
    at insdel.c:369
#5  0x8051d5b in make_string (contents=0x845c103 "\eO\200", length=3)
    at alloc.c:2124
#6  0x8051e49 in build_string (str=0x845c103 "\eO\200") at alloc.c:2149
#7  0x80bf75d in term_get_fkeys_1 (function_key_map=406139136)
    at redisplay-tty.c:1427
#8  0x808716e in condition_case_1 (handlers=1479630932, 
    bfun=0x80bf710 <term_get_fkeys_1>, barg=406139136, 
    hfun=0x80bf704 <term_get_fkeys_error>, harg=1479630852) at eval.c:1682
#9  0x80bf6fe in term_get_fkeys (keymap=406139136, address=0xbfffeaa4)
    at redisplay-tty.c:1405
#10 0x80bf634 in init_tty_for_redisplay (d=0x83f0b00, 
    terminal_type=0x845abe4 "xterm") at redisplay-tty.c:1273
#11 0x80b99d8 in tty_init_device (d=0x83f0b00, props=675581020)
    at device-tty.c:94
#12 0x807813a in Fmake_device (type=1479725120, connection=1479630852, 
    props=675581020) at device.c:586
#13 0x80898a5 in primitive_funcall (fn=0x8077f10 <Fmake_device>,
nargs=3, 
    args=0xbffff3f0) at eval.c:3441
#14 0x8089a40 in funcall_subr (subr=0x820dd28, args=0xbffff3f0) at eval.c:3464
#15 0x8089194 in funcall_recording_as (recorded_as=1479710924, nargs=4, 
    args=0xbffff3ec) at eval.c:3161
#16 0x808924b in Ffuncall (nargs=4, args=0xbffff3ec) at eval.c:3201
#17 0x8060a46 in Fbyte_code (bytestr=941875256, vector=1210310740, maxdepth=7)
    at bytecode.c:417
#18 0x8089db8 in funcall_lambda (fun=405004392, nargs=2, arg_vector=0xbffff568)
    at eval.c:3568
#19 0x808920a in funcall_recording_as (recorded_as=1480228220, nargs=3, 
    args=0xbffff564) at eval.c:3177
#20 0x808924b in Ffuncall (nargs=3, args=0xbffff564) at eval.c:3201
#21 0x8060a46 in Fbyte_code (bytestr=942502808, vector=1210938312, maxdepth=3)
    at bytecode.c:417
#22 0x8089db8 in funcall_lambda (fun=405631976, nargs=0, arg_vector=0xbffff828)
    at eval.c:3568
#23 0x808920a in funcall_recording_as (recorded_as=1480934220, nargs=1, 
    args=0xbffff824) at eval.c:3177
#24 0x808924b in Ffuncall (nargs=1, args=0xbffff824) at eval.c:3201
#25 0x8060a46 in Fbyte_code (bytestr=942053816, vector=1210489452, maxdepth=4)
    at bytecode.c:417
#26 0x8089db8 in funcall_lambda (fun=405183288, nargs=0, arg_vector=0xbffffa40)
    at eval.c:3568
#27 0x808920a in funcall_recording_as (recorded_as=1480208508, nargs=1, 
    args=0xbffffa3c) at eval.c:3177
#28 0x808924b in Ffuncall (nargs=1, args=0xbffffa3c) at eval.c:3201
#29 0x8060a46 in Fbyte_code (bytestr=942052244, vector=1210487808, maxdepth=4)
    at bytecode.c:417
#30 0x8089db8 in funcall_lambda (fun=405181772, nargs=0, arg_vector=0xbffffae4)
    at eval.c:3568
#31 0x8089aff in apply_lambda (fun=405181772, numargs=0, 
    unevalled_args=1479630852) at eval.c:3496
#32 0x8088f4d in Feval (form=675030380) at eval.c:3055
#33 0x808716e in condition_case_1 (handlers=1479630932, 
    bfun=0x80887f0 <Feval>, barg=675030380, hfun=0x806ba88 <cmd_error>, 
    harg=1479630852) at eval.c:1682
#34 0x806bb01 in top_level_1 (dummy=1479630852) at cmdloop.c:192
#35 0x8086dc5 in internal_catch (tag=1479708028, func=0x806bad8 <top_level_1>, 
    arg=1479630852, threw=0x0) at eval.c:1359
#36 0x806bbc9 in initial_command_loop (load_me=1479630852) at cmdloop.c:271
#37 0x80844a9 in xemacs_20_3_b22_i586_pc_linux (argc=5, argv=0xbffffd70, 
    envp=0xbffffd88) at emacs.c:1471
#38 0x8084b6a in main (argc=5, argv=0xbffffd70, envp=0xbffffd88)
    at emacs.c:1822
#39 0x804e9ee in _start ()

Configuration:

uname -a: Linux tanko 2.0.29 #3 Fri Jul 25 02:43:07 JST 1997 i586 unknown

./configure  '--with-mule' '--with-xim=xlib' '--with-sound=both'


Configured for `i586-pc-linux'.

  Where should the build process find the source code?    /usr/local/src/xemacs-20.3-b22
  What installation prefix should install use?		  /usr/local
  Where should XEmacs look for packages?		  ~/.xemacs:/usr/local/lib/xemacs/packages
  What operating system and machine description files should XEmacs use?
        `s/linux.h' and `m/intel386.h'
  What compiler should XEmacs be built with?              gcc -g -O2 -Wall -Wno-switch -fno-strength-reduce -malign-loops=2 -malign-jumps=2 -malign-functions=2
  Should XEmacs use the GNU version of malloc?            yes
  Should XEmacs use the relocating allocator for buffers? yes
  What window system should XEmacs use?                   x11
  Where do we find X Windows header files?                /usr/X11R6/include
  Where do we find X Windows libraries?                   /usr/X11R6/lib
  Compiling in support for XAUTH.
  Compiling in support for GIF image conversion.
  Compiling in support for XPM images.
  Compiling in support for X-Face message headers.
  Compiling in support for JPEG image conversion.
  Compiling in support for PNG image conversion.
  Compiling in both network and native sound support.
  Compiling in support for Berkeley DB.
  Compiling in support for GNU DBM.
  Compiling in support for ncurses.
  Compiling in Mule (multi-lingual) support.
  Compiling in XIM (X11R5+ I18N input method) support.
    Using raw Xlib to provide XIM support.
  Compiling in support for proper session-management.
  Using Lucid menubars.
  Using Lucid scrollbars.
  Using Athena dialog boxes.
  movemail will use "dot-locking" for locking mail spool files.
  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: ---------------------------------------------------------


