From xemacs-m  Sun Aug 17 12:43:23 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 MAA21760
	for <xemacs-beta@xemacs.org>; Sun, 17 Aug 1997 12:43:22 -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 NAA18794 for <xemacs-beta@xemacs.org>; Sun, 17 Aug 1997 13:47:43 -0400 (EDT)
Received: (from aichner@localhost) by engine.ecf.teradyne.com (8.7.1/8.7.1) id TAA16539; Sun, 17 Aug 1997 19:42:49 +0200 (MET DST)
To: xemacs-beta@xemacs.org
Subject: Re: reproducable seg fault crash - edebugging font-lock code.
References: <87vi14zshe.fsf@bittersweet.inetarena.com> <m2203s20oo.fsf@altair.xemacs.org>
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%#
X-Emacs: 20.3 "Bratislava" XEmacs  Lucid (beta18) with mule
Mime-Version: 1.0 (generated by SEMI MIME-Edit 0.86 "Naka-Tsurugi")
Content-Type: multipart/mixed;
 boundary="Multipart_Sun_Aug_17_19:42:48_1997-1"
Content-Transfer-Encoding: 7bit
From: Adrian Aichner <aichner@ecf.teradyne.com>
Date: 17 Aug 1997 19:42:49 +0200
In-Reply-To: SL Baur's message of "17 Aug 1997 10:12:39 -0700"
Message-ID: <rxslo20k8o6.fsf@ecf.teradyne.com>
Lines: 189
X-Mailer: Gnus v5.4.64 + SEMI patch (r2.1)/XEmacs 20.3(beta18) - "Bratislava"

--Multipart_Sun_Aug_17_19:42:48_1997-1
Content-Type: text/plain; charset=US-ASCII

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

    sb> Karl M Hegbloom <karlheg@inetarena.com> writes:
    >> Start XEmacs in gdb.

    sb> $ gdb src/xemacs
    sb> (gdb) run -q -no-site-file

    >> Load `lisp/packages/font-lock.el'.

    sb> C-x C-f lisp/packages/font-lock.el

    >> Go to `font-lock-fontify-keywords-region' and instrument it with
    >> `edebug-defun'.

    sb> [Moved to the closing paren and did M-x edebug-defun]

    >> Put the pointer in the whitespace just above the (defun, and click to
    >> try and move the cursor there.

    sb> O.K.

    >> Wait for a while, watching the CPU meter sit high for about 20 seconds
    >> or so...

    sb> Nothing happens.

    >> XEmacs will crash.

    sb> I cannot reproduce it.

Hello Steven, try

xemacs -no-init-file -no-site-file -nw -l ~/el/edebug-crash.el

Here is ...

--Multipart_Sun_Aug_17_19:42:48_1997-1
Content-Type: application/octet-stream; type=emacs-lisp
Content-Disposition: attachment; filename="edebug-crash.el"
Content-Transfer-Encoding: 7bit

(load-library (concat data-directory "sample.emacs"))
(find-file (locate-library "font-lock.el"))
(goto-char (point-max))
(search-backward-regexp "(defun\\s-+font-lock-fontify-keywords-region")
(edebug-defun)
;; (previous-line 1)


--Multipart_Sun_Aug_17_19:42:48_1997-1
Content-Type: text/plain; charset=US-ASCII


My core traceback seems awfully useful. Here we go ...


--Multipart_Sun_Aug_17_19:42:48_1997-1
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="edebug-crash.ci"
Content-Transfer-Encoding: 7bit


-------------------------------------------------------
Core Analysis generated by
/u/aichner/sh/core_info.sh
on Sun Aug 17 19:39:47 MET DST 1997.

Core File: core
Current Working Directory: /u/aichner
Program: /usr/local/bin/xemacs-20.3-b18
Host: engine
Architecture: sun4m

Equivalent dbx command sequence:

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

The major new features of this release relative to 3.2 are:

o The Collector now supports MT applications (see `help collectormt')
o Runtime checking (RTC) is supported with fork/exec/attach (see `help
  rtc attach' for details)
o RTC has an API for allocators (see `help rtc api')
o New command `regs' to print current value of registers (see `help regs')
o New command `showblock' to give details about heap block (see `help showblock')
o Enhanced `pathmap' command (see `help pathmap')
o New dbxenv variable 'language_mode' (see `help dbxenv' under `language_mode')
o New dbxenv variable 'output_inherited_members' (ee `help dbxenv' under 
  `output_inherited_members')
o Two new dbx read-only variables: $helpfile and $helpfile_html (see `help help')
o New -v (verbose) flag to the `module' and `modules' commands 
  (see `help module' and `help modules')
o New +r flag to print and display commands (see `help print')
o Default value of dbxenv variable `scope_look_aside' has been changed
  to on (see `help dbxenv' under scope_look_aside and `help scope')
o New `inobject' event for support of `stop inobject <c++_obj_exp>'
  (see `help c++ inobject' and `help event specification')
o `inclass' event now supports template classes (see `help c++ inclass' and 
  `help event specification')
o `stop at <lineno>' now supports C++ template definitions as well as
  C++ inlined functions defined in header files (see `help event specification'
  under `at' event)
o Support for new C++ operators: `const_cast', `dynamic_cast',
  `reinterpret_cast', and `static_cast'
o Support for new C++ `typeid' operator 
o An HTML version of the help file is available (see `help help')

See also `help changes32'

To suppress this message, add the following line to your .dbxrc file:

        dbxenv suppress_startup_message 4.0
Reading symbolic information for xemacs-20.3-b18
dbx: warning: core object name "xemacs-20.3-b1" matches
object name "xemacs-20.3-b18" within the limit of 14. assuming they match
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/bin/xemacs-20.3-b18:eval.c stab #603 s:p(90,63),
assuming type `int {assumed}'
dbx: warning: undefined type number (90,68) at /usr/local/bin/xemacs-20.3-b18:eval.c stab #610 v:p(90,68),
assuming type `int {assumed}'
dbx: warning: undefined type number (90,68) at /usr/local/bin/xemacs-20.3-b18:eval.c stab #617 v:p(90,68),
assuming type `int {assumed}'
dbx: warning: undefined type number (90,63) at /usr/local/bin/xemacs-20.3-b18: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}'
dbx: core file read error: address 0xef7fff4c not in data space
Current function is funcall_recording_as (optimized)
 3076   {
=>[1] funcall_recording_as(recorded_as = ???, nargs = ???, args = ???) (optimized), at 0x78e08 (line ~3076) in "eval.c"
dbx: core file read error: address 0xef7fffe0 not in data space
dbx: attempt to read stack failed - bad frame pointer
fun = ???
argvals = ARRAY
subr = ???
recorded_as = ???
funcar = ???
max_args = ???
backtrace = RECORD
args = ???
nargs = ???
i = ???
val = ???
dbx: core file read error: address 0xef7fffe0 not in data space
dbx: attempt to read stack failed - bad frame pointer

--Multipart_Sun_Aug_17_19:42:48_1997-1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable


-- =

                            Adrian Aichner
                        Applications Engineer
  Teradyne GmbH
  Semiconductor Test Group    Telephone +49/89/41861(0)-208
  Dingolfinger Stra=DFe 2       Fax       +49/89/41861-217
  D-81673 M=DCNCHEN             E-mail    aichner@ecf.teradyne.com

--Multipart_Sun_Aug_17_19:42:48_1997-1--

