From xemacs-m  Thu Jun 26 17:22:29 1997
Received: from steadfast.teradyne.com (steadfast.teradyne.com [131.101.1.200])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id RAA19319
	for <xemacs-beta@xemacs.org>; Thu, 26 Jun 1997 17:22:28 -0500 (CDT)
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 SAA20741; Thu, 26 Jun 1997 18:25:57 -0400 (EDT)
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 AAA21593; Fri, 27 Jun 1997 00:21:19 +0200 (MET DST)
Received: by midnight.eng.ecf.teradyne.com (SMI-8.6/SMI-SVR4)
	id AAA12159; Fri, 27 Jun 1997 00:21:18 +0200
To: bwarsaw@python.org
Cc: xemacs-beta@xemacs.org
Subject: Re: GNATS id misc/103, C-g crashes XEmacs
References: <199706261923.PAA05924@anthem.CNRI.Reston.Va.US>
X-Face: 4[iHdXiTu\V3u[~\I)<f9HC);%~nG8`oUqv#uzvs6=\V{AjN6Sn
 c/qi;YLwRmEbt8Y*=j5n(urqY@chPh@J'D"QlqD!C8>*}#kYF[-tYl3VZga/HSOP|K,{L
 Rtu@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.108)
Content-Type: multipart/mixed;
 boundary="Multipart_Fri_Jun_27_00:21:16_1997-1"
Content-Transfer-Encoding: 7bit
From: Adrian Aichner <aichner@ecf.teradyne.com>
Date: 27 Jun 1997 00:21:17 +0200
In-Reply-To: "Barry A. Warsaw"'s message of "Thu, 26 Jun 1997 15:23:25 -0400"
Message-ID: <rxspvt92eg2.fsf@midnight.ecf.teradyne.com>
Lines: 283
X-Mailer: Gnus v5.4.59/XEmacs 20.3(beta8) - "Copenhagen"

--Multipart_Fri_Jun_27_00:21:16_1997-1
Content-Type: text/plain; charset=US-ASCII

>>>>> "BAW" == Barry A Warsaw <bwarsaw@CNRI.Reston.Va.US> writes:

Hello Barry,

that's quite a recipe! I followed it exactly.

Here is what I cooked up: STDERR of xemacs and C traceback.

Question is: Who wants the very bite?

Regards,

Adrian


--Multipart_Fri_Jun_27_00:21:16_1997-1
Content-Type: text/plain; charset=US-ASCII

ISO8-----XEmacs: *scratch* (Lisp Interaction)----All-----------------------

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

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@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 /usr/local/xemacs-20.3-b8/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 ...)
Segmentation Fault (core dumped)
aichner@midnight(395) 


--Multipart_Fri_Jun_27_00:21:16_1997-1
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="xemacs-20.3-b8-nw-gnuserv-ctrl-g.ci"
Content-Transfer-Encoding: 7bit


-------------------------------------------------------
Core Analysis generated by
/u/aichner/sh/core_info.sh
on Fri Jun 27 00:16:30 MET DST 1997.

Core File: core
Current Working Directory: /u/aichner/Mail
Program: /usr/local/xemacs-20.3-b8/src/xemacs
Host: midnight
Architecture: sun4m

Equivalent dbx command sequence:

(dbx /usr/local/xemacs-20.3-b8/src/xemacs core) 2>&1
<<here
where
dump
quit
here
-------------------------------------------------------

Reading symbolic information for xemacs
core file header read successfully
Reading symbolic information for rtld /usr/lib/ld.so.1
Reading symbolic information for libXm.so.3
Reading symbolic information for libz.so
Reading symbolic information for libDtSvc.so.1
Reading symbolic information for libtt.so.2
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 libintl.so.1
Reading symbolic information for libkvm.so.1
Reading symbolic information for libkstat.so.1
Reading symbolic information for libsocket.so.1
Reading symbolic information for libnsl.so.1
Reading symbolic information for libelf.so.1
Reading symbolic information for libdl.so.1
Reading symbolic information for libc.so.1
Reading symbolic information for libw.so.1
Reading symbolic information for libm.so.1
Reading symbolic information for libmp.so.1
program terminated by signal SEGV (Segmentation Fault)
dbx: warning: undefined type number (90,63) at /usr/local/xemacs-20.3-b8/src/xemacs:emacs.c stab #603 s:p(90,63),
assuming type `int {assumed}'
dbx: warning: undefined type number (90,68) at /usr/local/xemacs-20.3-b8/src/xemacs:emacs.c stab #610 v:p(90,68),
assuming type `int {assumed}'
dbx: warning: undefined type number (90,68) at /usr/local/xemacs-20.3-b8/src/xemacs:emacs.c stab #617 v:p(90,68),
assuming type `int {assumed}'
dbx: warning: undefined type number (90,63) at /usr/local/xemacs-20.3-b8/src/xemacs:emacs.c stab #622 Lisp_Symbol:T(90,69)=s20next:(90,70)=*(90,69),0,32;name:(90,63),32,32;value:(120,1),64,32;function:(120,1),96,32;plist:(120,1),128,32;;,
assuming type `int {assumed}'
dbx: warning: undefined type number (90,63) at /usr/local/xemacs-20.3-b8/src/xemacs:emacs.c stab #1057 __gseda_s__:(90,63),
assuming type `int {assumed}'
dbx: warning: undefined type number (90,63) at /usr/local/xemacs-20.3-b8/src/xemacs:emacs.c stab #1177 __gseda_s__:(90,63),
assuming type `int {assumed}'
dbx: warning: undefined type number (90,63) at /usr/local/xemacs-20.3-b8/src/xemacs:emacs.c stab #1180 __gseda_s__:(90,63),
assuming type `int {assumed}'
dbx: warning: undefined type number (90,63) at /usr/local/xemacs-20.3-b8/src/xemacs:emacs.c stab #1229 __gseda_s__:(90,63),
assuming type `int {assumed}'
dbx: warning: undefined type number (90,63) at /usr/local/xemacs-20.3-b8/src/xemacs:emacs.c stab #1234 __gseda_s__:(90,63),
assuming type `int {assumed}'
Current function is fatal_error_signal (optimized)
  175   {
  [1] kill(0x0, 0xb, 0x31ad38, 0x5034a018, 0x0, 0x0), at 0xef1f3e30
=>[2] fatal_error_signal(sig = ???) (optimized), at 0x7299c (line ~175) in "emacs.c"
  ---- called from signal handler with signal 11 (SIGSEGV) ------
  [3] 0x0(), at 0xffffffff
  [4] _select(0x9, 0xefffe8d0, 0x3, 0x3, 0x3a45f, 0xefffc740), at 0xef1d1d98
  [5] _XtwaitForSomething(0x487dc8, 0x487c0c, 0x0, 0x487c1c, 0x0, 0x0), at 0xef3dd94c
  [6] XtAppProcessEvent(0x487c00, 0x0, 0x487dcc, 0x487c0c, 0x487dc8, 0x0), at 0xef3decc8
dbx: warning: undefined type number (90,63) at /usr/local/xemacs-20.3-b8/src/xemacs:event-Xt.c stab #603 s:p(90,63),
assuming type `int {assumed}'
dbx: warning: undefined type number (90,68) at /usr/local/xemacs-20.3-b8/src/xemacs:event-Xt.c stab #610 v:p(90,68),
assuming type `int {assumed}'
dbx: warning: undefined type number (90,68) at /usr/local/xemacs-20.3-b8/src/xemacs:event-Xt.c stab #617 v:p(90,68),
assuming type `int {assumed}'
dbx: warning: undefined type number (90,63) at /usr/local/xemacs-20.3-b8/src/xemacs:event-Xt.c stab #622 Lisp_Symbol:T(90,69)=s20next:(90,70)=*(90,69),0,32;name:(90,63),32,32;value:(120,1),64,32;function:(120,1),96,32;plist:(120,1),128,32;;,
assuming type `int {assumed}'
  [7] emacs_Xt_next_event(emacs_event = ???) (optimized), at 0x140e94 (line ~2076) in "event-Xt.c"
dbx: warning: undefined type number (90,68) at /usr/local/xemacs-20.3-b8/src/xemacs:event-stream.c stab #610 v:p(90,68),
assuming type `int {assumed}'
dbx: warning: undefined type number (90,68) at /usr/local/xemacs-20.3-b8/src/xemacs:event-stream.c stab #617 v:p(90,68),
assuming type `int {assumed}'
  [8] event_stream_next_event(event = ???) (optimized), at 0xa9908 (line ~464) in "event-stream.c"
  [9] next_event_internal(target_event = ???, allow_queued = ???) (optimized), at 0xab748 (line ~1857) in "event-stream.c"
  [10] Fnext_event(event = ???, prompt = ???) (optimized), at 0xabc9c (line ~1986) in "event-stream.c"
dbx: warning: undefined type number (90,63) at /usr/local/xemacs-20.3-b8/src/xemacs:cmdloop.c stab #603 s:p(90,63),
assuming type `int {assumed}'
dbx: warning: undefined type number (90,68) at /usr/local/xemacs-20.3-b8/src/xemacs:cmdloop.c stab #610 v:p(90,68),
assuming type `int {assumed}'
dbx: warning: undefined type number (90,68) at /usr/local/xemacs-20.3-b8/src/xemacs:cmdloop.c stab #617 v:p(90,68),
assuming type `int {assumed}'
dbx: warning: undefined type number (90,63) at /usr/local/xemacs-20.3-b8/src/xemacs:cmdloop.c stab #622 Lisp_Symbol:T(90,69)=s20next:(90,70)=*(90,69),0,32;name:(90,63),32,32;value:(120,1),64,32;function:(120,1),96,32;plist:(120,1),128,32;;,
assuming type `int {assumed}'
  [11] Fcommand_loop_1() (optimized), at 0x5f150 (line ~498) in "cmdloop.c"
  [12] command_loop_1(dummy = ???) (optimized), at 0x5ef58 (line ~476) in "cmdloop.c"
dbx: warning: undefined type number (90,63) at /usr/local/xemacs-20.3-b8/src/xemacs:eval.c stab #603 s:p(90,63),
assuming type `int {assumed}'
dbx: warning: undefined type number (90,68) at /usr/local/xemacs-20.3-b8/src/xemacs:eval.c stab #610 v:p(90,68),
assuming type `int {assumed}'
dbx: warning: undefined type number (90,68) at /usr/local/xemacs-20.3-b8/src/xemacs:eval.c stab #617 v:p(90,68),
assuming type `int {assumed}'
dbx: warning: undefined type number (90,63) at /usr/local/xemacs-20.3-b8/src/xemacs:eval.c stab #622 Lisp_Symbol:T(90,69)=s20next:(90,70)=*(90,69),0,32;name:(90,63),32,32;value:(120,1),64,32;function:(120,1),96,32;plist:(120,1),128,32;;,
assuming type `int {assumed}'
  [13] condition_case_1(handlers = ???, bfun = ???, barg = ???, hfun = ???, harg = ???) (optimized), at 0x76e08 (line ~1639) in "eval.c"
  [14] command_loop_3() (optimized), at 0x5e9a4 (line ~218) in "cmdloop.c"
  [15] command_loop_2(dummy = ???) (optimized), at 0x5e9d8 (line ~252) in "cmdloop.c"
  [16] internal_catch(tag = ???, func = ???, arg = ???, threw = ???) (optimized), at 0x76a4c (line ~1340) in "eval.c"
  [17] initial_command_loop(load_me = ???) (optimized), at 0x5ebdc (line ~261) in "cmdloop.c"
  [18] main_20_3_b8_sparc_sun_solaris2_5(argc = ???, argv = ???, envp = ???) (optimized), at 0x73c8c (line ~458) in "emacs.c"
  [19] main(argc = ???, argv = ???, envp = ???) (optimized), at 0x744d0 (line ~1769) in "emacs.c"
_mask =  RECORD 
sig = ???

--Multipart_Fri_Jun_27_00:21:16_1997-1
Content-Type: text/plain; charset=US-ASCII



    BAW> [1  <text/plain; us-ascii (7bit)>]
    BAW> I have a reproducable test case in which C-g in a tty XEmacs core
    BAW> dumps.  Unfortunately, Steve cannot reproduce on his Linux system, but
    BAW> this has been happening for me for all the 20.3 betas on Solaris
    BAW> 2.5.1.  He suggested I post here in case anyone else on a Solaris box
    BAW> can reproduce it.

    BAW> First the recipe.  Put the following in /tmp/emacs.el

    BAW> [2 emacs.el <text/plain>]
    BAW> (gnuserv-start)
    BAW> [3  <text/plain; us-ascii (7bit)>]

    BAW> Now, start with

    BAW> % xemacs -no-site-file -q -nw -l /tmp/emacs.el

    BAW> Immediately hit C-g.  This crashes XEmacs every time.  Here's the
    BAW> backtrace:

    BAW> [4 gdb.txt <text/plain>]
    BAW> Program received signal SIGSEGV, Segmentation fault.
    BAW> 0x0 in ?? ()
    BAW> (gdb) where
    BAW> #0  0x0 in ?? ()
    BAW> #1  0xef15399c in _select ()
    BAW> #2  0xef43d950 in _XtwaitForSomething ()
    BAW> #3  0xef43eccc in XtAppProcessEvent ()
    BAW> #4  0x10ed3c in emacs_Xt_next_event (emacs_event=0x3bb078) at event-Xt.c:2117
    BAW> #5  0x8ac00 in event_stream_next_event (event=0x3bb078) at event-stream.c:499
    BAW> #6  0x8c92c in next_event_internal (target_event=272347256, allow_queued=1)
    BAW>     at event-stream.c:1887
    BAW> #7  0x8ce54 in Fnext_event (event=272347256, prompt=1345232900)
    BAW>     at event-stream.c:2135
    BAW> #8  0x55f44 in Fcommand_loop_1 () at cmdloop.c:551
    BAW> #9  0x55d80 in command_loop_1 (dummy=1345232900) at cmdloop.c:480
    BAW> #10 0x6b618 in condition_case_1 (handlers=1345232980, 
    BAW>     bfun=0x55d5c <command_loop_1>, barg=1345232900, hfun=0x55694 <cmd_error>, 
    BAW>     harg=1345232900) at eval.c:1738
    BAW> #11 0x557ac in command_loop_3 () at cmdloop.c:242
    BAW> #12 0x557d4 in command_loop_2 (dummy=1345232900) at cmdloop.c:253
    BAW> #13 0x6b278 in internal_catch (tag=1345309876, func=0x557c8 <command_loop_2>, 
    BAW>     arg=1345232900, threw=0x0) at eval.c:1415
    BAW> #14 0x559e0 in initial_command_loop (load_me=350152) at cmdloop.c:291
    BAW> #15 0x688dc in main_20_3_b9_sparc_sun_solaris2_5_1 (argc=2, argv=0xeffff8a4, 
    BAW>     envp=0xeffff8b0) at emacs.c:1471
    BAW> #16 0x6900c in main (argc=0, argv=0xeffff8a4, envp=0xeffff8b0) at emacs.c:1822
    BAW> (gdb) 
    BAW> [5  <text/plain; us-ascii (7bit)>]

    BAW> And my configuration info:

    BAW> [6 Installation <text/plain>]
    BAW> uname -a: SunOS anthem 5.5.1 Generic_103640-08 sun4u sparc SUNW,Ultra-2

    BAW> ./configure  '--prefix=/depot/gnu' '--exec-prefix=/depot/gnu/plat' '--site-libraries=/depot/gnu/plat/lib /depot/sundry/plat/lib' '--site-runtime-libraries=/depot/gnu/plat/lib:/depot/sundry/plat/lib:/usr/dt/lib:/usr/openwin/lib' '--site-includes=/depot/gnu/include /depot/sundry/include' '--error-checking=none' '--debug=yes' '--with-xpm=yes' '--with-database=no' '--with-database=gnudbm'


    BAW> Configured for `sparc-sun-solaris2.5.1'.

    BAW>   Where should the build process find the source code?    /home/bwarsaw/src/xemacs-20.3-b9
    BAW>   What installation prefix should install use?		  /depot/gnu
    BAW>   What operating system and machine description files should XEmacs use?
    BAW>         `s/sol2.h' and `m/sparc.h'
    BAW>   What compiler should XEmacs be built with?              gcc -g -O2
    BAW>   Should XEmacs use the GNU version of malloc?            yes
    BAW>   Should XEmacs use the relocating allocator for buffers? yes
    BAW>   What window system should XEmacs use?                   x11
    BAW>   Where do we find X Windows header files?                /usr/dt/include /usr/openwin/include
    BAW>   Where do we find X Windows libraries?                   /usr/dt/lib /usr/openwin/lib
    BAW>   Additional header files:                                /depot/gnu/include /depot/sundry/include
    BAW>   Additional libraries:                                   /depot/gnu/plat/lib /depot/sundry/plat/lib
    BAW>   Runtime library search path:                            /depot/gnu/plat/lib:/depot/sundry/plat/lib:/usr/dt/lib:/usr/openwin/lib
    BAW>   Compiling in support for XAUTH.
    BAW>   Compiling in support for GIF image conversion.
    BAW>   Compiling in support for XPM images.
    BAW>   Compiling in support for X-Face message headers.
    BAW>   Compiling in support for JPEG image conversion.
    BAW>   Compiling in support for PNG image conversion.
    BAW>   Compiling in native sound support.
    BAW>   Compiling in support for GNU DBM.
    BAW>   Compiling in support for CDE.
    BAW>   Compiling in support for ToolTalk.
    BAW>   Using Lucid menubars.
    BAW>   Using Lucid scrollbars.
    BAW>   Using Motif dialog boxes.
    BAW>   movemail will use "dot-locking" for locking mail spool files.
    BAW>   Compiling in extra code for debugging.
    BAW>   Compiling in code for checking XEmacs memory usage.

    BAW> [7  <text/plain; us-ascii (7bit)>]

    BAW> Please let me/us know if you can reproduce this bug.  It is highly
    BAW> annoying!

    BAW> -Barry

--Multipart_Fri_Jun_27_00:21:16_1997-1--

