From xemacs-m  Thu Dec 12 11:59:49 1996
Received: from steadfast.teradyne.com (steadfast.teradyne.com [131.101.1.200]) by xemacs.cs.uiuc.edu (8.8.3/8.8.3) with ESMTP id LAA04277; Thu, 12 Dec 1996 11:59:48 -0600 (CST)
Received: from engine.ecf.teradyne.com (engine.ecf.teradyne.com [131.101.192.6]) by steadfast.teradyne.com (8.7.1/8.7.1) with ESMTP id NAA13368; Thu, 12 Dec 1996 13:02:27 -0500 (EST)
Received: from midnight.eng.ecf.teradyne.com (midnight.ecf.teradyne.com [131.101.192.49]) by engine.ecf.teradyne.com (8.7.1/8.7.1) with SMTP id SAA19563; Thu, 12 Dec 1996 18:59:07 +0100 (MET)
Received: by midnight.eng.ecf.teradyne.com (SMI-8.6/SMI-SVR4)
	id SAA00796; Thu, 12 Dec 1996 18:59:08 +0100
Date: Thu, 12 Dec 1996 18:59:08 +0100
Message-Id: <199612121759.SAA00796@midnight.eng.ecf.teradyne.com>
From: Adrian Aichner <aichner@ecf.teradyne.com>
To: XEmacs crash reports <crashes@xemacs.org>
CC: XEmacs Beta Mailing List <xemacs-beta@xemacs.org>
Subject: xemacs-20.0-30 crash after delete-frame
X-Face: 4[iHdXiTu\V3u[~\I)<f9HC);%~nG8`oUqv#uzvs6=\V{AjN6Snc/qi;YLwRmEbt8Y*=j5n
 (urqY@chPh@J'D"QlqD!C8>*}#kYF[-tYl3VZga/HSOP|K,{LRtu@f0y/=O&Cu}\:~d|P$JON?pn?j
 ,&CnPb1z#/TL9bkAJwyol&a:SvYj-VYbM=Dtxhk9=w|R6U3_;SH&B<Mfy6Q%#
Mime-Version: 1.0 (generated by tm-edit 7.94)
Content-Type: text/plain; charset=US-ASCII


I run xemacs-20.0.b30 compiled with configuration:

Configured for `sparc-sun-solaris2.5'.

  Where should the build process find the source code?    /xemacs-20.0-b30
  What installation prefix should install use?		  /usr/local
  What operating system and machine description files should XEmacs use?
        `s/sol2-5.h' and `m/sparc.h'
  What compiler should XEmacs be built with?              gcc -g -O3
  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/openwin/include
  Where do we find X Windows libraries?                   /usr/openwin/lib
  Additional header files:                                /usr/local/include
  Additional libraries:                                   /usr/local/lib
  Compiling in support for XAUTH.
  Compiling in support for XPM.
  Compiling in support for X-Face headers.
  Compiling in support for GIF image conversion.
  Compiling in support for JPEG image conversion.
  Compiling in support for PNG image conversion.
  Compiling in native sound support.
  Compiling in support for DBM.
  Compiling in support for ToolTalk.
  Compiling in Mule (multi-lingual) support.
  Compiling in XIM (X11R5+ I18N input method) support.
    Using Motif to provide XIM support.
  Compiling in support for CDE.
  Compiling in support for SparcWorks.
  Using the Lucid menubar.
  Using the Motif scrollbar.
  Using the Motif dialog boxes.
  Compiling in extra code for debugging.
  Compiling in code for checking XEmacs memory usage.

Here is a sequence which leads to a crash of xemacs under CDE. The
same bug existed in XEmacs-19.14 as well!

1. xemacs &
2. C-x 5 b *scratch*
3. C-x 5 o
4. C-x 5 0

After that the shell I started xemacs from starts printing the
following error over and over again.

xemacs: X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  3 (X_GetWindowAttributes)
  Resource id in failed request:  0x64207265
  Serial number of failed request:  4188
  Current serial number in output stream:  4188

5. C-x C-b

And here we go ...

xemacs: X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  3 (X_GetWindowAttributes)
  Resource id in failed request:  0x4
  Serial number of failed request:  4194
  Current serial number in output stream:  4194

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

