From xemacs-m  Thu Jun 26 14:20:07 1997
Received: from cnri.reston.va.us (cnri.CNRI.Reston.VA.US [132.151.1.1])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id OAA17909
	for <xemacs-beta@xemacs.org>; Thu, 26 Jun 1997 14:20:07 -0500 (CDT)
Received: from newcnri.CNRI.Reston.Va.US (newcnri [132.151.1.84]) by cnri.reston.va.us (8.8.5/8.7.3) with SMTPid PAA08379 for <xemacs-beta@xemacs.org>; Thu, 26 Jun 1997 15:23:17 -0400 (EDT)
Received: from anthem.CNRI.Reston.Va.US by newcnri.CNRI.Reston.Va.US (SMI-8.6/SMI-SVR4)
	id PAA19959; Thu, 26 Jun 1997 15:24:18 -0400
Received: by anthem.CNRI.Reston.Va.US (SMI-8.6/SMI-SVR4)
	id PAA05924; Thu, 26 Jun 1997 15:23:25 -0400
Date: Thu, 26 Jun 1997 15:23:25 -0400
Message-Id: <199706261923.PAA05924@anthem.CNRI.Reston.Va.US>
From: "Barry A. Warsaw" <bwarsaw@CNRI.Reston.Va.US>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="d1YbUVH9gA"
Content-Transfer-Encoding: 7bit
To: xemacs-beta@xemacs.org
Subject: GNATS id misc/103, C-g crashes XEmacs
X-Mailer: VM 6.32 under 20.3 "Sofia" XEmacs  Lucid (beta9)
Reply-To: bwarsaw@python.org
X-Attribution: BAW
X-Oblique-Strategy: What wouldn't you do?
X-Url: http://www.python.org/~bwarsaw


--d1YbUVH9gA
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


I have a reproducable test case in which C-g in a tty XEmacs core
dumps.  Unfortunately, Steve cannot reproduce on his Linux system, but
this has been happening for me for all the 20.3 betas on Solaris
2.5.1.  He suggested I post here in case anyone else on a Solaris box
can reproduce it.

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


--d1YbUVH9gA
Content-Type: text/plain
Content-Disposition: inline;
	filename="emacs.el"
Content-Transfer-Encoding: 7bit

(gnuserv-start)

--d1YbUVH9gA
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Now, start with

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

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


--d1YbUVH9gA
Content-Type: text/plain
Content-Disposition: inline;
	filename="gdb.txt"
Content-Transfer-Encoding: 7bit

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

--d1YbUVH9gA
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


And my configuration info:


--d1YbUVH9gA
Content-Type: text/plain
Content-Disposition: inline;
	filename="Installation"
Content-Transfer-Encoding: 7bit

uname -a: SunOS anthem 5.5.1 Generic_103640-08 sun4u sparc SUNW,Ultra-2

./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'


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

  Where should the build process find the source code?    /home/bwarsaw/src/xemacs-20.3-b9
  What installation prefix should install use?		  /depot/gnu
  What operating system and machine description files should XEmacs use?
        `s/sol2.h' and `m/sparc.h'
  What compiler should XEmacs be built with?              gcc -g -O2
  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/dt/include /usr/openwin/include
  Where do we find X Windows libraries?                   /usr/dt/lib /usr/openwin/lib
  Additional header files:                                /depot/gnu/include /depot/sundry/include
  Additional libraries:                                   /depot/gnu/plat/lib /depot/sundry/plat/lib
  Runtime library search path:                            /depot/gnu/plat/lib:/depot/sundry/plat/lib:/usr/dt/lib:/usr/openwin/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 native sound support.
  Compiling in support for GNU DBM.
  Compiling in support for CDE.
  Compiling in support for ToolTalk.
  Using Lucid menubars.
  Using Lucid scrollbars.
  Using Motif dialog boxes.
  movemail will use "dot-locking" for locking mail spool files.
  Compiling in extra code for debugging.
  Compiling in code for checking XEmacs memory usage.


--d1YbUVH9gA
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


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

-Barry

--d1YbUVH9gA--

