================================================================
Dear Bug Team!
I regularly get a regex.c assert core from XEmacs running Gnus any
time it encounters an arriving mail (spam) message using MIME-encoded
charset GB2312. The dump is an ABORT() on failing to find a valid
syntax opcode type; reproducible on demand.
If needed, you can find a saved core file and the victim spam that
induces crash at
http://www.charcoal.com/~karl/xemacs.crash/ (102Mbytes).
Fedora Core 4.
Beginning of backtrace:
#0 0x008d7402 in __kernel_vsyscall ()
#1 0x007043f6 in kill () from /lib/libc.so.6
#2 0x080d0b15 in fatal_error_signal (sig=6) at emacs.c:3799
#3 <signal handler called>
#4 0x008d7402 in __kernel_vsyscall ()
#5 0x00703f90 in raise () from /lib/libc.so.6
#6 0x00705678 in abort () from /lib/libc.so.6
#7 0x080d31cc in really_abort () at emacs.c:4692
#8 0x080d0bf4 in assert_failed (file=0x8290528 "regex.c", line=6357,
expr=0x8290520 "ABORT()") at emacs.c:3985
#9 0x081ed698 in re_match_2_internal (bufp=0x8373078, string1=0x0, size1=0,
string2=0xe5cb77b
"\200¡\200¢\200ã\200à\200µ\200ä\200æ\200û\200³\200µ\200¡\200¢\200é\200ï\200º\200£\200±\200´\200¶\200û\200°\200¢\200¶\200û\200¿\200¨\200ì\200ø\200¡\200¢\200ì\200ì\200½\200ò\200ô\200ú\200å\200¬\200î\200÷\200¡\200¢\200é\200ï\200º\200£\200¿\200¨\200²\200©\200ì\200ø\200µ\200è\200ö\200ª\200ã\200û\200æ\200ó\200ò\200µ\200ì\200á\200¹\200©\200ï\200î\200ä\200¿\200¸\200¨\200µ\200¼\200»\200ò\200×\200¨\200ì\200â\200å\200à\200ñ\200µ\200¡\200£\200í\200õ\200à\200ï\200ê\200¦\200ê\200ú\200¿\200î\200¾\200\200ñ\200é"...,
size2=5493, pos=0,
regs=0x8374184, stop=5493, lispobj=188884368, lispbuf=0xb422590,
scache=0xa3fc270) at regex.c:6357
#10 0x081e898b in sys_re_search_2 (bufp=0x8373078,
str1=0xe5cb77b
"\200¡\200¢\200ã\200à\200µ\200ä\200æ\200û\200³\200µ\200¡\200¢\200é\200ï\200º\200£\200±\200´\200¶\200û\200°\200¢\200¶\200û\200¿\200¨\200ì\200ø\200¡\200¢\200ì\200ì\200½\200ò\200ô\200ú\200å\200¬\200î\200÷\200¡\200¢\200é\200ï\200º\200£\200¿\200¨\200²\200©\200ì\200ø\200µ\200è\200ö\200ª\200ã\200û\200æ\200ó\200ò\200µ\200ì\200á\200¹\200©\200ï\200î\200ä\200¿\200¸\200¨\200µ\200¼\200»\200ò\200×\200¨\200ì\200â\200å\200à\200ñ\200µ\200¡\200£\200í\200õ\200à\200ï\200ê\200¦\200ê\200ú\200¿\200î\200¾\200\200ñ\200é"...,
size1=5493, str2=0xe5cccf0 "",
size2=0, startpos=0, range=5493, regs=0x8374184, stop=5493,
lispobj=188884368, lispbuf=0xb422590, scache=0xa3fc270) at regex.c:4573
#11 0x081f02bc in search_buffer (buf=0xb422590, string=157648688, charbpos=1,
buflim=2804, n=1, RE=1, trt=149365920, inverse_trt=149364736, posix=0)
at search.c:1304
#12 0x081efeae in search_command (string=157648688, limit=147710024,
noerror=147708904, count=147710024, buffer=147710024, direction=1, RE=1,
posix=0) at search.c:1155
#13 0x081f1f85 in Fre_search_forward (regexp=157648688, limit=147710024,
noerror=147708904, count=147710024, buffer=147710024) at search.c:2283
#14 0x080da223 in Ffuncall (nargs=4, args=0xbfeab744) at eval.c:3890
#15 0x080989d9 in execute_optimized_program (
program=0x8dbd320
"\212\016,\016-\016.ÆÇÈÉÊ!ÉË!Æ\035\036/\0361\036'\034\036(\036.\036-\036,ÌÍ!\210\t§«\006\tÎV«\005ÏÐ!\210\0161q\210\0162ѱ\002\210e\025Ò\rd\"\210\rb\210Ó\016,ÆÔ#«\tÕÑÆÔ#\210ªñ\rb\210Ó\016-ÆÔ#«\tÕÑÆÔ#\210ªñ\rb\210Ó\016.ÆÔ#«\tÕÈÆÔ#\210ªñÖÆ\rd#\210\rb\210×Ñ!«\aØÙ!\210ªö\v«bÇ\211\0163Æ\0164Æ\036)\036*\0360\036+\030\032\016+@\211\0260«\031\016+A\026+\rb\210ÓÚ\0160ÛQÆÔ#«æ\nT\022ªñÜ\020\v"...,
stack_depth=10, constants_data=0x8d7860c) at bytecode.c:862
--karl
================================================================
System Info to help track down your bug:
---------------------------------------
uname -a: Linux
mesquite.charcoal.com 2.6.13-1.1526_FC4.karl #1 SMP Thu Oct 6 11:10:23 EDT
2005 i686 athlon i386 GNU/Linux
./configure '--with-pop' '--enable-mule'
'--disable-error-checking' '--disable-debug'
'--with-ipv6-cname=no' '--enable-sound=native,esd'
'--enable-memory-usage-stats' '--enable-dialogs=athena'
'--enable-widgets=athena' '--with-athena=3d' '--with-xface'
'CC=/usr/bin/gcc'
XEmacs 21.5-b25 "eggplant" configured for `i686-pc-linux'.
Compilation Environment and Installation Defaults:
Source code location: /usr/src/Packages/xemacs/xemacs-21.5.25
Installation prefix: /usr/local
Operating system description file: `s/linux.h'
Machine description file: `m/intel386.h'
Compiler version: gcc (GCC) 4.0.2 20051125 (Red Hat 4.0.2-8)
- GCC specs file: specs.
- Compiler command: /usr/bin/gcc -Wall -Wno-switch -Wundef
-Wsign-compare -Wno-char-subscripts -Wpacked -Wunused-parameter -g
libc version: glibc-2.3.5-10.3
Relocating allocator for buffers: no
GNU version of malloc: yes
- Using Doug Lea's new malloc from the GNU C Library.
Window System:
Compiling in support for the X window system:
- X Windows headers location: /usr/X11R6/include
- X Windows libraries location: /usr/X11R6/lib
- Handling WM_COMMAND properly.
Compiling in support for the Athena widget set:
- Athena headers location: X11/Xaw3d
- Athena library to link: Xaw3d
Using Lucid menubars.
Using Lucid scrollbars.
Using Athena dialog boxes.
Using Athena native widgets.
TTY:
Compiling in support for ncurses.
Compiling in support for GPM (General Purpose Mouse).
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).
Compiling in support for ESD (Enlightened Sound Daemon).
Databases:
Compiling in support for Berkeley database.
Compiling in support for LDAP.
Compiling in support for PostgreSQL.
- Using PostgreSQL header file: libpq-fe.h
- Using PostgreSQL V7 bindings.
Internationalization:
Compiling in support for Mule (multi-lingual Emacs).
Compiling in support for XIM (X11R5+ I18N input method).
- Using raw Xlib to provide XIM support.
Mail:
Compiling in support for POP mail retrieval.
Compiling in support for "file" mail spool file locking method.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.
Using the new GC algorithms.
WARNING: ---------------------------------------------------------
WARNING: The new algorithms are experimental. They are enabled by
WARNING: default for this release. Use `--disable-kkcc' to
WARNING: turn it off.
WARNING: ---------------------------------------------------------
Using the new allocator.
WARNING: ---------------------------------------------------------
WARNING: The new allocator is experimental. It is enabled by
WARNING: default for this release. Use `--disable-mc-alloc' to
WARNING: turn it off.
WARNING: ---------------------------------------------------------
Using the new portable dumper.
Installed XEmacs Packages:
-------------------------
(zenirc ver: 1.16 upstream: 2.112)
(xwem ver: 1.21 upstream: lg(a)xwem.org--2005/xwem--main--2.1--versionfix-1)
(xslt-process ver: 1.11 upstream: 1.2.1)
(xslide ver: 1.09 upstream: 0.2.2)
(xlib ver: 1.14 upstream: lg(a)xwem.org--2005/xlib--main--2.1--version-0)
(xetla ver: 1.0 upstream: steve(a)eicq.org--2005/xetla--main--1.0--version-0)
(xemacs-devel ver: 1.7 upstream: No-Upstream-Ver)
(xemacs-base ver: 1.97 upstream: No-Upstream-Ver)
(x-symbol ver: 1.1 upstream: 4.5.1)
(w3 ver: 1.31 upstream: 4.0pre47)
(vm ver: 7.22 upstream: 7.17)
(viper ver: 1.4 upstream: 3.09)
(view-process ver: 1.13 upstream: 2.4)
(vhdl ver: 1.2 upstream: 3.33.2)
(vc-cc ver: 1.22 upstream: No-Upstream-Ver)
(vc ver: 1.41 upstream: No-Upstream-Ver)
(tramp ver: 1.25 upstream: 2.0.49)
(tpu ver: 1.14 upstream: 4.2X)
(tooltalk ver: 1.15 upstream: No-Upstream-Ver)
(tm ver: 1.38 upstream: No-Upstream-Ver)
(time ver: 1.14 upstream: 1.17)
(textools ver: 1.15 upstream: No-Upstream-Ver)
(text-modes ver: 1.88 upstream: No-Upstream-Ver)
(texinfo ver: 1.29 upstream: No-Upstream-Ver)
(supercite ver: 1.2 upstream: 3.55x3)
(strokes ver: 1.1 upstream: No-Upstream-Ver)
(speedbar ver: 1.27 upstream: 0.14beta4)
(sounds-wav ver: 1.12 upstream: No-Upstream-Ver)
(sounds-au ver: 1.12 upstream: No-Upstream-Ver)
(sml-mode ver: 0.11 upstream: 3.9.5)
(slider ver: 1.15 upstream: 0.3x1)
(sieve ver: 1.17 upstream: No-Upstream-Ver)
(sh-script ver: 1.18 upstream: 2.0e)
(sgml ver: 1.11 upstream: No-Upstream-Ver)
(semantic ver: 1.19 upstream: 1.4.2)
(scheme ver: 1.14 upstream: No-Upstream-Ver)
(sasl ver: 1.15 upstream: 1.14.4)
(ruby-modes ver: 1.02 upstream: 1.6.8)
(rmail ver: 1.14 upstream: No-Upstream-Ver)
(riece ver: 1.19 upstream: 1.0.8)
(reftex ver: 1.34 upstream: 4.21)
(re-builder ver: 1.02 upstream: 1.20)
(python-modes ver: 1.06 upstream: No-Upstream-Ver)
(psgml-dtds ver: 1.03 upstream: No-Upstream-Ver)
(psgml ver: 1.44 upstream: 1.3.1)
(ps-print ver: 1.11 upstream: 6.5.6)
(prog-modes ver: 2.05 upstream: No-Upstream-Ver)
(pgg ver: 1.05 upstream: 0.1)
(perl-modes ver: 1.08 upstream: No-Upstream-Ver)
(pcomplete ver: 1.04 upstream: 1.1.6)
(pcl-cvs ver: 1.66 upstream: R-2_9_9)
(pc ver: 1.28 upstream: No-Upstream-Ver)
(os-utils ver: 1.36 upstream: No-Upstream-Ver)
(oo-browser ver: 1.04 upstream: 4.08)
(ocaml ver: 0.05 upstream: 3.06)
(net-utils ver: 1.46 upstream: N/A)
(mmm-mode ver: 1.02 upstream: 0.4.7)
(misc-games ver: 1.18 upstream: No-Upstream-Ver)
(mine ver: 1.16 upstream: 1.9)
(mh-e ver: 1.29 upstream: 7.4.2)
(mew ver: 1.19 upstream: 1.94.2)
(mailcrypt ver: 2.14 upstream: 3.5.8)
(mail-lib ver: 1.73 upstream: No-Upstream-Ver)
(liece ver: 1.14 upstream: 1.4.9)
(jde ver: 1.48 upstream: 2.3.2)
(ispell ver: 1.31 upstream: 3.6)
(ilisp ver: 1.33 upstream: 5.12.0)
(igrep ver: 1.13 upstream: 2.111)
(idlwave ver: 1.32 upstream: 5.1)
(ibuffer ver: 1.09 upstream: No-Upstream-Ver)
(hyperbole ver: 1.16 upstream: 4.18)
(hm--html-menus ver: 1.23 upstream: 5.9)
(haskell-mode ver: 1.07 upstream: 1.45)
(gnus ver: 1.85 upstream: 5.10.7)
(gnats ver: 1.17 upstream: 3.101)
(general-docs ver: 1.04 upstream: No-Upstream-Ver)
(games ver: 1.15 upstream: 1.04)
(fsf-compat ver: 1.15 upstream: No-Upstream-Ver)
(frame-icon ver: 1.11 upstream: No-Upstream-Ver)
(fortran-modes ver: 1.04 upstream: No-Upstream-Ver)
(forms ver: 1.15 upstream: 2.37)
(footnote ver: 1.16 upstream: 0.18x)
(eudc ver: 1.39 upstream: 1.32)
(eterm ver: 1.17 upstream: No-Upstream-Ver)
(ess ver: 1.16 upstream: 5.2.7)
(eshell ver: 1.1 upstream: 2.4.1)
(escreen ver: 1.01 upstream: 1.16)
(erc ver: 0.17 upstream: Version 5.0 Revision: 1.757)
(emerge ver: 1.11 upstream: No-Upstream-Ver)
(elib ver: 1.11 upstream: 1.0)
(eieio ver: 1.05 upstream: 0.17)
(efs ver: 1.33 upstream: 1.23)
(edt ver: 1.13 upstream: No-Upstream-Ver)
(edit-utils ver: 2.24 upstream: No-Upstream-Ver)
(ediff ver: 1.53 upstream: 2.75)
(edebug ver: 1.21 upstream: No-Upstream-Ver)
(ecrypto ver: 0.19 upstream: 2.0)
(ecb ver: 1.22 upstream: 2.31)
(docbookide ver: 0.07000000000000001 upstream: 0.1)
(dired ver: 1.17 upstream: 7.13)
(dictionary ver: 1.16 upstream: 1.8)
(debug ver: 1.17 upstream: No-Upstream-Ver)
(crisp ver: 1.15 upstream: 1.34)
(cookie ver: 1.15 upstream: No-Upstream-Ver)
(clearcase ver: 1.1 upstream: /main/laptop/165)
(cc-mode ver: 1.45 upstream: 5.30.10)
(calendar ver: 1.23 upstream: No-Upstream-Ver)
(calc ver: 1.26 upstream: 2.02fX3)
(c-support ver: 1.21 upstream: No-Upstream-Ver)
(build ver: 1.14 upstream: 2.02)
(bbdb ver: 1.26 upstream: 2.34)
(auctex ver: 1.46 upstream: 11.55)
(apel ver: 1.29 upstream: 10.2)
(ada ver: 1.14 upstream: 2.27)
(Sun ver: 1.16 upstream: No-Upstream-Ver)
(skk ver: 1.23 upstream: 10.62a)
(mule-ucs ver: 1.14 upstream: 0.84)
(mule-base ver: 1.47 upstream: No-Upstream-Ver)
(lookup ver: 1.15 upstream: 1.0)
(locale ver: 1.22 upstream: No-Upstream-Ver)
(leim ver: 1.22 upstream: No-Upstream-Ver)
(latin-unity ver: 1.15 upstream: 1.15)
(latin-euro-standards ver: 1.07 upstream: 1.07)
(egg-its ver: 1.27 upstream: No-Upstream-Ver)
(edict ver: 1.16 upstream: 0.9.9)
Installed Modules:
-----------------
Features:
--------
(xemacsbug shadow view-less view info font-lock sh-script skeleton gnus-fun
expect w3m-form w3m browse-url w3m-hist w3m-xmas path-util w3m-ccl
pccl pccl-20 w3m-favicon w3m-image w3m-proc w3m-util poem poem-xm pces
pces-xfc pces-20 broken pces-xm poe-xemacs timer overlay poe pym
static apel-ver product nndoc pp gnus-dup annotations flow-fill
bbdb-gui gnus-picon sort gnus-cite smiley gnus-async gnus-bcklg
gnus-salt gnus-ml disp-table parse-time edmacro byte-optimize bytecomp
byte-compile nnml bbdb-gnus bbdb-snarf mail-extr message-x bbdb-hooks
bbdb-com bbdb timezone gnus-demon message-multiple-frames gnus-topic
gnus-delay gnus-draft gnus-agent gnus-srvr gnus-score score-mode
nnvirtual nntp gnus-cache gnus-msg gnus-art regexp-opt mm-uu mml2015
pgg pgg-parse pgg-def mm-view nndraft nnmh messkeyw nnir nnimap imap
gnus-sum gnus-group gnus-undo nnmail mail-source format-spec nnoo
gnus-start gnus-spec gnus-int gnus-range message ecomplete mml mml-sec
mml-smime smime password smime-ldap ldap dig mm-decode mm-bodies
mm-encode mailcap lpr mail-parse rfc2045 rfc2231 rfc2047 qp ietf-drums
mail-abbrevs sendmail gmm-utils mailheader canlock sha1 executable
hex-util gnus-win gnus gnus-ems gnus-xmas messagexmas nnheader
nnheaderxm timer-funcs gnus-util netrc time-date mail-utils mm-util
mail-prsvr wid-edit gnuserv advice advice-preload x-compose flyspell
ispell mailcrypt rfc822 comint ring ffap time cus-face blink-cursor
zenirc-autoloads xwem-autoloads xslt-process-autoloads
xslide-autoloads xlib-autoloads xetla-autoloads xemacs-devel-autoloads
xemacs-base-autoloads x-symbol-autoloads w3m-autoloads w3m-load
w3-autoloads vm-autoloads viper-autoloads view-process-autoloads
vhdl-autoloads vc-cc-autoloads vc-autoloads tramp-autoloads
tpu-autoloads tooltalk-autoloads tm-autoloads time-autoloads
textools-autoloads text-modes-autoloads texinfo-autoloads
supercite-autoloads strokes-autoloads speedbar-autoloads
sounds-wav-autoloads sounds-au-autoloads sml-mode-autoloads
slider-autoloads sieve-autoloads sh-script-autoloads sgml-autoloads
semantic-autoloads scheme-autoloads sasl-autoloads
ruby-modes-autoloads rmail-autoloads riece-autoloads reftex-autoloads
re-builder-autoloads python-modes-autoloads psgml-dtds-autoloads
psgml-autoloads ps-print-autoloads prog-modes-autoloads pgg-autoloads
perl-modes-autoloads pcomplete-autoloads pcl-cvs-autoloads
pc-autoloads os-utils-autoloads oo-browser-autoloads ocaml-autoloads
net-utils-autoloads mmm-mode-autoloads misc-games-autoloads
mine-autoloads mh-e-autoloads mew-autoloads mailcrypt-autoloads
mail-lib-autoloads liece-autoloads jde-autoloads ispell-autoloads
ilisp-autoloads igrep-autoloads idlwave-autoloads ibuffer-autoloads
hyperbole-autoloads hm--html-menus-autoloads haskell-mode-autoloads
gnus-autoloads gnats-autoloads general-docs-autoloads games-autoloads
fsf-compat-autoloads frame-icon-autoloads fortran-modes-autoloads
forms-autoloads footnote-autoloads eudc-autoloads eterm-autoloads
ess-autoloads eshell-autoloads escreen-autoloads erc-autoloads
emerge-autoloads elib-autoloads eieio-autoloads efs-autoloads
edt-autoloads edit-utils-autoloads ediff-autoloads edebug-autoloads
ecrypto-autoloads ecb-autoloads docbookide-autoloads dired-autoloads
dictionary-autoloads debug-autoloads crisp-autoloads cookie-autoloads
clearcase-autoloads cc-mode-autoloads calendar-autoloads
calc-autoloads c-support-autoloads build-autoloads bbdb-autoloads
auctex-autoloads apel-autoloads ada-autoloads Sun-autoloads
skk-autoloads mule-ucs-autoloads mule-base-autoloads lookup-autoloads
locale-autoloads leim-autoloads latin-unity-autoloads
latin-euro-standards-autoloads egg-its-autoloads edict-autoloads
modules-autoloads mule-autoloads auto-autoloads loadhist rsz-minibuf
auto-show fontl-hooks canna-leim tibetan lao devanagari indian
slovenian czech romanian ccl code-cmds gutter-items menubar-items
x-menubar mode-motion mouse behavior itimer auto-save lisp-mode
easymenu easy-mmode iso8859-1 page buff-menu lib-complete cus-file
derived newcomment env text-props fontconfig frame obsolete cus-start
custom widget cl-extra cl cl-19 packages backquote unicode
lucid-scrollbars cut-buffer lucid-menubars athena-dialogs x
c-balloon-help tty-frames tty toolbar esd-sound native-sound scrollbar
unix-processes multicast network-streams subprocesses modules
menu-accelerator-support menubar berkeley-db md5 xemacs xim mule
gutter tiff png gif jpeg xface xpm xbm lisp-float-type file-coding
linux dialog devices window-system base64)