Please report this bug to the address `crashes@xemacs.org'.
*MAKE SURE* to include as much configuration information as
possible; at the very least what OS and hardware you are running
on, and hopefully also what compiler and compiler options the
binary was compiled with, what options XEmacs was compiled with,
whether you are using a prebuilt binary from ftp.xemacs.org or
compiled XEmacs yourself for your system, etc.

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 XEmacs, or maybe in your home
directory), and type

  gdb /xemacs-20.0-b30/src/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:

  # (condition-case ... . error)
  # (catch top-level ...)

C backtrace follows:
(A real debugger may provide better information)

769:    xemacs
 ef178604 waitid   (0, 303, efffdf98, 3)
 ef19a5c8 waitpid  (303, efffe080, 3, ef1d1018, 48, 0) + 58
 ef1b0fb0 system   (efffe1f0, 24e380, 24e318, 301, 103c001c, 951b8) + 1d8
 00090940 fatal_error_signal (24e318, 0, efffe338, f025cd40, 0, 10000) + d4
 ef177d44 sigacthandler (b, 0, efffe338, 204a8f9c, fffffff, 7fffffff) + 28
 00391000 ???????? (735500, 4c00096, ffffffff, 0, 0, 581b31)
 001b34a8 x_event_to_emacs_event (efffe8b0, 581abc, 10581abc, ef38f128, 0, 4e6800) + 9d8
 001b5d40 emacs_Xt_event_handler (58f400, 0, efffe8b0, efffe727, 0, efffe714) + b0
 ef3d5b80 DispatchEvent (efffe8b0, 58f400, 10000, 0, 0, ffffffff) + 39c
 ef3d6228 DecideToDispatch (efffe8b0, 50ec04, 10000, 0, 58f400, 0) + 21c
 ef3d640c XtDispatchEvent (efffe8b0, 0, 3e0b20, 0, 1, 485000) + 48
 ef3ded18 XtAppProcessEvent (485000, 0, 4851cc, 48500c, 4851c8, 1) + 2e8
 001b5ac4 emacs_Xt_next_event (6a3960, 1b5870, fffffff, 397c00, 7b3c80, 0) + 254
 000a7740 event_stream_next_event (6a3960, 2a12a0, 106a3960, 29ef24, 1, 0) + 14c
 000ab85c next_event_internal (6a3960, 1, 391000, 103c0004, fffffff, efffeaf0) + 1fc
 000ac0a4 Fnext_event (106a3960, 103c0004, 103c0004, 1058fe00, 103c0004, 0) + 6f4
 0006f994 Fcommand_loop_1 (0, 103c0004, 104d9280, 952f8, fffffff, f5f13650) + 384
 0006f5fc command_loop_1 (103c0004, efffeca0, 2068b60c, 0, 0, 6f560) + 9c
 00095364 condition_case_1 (384c00, 6f560, 103c0004, 6fb20, 103c0004, 0) + fc
 0006fc1c command_loop_2 (103c0004, 0, 0, 392400, 6fbf4, efffeb78) + 28
 00094f38 internal_catch (103d2fe4, 6fbf4, 103c0004, 0, 0, 0) + 94
 0006ec64 initial_command_loop (7fffffff, 3b9c00, 24e4d0, 38de74, 1, 25fc00) + 480
 00091f64 main_1   (1, effff05c, effff064, f025cd40, 0, 0) + 12dc
 000926bc main     (1, effff05c, effff064, 38a920, 1, 0) + a8
 000457dc _start   (0, 0, 0, 0, 0, 0) + 5c

[1]    Segmentation Fault   xemacs (core dumped)

     37.0s              user time
     4.0s               system time
     2:17min            elapsed time
     29%                (user+system)/elapsed
     0KB                shared mem
     0KB                unshared data
     0KB                unshared stack
     0KB                real mem
     0blocks            input operations
     0blocks            output operations
     0                  page faults
     0                  swaps

aichner@midnight(82) 

============================================================================

------------------------
SparcWorks dbx Traceback
------------------------

Reading symbolic information for xemacs
core file header read successfully
Reading symbolic information for rtld /usr/lib/ld.so.1
Reading symbolic information for libDtSvc.so.1
Reading symbolic information for libtt.so.2
Reading symbolic information for libce.so.0
Reading symbolic information for libXm.so.3
Reading symbolic information for libz.so
Reading symbolic information for libXmu.so.4
Reading symbolic information for libXt.so.4
Reading symbolic information for libXext.so.0
Reading symbolic information for libX11.so.4
Reading symbolic information for libsocket.so.1
Reading symbolic information for libnsl.so.1
Reading symbolic information for libkvm.so.1
Reading symbolic information for libelf.so.1
Reading symbolic information for libdl.so.1
Reading symbolic information for libkstat.so.1
Reading symbolic information for libm.so.1
Reading symbolic information for libc.so.1
Reading symbolic information for libintl.so.1
Reading symbolic information for libw.so.1
Reading symbolic information for libmp.so.1
program terminated by signal SEGV (Segmentation Fault)
=>[1] kill(0x0, 0xb, 0x303, 0x301, 0x0, 0x0), at 0xef1b3e30
  [2] fatal_error_signal(0x24e318, 0x0, 0xefffe338, 0xf025cd40, 0x0, 0x10000), at 0x90954
  ---- called from signal handler with signal 11 (SIGSEGV) ------
  [3] x_any_window_to_frame(), at 0x1b72fc
  [4] x_event_to_emacs_event(0xefffe8b0, 0x581abc, 0x10581abc, 0xef38f128, 0x0, 0x4e6800), at 0x1b34a8
  [5] emacs_Xt_event_handler(0x58f400, 0x0, 0xefffe8b0, 0xefffe727, 0x0, 0xefffe714), at 0x1b5d40
  [6] DispatchEvent(0xefffe8b0, 0x58f400, 0x10000, 0x0, 0x0, 0xffffffff), at 0xef3d5b80
  [7] DecideToDispatch(0xefffe8b0, 0x50ec04, 0x10000, 0x0, 0x58f400, 0x0), at 0xef3d6228
  [8] XtDispatchEvent(0xefffe8b0, 0x0, 0x3e0b20, 0x0, 0x1, 0x485000), at 0xef3d640c
  [9] XtAppProcessEvent(0x485000, 0x0, 0x4851cc, 0x48500c, 0x4851c8, 0x1), at 0xef3ded18
  [10] emacs_Xt_next_event(0x6a3960, 0x1b5870, 0xfffffff, 0x397c00, 0x7b3c80, 0x0), at 0x1b5ac4
  [11] event_stream_next_event(0x6a3960, 0x2a12a0, 0x106a3960, 0x29ef24, 0x1, 0x0), at 0xa7740
  [12] next_event_internal(0x6a3960, 0x1, 0x391000, 0x103c0004, 0xfffffff, 0xefffeaf0), at 0xab85c
  [13] Fnext_event(0x106a3960, 0x103c0004, 0x103c0004, 0x1058fe00, 0x103c0004, 0x0), at 0xac0a4
  [14] Fcommand_loop_1(0x0, 0x103c0004, 0x104d9280, 0x952f8, 0xfffffff, 0xf5f13650), at 0x6f994
  [15] command_loop_1(0x103c0004, 0xefffeca0, 0x2068b60c, 0x0, 0x0, 0x6f560), at 0x6f5fc
  [16] condition_case_1(0x384c00, 0x6f560, 0x103c0004, 0x6fb20, 0x103c0004, 0x0), at 0x95364
  [17] command_loop_2(0x103c0004, 0x0, 0x0, 0x392400, 0x6fbf4, 0xefffeb78), at 0x6fc1c
  [18] internal_catch(0x103d2fe4, 0x6fbf4, 0x103c0004, 0x0, 0x0, 0x0), at 0x94f38
  [19] initial_command_loop(0x7fffffff, 0x3b9c00, 0x24e4d0, 0x38de74, 0x1, 0x25fc00), at 0x6ec64
  [20] main_1(0x1, 0xeffff05c, 0xeffff064, 0xf025cd40, 0x0, 0x0), at 0x91f64
  [21] main(0x1, 0xeffff05c, 0xeffff064, 0x38a920, 0x1, 0x0), at 0x926bc

