From xemacs-m  Fri Mar 21 10:06:23 1997
Received: from hudutilgw.ml.com (hudutilf01.ml.com [198.242.49.31])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id KAA03063
	for <xemacs-beta@xemacs.org>; Fri, 21 Mar 1997 10:06:23 -0600 (CST)
Received: from ml1.ml.com ([199.201.57.130])
	by hudutilgw.ml.com (8.8.5/8.8.5/MLgw-3.03) with ESMTP id LAA24821
	for <xemacs-beta@xemacs.org>; Fri, 21 Mar 1997 11:04:39 -0500 (EST)
Received: from commpost.ml.com (commpost.ml.com [146.125.4.24])
	by ml1.ml.com (8.8.5/8.8.5/MLml4-2.07) with SMTP id LAA25354
	for <xemacs-beta@xemacs.org>; Fri, 21 Mar 1997 11:08:43 -0500 (EST)
Received: from spssunp.spspme.ml.com (spssunp.spspme.ml.com [192.168.111.13]) by commpost.ml.com (8.6.12/8.6.12) with ESMTP id LAA26636 for <xemacs-beta@xemacs.org>; Fri, 21 Mar 1997 11:08:48 -0500
Received: by spssunp.spspme.ml.com (SMI-8.6/SMI-4.1)
	id LAA06006; Fri, 21 Mar 1997 11:05:48 -0500
Sender: craffert@spspme.ml.com
To: XEmacs Beta List <xemacs-beta@xemacs.org>
Subject: [++] new reproducable sparcworks crash in 20.1 b8 (and b6)
Reply-To: Colin Rafferty <craffert@ml.com>
X-Face: ""xJff<P[R~C67]V?J|X^Dr`YigXK|;1wX<rt^>%{>hr-{:QXl"Xk2O@@(+F]e{"%EYQiW@mUuvEsL>=mx96j12qW[%m;|:B^n{J8k?Mz[K1_+H;$v,nYx^1o_=4M,L+]FIU~[[`-w~~xsy-BX,?tAF_.8u&0y*@aCv;a}Y'{w@#*@iwAl?oZpvvv
X-Y-Zippy: Bagels...
Mime-Version: 1.0 (generated by tm-edit 7.105)
Content-Type: multipart/mixed;
 boundary="Multipart_Fri_Mar_21_11:05:46_1997-1"
Content-Transfer-Encoding: 7bit
From: Colin Rafferty <craffert@ml.com>
Date: 21 Mar 1997 11:05:47 -0500
Message-ID: <ocrd8stnsbo.fsf@spssunp.spspme.ml.com>
Lines: 165
X-Mailer: Gnus v5.4.28/XEmacs 20.1(beta8)

--Multipart_Fri_Mar_21_11:05:46_1997-1
Content-Type: text/plain; charset=US-ASCII

I am using SparcWorks on sparc-sun-solaris2.4 (config info at bottom).

1. I start up XEmacs and create a second frame.

2. In this second frame, I run M-x dbx with argument `dbx -editor' to get
   the subprocess to talk to XEmacs.

3. In buffer *dbx*, I set a breakpoint in a function `stop in Class::func'.
   It loads in the source file and puts a little circle next to the first
   line in the function.

