"Stephen J. Turnbull" <stephen(a)xemacs.org> writes:
Please post a backtrace using M-x report-emacs-bug. If you don't
use
XEmacs as your MUA, save the resulting buffer to a file and attach it.
Thanks for telling me how to get this in front of the right people!
To: xemacs-beta(a)xemacs.org
Subject: font-lock/re-search-forward/stack overflow
--text follows this line--
This bug report will be sent to the XEmacs Development Team,
not to your local site managers!!
Please write in English, because the XEmacs maintainers do not have
translators to read other languages for them.
Please describe as succinctly as possible:
- What happened.
- What you thought should have happened.
- Precisely what you were doing at the time.
Please also include any C or lisp back-traces that you may have.
================================================================
Dear Bug Team!
Build: 21.4.8, cygwin (xemacs-i686-pc-cygwin-21.4.8.tar.gz), Windows 2K
Problem: Same as every other build since 21.4.3 (which aborts and survives):
Fatal error (11).
. . .
re-search-forward("--[^-]+\\(-[^-]+\\)*--" 215514 t)
# bind (highlights matcher keyword nkeywords iter old-progress
progress bufname keywords case-fold-search loudly loudvar end start)
font-lock-fontify-keywords-region(1 215514 nil)
. . .
This is the same fault I hit with 21.4.5, .6 and .7
Doesn't happen with 21.4.3.
A more attentive check shows that fontification of the crash-provoking
file under 21.4.3 provokes an abort! Modest work with edebug does not
reveal any way of finding how the abort is being raised. . . ah, if I
edit out the condition-case in font-lock-default-fontify-buffer, I see
File mode specification error: (error "Stack overflow in regexp matcher")
So it seems possible that under 21.4.5 and subsequently, under cygwin, (some)
stack overflows cause a segfault --- does this help localise the
problem?
A file that will provoke the prolbem can be found at:
http://www.w3.org/XML/2001/05/xmlschema-test-collection/resultSun.htm
The font-lock-keywords are coming from psgml-html
ht
================================================================
System Info to help track down your bug:
---------------------------------------
uname -a: CYGWIN_NT-5.0 TSUNAMI 1.3.10(0.51/3/2) 2002-02-25 11:14 i686 unknown
./configure '--with-dragndrop' '--with-postgresql=no'
'--with-x=no' '--bindir=/usr/local/bin/i686-pc-cygwin'
'--with-site-lisp=yes' '--with-ipv6-cname=no' '--with-netinstall'
XEmacs 21.4.8 "Honest Recruiter (Windows)" configured for `i686-pc-cygwin'.
Compilation / Installation:
Source code location: /development/xemacs/xemacs-21.4-release
Installation prefix: /usr/local
Operating system description file: `s/cygwin32.h'
Machine description file: `m/intel386.h'
Compiler: gcc -I/usr/lib/../include/noX
-I/usr/lib/../include/noX -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes
-Wsign-compare -Wshadow -Wpointer-arith
Relocating allocator for buffers: no
GNU version of malloc: yes
Window System:
Compiling in support for the Microsoft window system.
Using MS-Windows menubars.
Using MS-Windows scrollbars.
Using MS-Windows dialog boxes.
Using MS-Windows native widgets.
Compiling in support for Drag'n'Drop (EXPERIMENTAL).
- Drag'n'Drop prototype: msw.
TTY:
Compiling in support for ncurses.
Images:
Compiling in support for GIF images (builtin).
Compiling in support for XPM images.
Compiling in support for PNG images.
Compiling in support for JPEG images.
Compiling in support for TIFF images.
Compiling in support for X-Face message headers.
Sound:
Compiling in support for sound (native).
Databases:
Compiling in support for GNU DBM.
Internationalization:
Compiling in support for file coding.
Mail:
Compiling in support for POP mail retrieval.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.
Load-Path Lisp Shadows:
----------------------
(/home/ht/lib/emacs/p4
/usr/local/lib/xemacs/xemacs-packages/lisp/prog-modes/p4
/home/ht/lib/emacs/tcl
/usr/local/lib/xemacs/xemacs-packages/lisp/prog-modes/tcl
/usr/local/lib/xemacs/xemacs-packages/lisp/ps-print/ps-print
/usr/local/lib/xemacs/xemacs-packages/lisp/ps-print-nomule/ps-print
/home/ht/lib/emacs/misc /usr/local/lib/xemacs-21.4.8/lisp/misc)
Installed XEmacs Packages:
-------------------------
((xemacs-devel:version 1.44 :type single-file)
(xemacs-base :version 1.63 :type regular)
(w3 :version 1.23 :type regular)
(vm :version 7.04 :type regular)
(vc-cc :version 1.18 :type regular)
(vc :version 1.3 :type regular)
(tm :version 1.32 :type regular)
(text-modes :version 1.43 :type single-file)
(supercite :version 1.19 :type regular)
(speedbar :version 1.23 :type regular)
(sh-script :version 1.15 :type regular)
(scheme :version 1.11 :type regular)
(rmail :version 1.13 :type regular)
(psgml :version 1.28 :type regular)
(ps-print-nomule :version 1.05 :type regular)
(ps-print :version 1.04 :type regular)
(prog-modes
:version
1
.56
:type
single-file)
(pcl-cvs :version 1.61 :type regular)
(os-utils :version 1.28 :type single-file)
(net-utils :version 1.24 :type single-file)
(mh-e :version 1.14 :type regular)
(mailcrypt :version 2.11 :type regular)
(mail-lib :version 1.46 :type regular)
(ispell :version 1.24 :type regular)
(ilisp :version 1.22 :type regular)
(hm--html-menus :version 1.18 :type regular)
(gnus :version 1.6 :type regular)
(fsf-compat :version 1.11 :type single-file)
(eterm :version 1.13 :type regular)
(emerge :version 1.09 :type regular)
(elib :version 1.1 :type single-file)
(efs :version 1.29 :type regular)
(edit-utils :version 1.85 :type single-file)
(ediff :version 1.41 :type regular)
(edebug :version 1.14 :type regular)
(dired :version 1.12 :type regular)
(debug :version 1.15 :type regular)
(cc-mode :version 1.28 :type regular)
(calc :version 1.23 :type regular)
(c-support :version 1.16 :type single-file)
(bbdb :version 1.2 :type regular)
(auctex :version 1.31 :type regular)
(apel :version 1.23 :type regular))
Features:
--------
(bbdb-com mail-abbrevs xemacsbug shadow gnuserv perl-mode
highlight-headers bbdb timezone my-news gnus gnus-ems gnus-xmas
wid-edit messagexmas gnus-util time-date parse-time nnheader
nnheaderxm mail-utils mm-util mail-prsvr tempo psgml-parse psgml-edit
psgml-xemacs sgml-mode psgml compress repl-comment mdn-extras p4 env
smtpmail time-stamp sendmail rfc822 prompt-for-word rooms misc vc ring
vc-hooks pcl-cvs diff-mode advice advice-preload pcl-cvs-parse
pcl-cvs-info pcl-cvs-defs pcl-cvs-util cvs-compat dired-faces
dired-xemacs dired cookie dll elib-node man font-lock cus-face
package-ui package-get package-admin config xemacs-devel-autoloads
xemacs-base-autoloads w3-autoloads vm-autoloads vc-cc-autoloads
vc-autoloads tm-autoloads text-modes-autoloads supercite-autoloads
speedbar-autoloads sh-script-autoloads scheme-autoloads
rmail-autoloads psgml-autoloads ps-print-nomule-autoloads
ps-print-autoloads prog-modes-autoloads pcl-cvs-autoloads
os-utils-autoloads net-utils-autoloads mh-e-autoloads
mailcrypt-autoloads mail-lib-autoloads ispell-autoloads
ilisp-autoloads hm--html-menus-autoloads gnus-autoloads
fsf-compat-autoloads eterm-autoloads emerge-autoloads elib-autoloads
efs-autoloads edit-utils-autoloads ediff-autoloads edebug-autoloads
dired-autoloads debug-autoloads cc-mode-autoloads calc-autoloads
c-support-autoloads bbdb-autoloads auctex-autoloads apel-autoloads
lisp-autoloads loadhist auto-show fontl-hooks code-cmds gutter-items
menubar-items x-menubar dragdrop mode-motion mouse itimer auto-save
lisp-mode easymenu iso8859-1 page buff-menu lib-complete help-nomule
cus-file derived frame text-props obsolete cus-start custom widget
cl-extra mini-cl cl cl-19 packages backquote very-early-lisp
file-coding mswindows-scrollbars mswindows tty-frames tty toolbar
native-sound scrollbar unix-processes multicast network-streams
subprocesses modules menu-accelerator-support menubar dbm md5 xemacs
gutter tiff png gif jpeg xface xpm xbm lisp-float-type cygwin32
dragdrop-api dialog devices window-system base64)
Recent keystrokes:
-----------------
button1 button1up M-x g n u s e r v - s t a r t RET
misc-user button1 button1up button1 button1up C-k o
n l y SPC a SPC f e w SPC e d i t s BS BS BS BS BS
BS SPC m i n o r SPC e d i t s C-x C-s C-x # e m a
c s - v e r s i o n C-j button1 button1up M-x r e p
o r t - e m a c s - b u g RET
Recent messages (most recent first):
-----------------------------------
Parsing BBDB... (frobnicating...)
Parsing BBDB... (reading...)
Parsing BBDB...
Loading bbdb-com...done
Loading bbdb-com...
Loading xemacsbug...done
Loading xemacsbug...
Wrote /c/DOCUME~1/ht/LOCALS~1/Temp/t130236t0.tmp
Type `C-x #' to finish editing
Loading gnuserv...done
Loading gnuserv...
Loading gnus-xmas...done
Loading gnus-xmas...
Loading p4...done
Loading p4...
Loading env...done
Loading env...
Loading advice...done
Loading advice...
Loading cus-face...done
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
W3C Fellow 1999--2002, part-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht(a)cogsci.ed.ac.uk
URL:
http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]