4. I split the screen, go back into the *dbx* buffer and type `run'.  The
   program starts, prompts me for information (which I type in), enters the 
   function with the breakpoint, and XEmacs crashes.

I have the same results with b6.  Nothing goes wrong if I just use the
initial frame.  I have never seen this before, and I use this method of
debugging all the time.

Unfortunately, I can recreate this at will.  In fact, it is making my
debugging that I get paid to do very difficult :-).

Looking at the stack trace, there is obviously something wrong with
displaying the margin glyphs.

The lisp backtrace is very uninteresting.  The C stack is very interesting,
especially when I print out the values of some variables.

I have left the gdb of the running XEmacs still up, so I can play around if
you need.  If someone wants, you can call me at work and we can look around
the stack.  My number is (212) 449-8782.


--Multipart_Fri_Mar_21_11:05:46_1997-1
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="Lisp Backtrace"
Content-Transfer-Encoding: 8bit


Lisp backtrace follows:
 
  # (condition-case ... . error)
  # (catch top-level ...)
 

--Multipart_Fri_Mar_21_11:05:46_1997-1
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="GDB Trace"
Content-Transfer-Encoding: 8bit


(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /export1/craffert/src/xemacs-20.1-b8/src/xemacs 
 
Program received signal SIGSEGV, Segmentation fault.
0x13e7dc in add_margin_runes (dl=0x9735a0, db=0x9928b0, start=4, count=1, 
    glyph_type=1, side=2, window=278503936) at redisplay.c:2748
2748              Dynarr_add (db->runes, rb);
(gdb) where
#0  0x13e7dc in add_margin_runes (dl=0x9735a0, db=0x9928b0, start=4, count=1, 
    glyph_type=1, side=2, window=278503936) at redisplay.c:2748
#1  0x13f3d0 in create_left_glyph_block (w=0x99a200, dl=0x9735a0, 
    overlay_width=3554304) at redisplay.c:3079
#2  0x138db4 in generate_display_line (w=0x99a200, dl=0x9735a0, 
    bounds=3539968, start_pos=11811, start_col=268435455, prop=0xefffe444, 
    type=1) at redisplay.c:764
#3  0x142ba4 in regenerate_window (w=0x99a200, start_pos=11811, 
    point=10068484, type=1) at redisplay.c:4275
#4  0x143c8c in regenerate_window_point_center (w=0x99a200, point=11811, 
    type=1) at redisplay.c:4805
#5  0x144b00 in redisplay_window (window=10068480, skip_selected=11811)
    at redisplay.c:5199
#6  0x145494 in redisplay_frame (f=0x815700, preemption_check=0)
    at redisplay.c:5394
#7  0x14570c in redisplay_device (d=0x3fc100) at redisplay.c:5476
#8  0x145d14 in redisplay_without_hooks () at redisplay.c:5592
#9  0x145f38 in redisplay () at redisplay.c:5659
#10 0x134958 in status_notify () at process.c:2569
#11 0xa786c in execute_internal_event (event=0) at event-stream.c:2921
#12 0xab744 in Fdispatch_event (event=275957340) at event-stream.c:3922
#13 0x69e58 in Fcommand_loop_1 () at cmdloop.c:540
#14 0x69aa8 in command_loop_1 (dummy=272183300) at cmdloop.c:460
#15 0x8f8bc in condition_case_1 (handlers=272183396, 
    bfun=0x69a04 <command_loop_1>, barg=272183300, hfun=0x68b90 <cmd_error>, 
    harg=272183300) at eval.c:1647
#16 0x68c90 in command_loop_3 () at cmdloop.c:222
#17 0x68cb8 in command_loop_2 (dummy=272183300) at cmdloop.c:233
#18 0x8f3e8 in internal_catch (tag=272261148, func=0x68cac <command_loop_2>, 
    arg=272183300, threw=0x0) at eval.c:1324
#19 0x69154 in initial_command_loop (load_me=429228) at cmdloop.c:271
#20 0x8c2ec in main_1 (argc=1, argv=0xefffeefc, envp=0xefffef04)
    at emacs.c:1475
#21 0x8cab8 in main (argc=1, argv=0xefffeefc, envp=0xefffef04) at emacs.c:1826
(gdb) list
2743              rb.object.dglyph.glyph = gb->glyph;
2744              rb.object.dglyph.extent = gb->extent;
2745              rb.object.dglyph.xoffset = 0;
2746              rb.cursor_type = CURSOR_OFF;
2747
2748              Dynarr_add (db->runes, rb);
2749              xpos += rb.width;
2750              count--;
2751              gb->active = 0;
2752
(gdb) print rb
$4 = {findex = 0, xpos = 4, width = 11, bufpos = -1, endpos = 0, 
  cursor_type = 1, type = 2, object = {dglyph = {glyph = 277738944, 
      extent = 274324272, xoffset = 0}, chr = {ch = 277738944}, hline = {
      thickness = 277738944, yoffset = 274324272}}}
(gdb) print db
$5 = (struct display_block *) 0x9928b0
(gdb) print *db
$6 = {type = 671088642, start_pos = 277738944, end_pos = 274324272, 
  runes = 0x0}
(gdb) 


--Multipart_Fri_Mar_21_11:05:46_1997-1
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="Config Status"
Content-Transfer-Encoding: 8bit


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

  Where should the build process find the source code?    /export1/craffert/src/xemacs-20.1-b7
  What installation prefix should install use?		  /usr/local
  What operating system and machine description files should XEmacs use?
        `s/sol2-4.h' and `m/sparc.h'
  What compiler should XEmacs be built with?              gcc -g -O 
  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:                                /export1/craffert/src/site
  Additional libraries:                                   /export1/craffert/src/site /export1/craffert/src/site
  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 native sound support.
  Compiling in support for DBM.
  Compiling in Mule (multi-lingual) support.
  Compiling in support for ToolTalk.
  Compiling in support for SparcWorks.
  Using the Lucid menubar.
  Using the Lucid scrollbar.
  Using the Athena dialog boxes.
  Compiling in extra code for debugging.
  Compiling in code for checking XEmacs memory usage.

--Multipart_Fri_Mar_21_11:05:46_1997-1
Content-Type: text/plain; charset=US-ASCII


-- 
Colin

--Multipart_Fri_Mar_21_11:05:46_1997-1--

