From xemacs-m  Mon Feb 17 08:20:53 1997
Received: from portofix.ida.liu.se (portofix.ida.liu.se [130.236.177.25])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id IAA20179
	for <xemacs-beta@xemacs.org>; Mon, 17 Feb 1997 08:20:50 -0600 (CST)
Received: from sen2.ida.liu.se (sen2.ida.liu.se [130.236.176.112]) by portofix.ida.liu.se (8.8.3/8.8.3) with SMTP id PAA18262 for <xemacs-beta@xemacs.org>; Mon, 17 Feb 1997 15:20:43 +0100 (MET)
Received: by sen2.ida.liu.se (SMI-8.6/ida.slave-V1.0b6d6S2)
	id PAA09907; Mon, 17 Feb 1997 15:20:42 +0100
Date: Mon, 17 Feb 1997 15:20:42 +0100
Message-Id: <199702171420.PAA09907@sen2.ida.liu.se>
From: David Byers <davby@ida.liu.se>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
To: xemacs-beta@xemacs.org
Subject: Recipe for crash in regexp code
X-Face: (@~#v$c[GP"T}a;|MU<%Dpm5*6yv"NR|7k;uk8MAISFxdZ(Og$C{u(j"9X7v$qonp}SKfhT
 g|5[Pu~/3F7XQEk70gK'4z%1R%%gg7]}=>/jD`qcBeHDgo&HS,^S!&.zoTSxh<>-O6EB?SSy96&m37
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by xemacs.org id IAA20180

in XEmacs 20.0 [Lucid] (sparc-sun-solaris2.5, Mule) of Mon Feb 10 1997
on sen3.ida.liu.se:

I do

    xemacs -q -l ./xemacs-regexp.el

where xemacs-regexp.el contains the following line

    (string-match "\\(\\s-\\|$\\)" "")

consistently generates a core dump. I haven't tried it in the 20.1
och 19.15 betas.

--
David Byers.


C backtrace from GDB follows.

#0  0xef1f4140 in _end ()
#1  0x6c8f4 in fatal_error_signal (sig=11) at emacs.c:200
#2  0xef1b7da0 in _end ()
#3  0xe9da8 in re_match_2_internal (bufp=0x26ea9c, string1=0x0, size1=0, 
    string2=0x42cfac "\201", size2=2, pos=1, regs=0x267838, stop=2585600)
    at buffer.h:532
#4  0xe708c in re_search_2 (bufp=0x26ea9c, string1=0x0, size1=0, 
    string2=0x42cfac "\201", size2=2, startpos=1, range=1, regs=0x267838, 
    stop=2) at regex.c:3938
#5  0xe6cd8 in re_search (bufp=0x26ea9c, string=0x42cfac "\201", size=2, 
    startpos=0, range=2, regs=0x267838) at regex.c:3770
#6  0xec39c in string_match_1 (regexp=2550428, string=808904936, 
    start=271192068, buf=0x2dca00, posix=0) at search.c:390
#7  0xec430 in Fstring_match (regexp=808904948, string=808904936, 
    start=271192068, buffer=271192068) at search.c:416
#8  0x733c8 in primitive_funcall (fn=0xec408 <Fstring_match>, nargs=4, 
    args=0xefffd938) at eval.c:3459
#9  0x73504 in funcall_subr (subr=0x25bf80, args=0xefffd938) at eval.c:3481
#10 0x72684 in Feval (form=540592108) at eval.c:3029
#11 0x73380 in primitive_funcall (fn=0x72048 <Feval>, nargs=1, args=0xefffdd64)
    at eval.c:3456
#12 0x73504 in funcall_subr (subr=0x1acdb0, args=0xefffdd64) at eval.c:3481
#13 0x72aac in funcall_recording_as (recorded_as=270192048, nargs=1, 
    args=0xefffdd60) at eval.c:3173
#14 0x72be0 in Ffuncall (nargs=2, args=0xefffdd60) at eval.c:3217
#15 0x4fbf4 in Fbyte_code (bytestr=807586960, vector=1076022492, 
    maxdepth=-268444584) at bytecode.c:418
#16 0x738e0 in funcall_lambda (fun=270716224, nargs=1, arg_vector=0xefffe130)
    at eval.c:3591
#17 0x72b88 in funcall_recording_as (recorded_as=270716224, nargs=1, 
    args=0xefffe12c) at eval.c:3189
#18 0x72be0 in Ffuncall (nargs=2, args=0xefffe12c) at eval.c:3217
#19 0x4fbf4 in Fbyte_code (bytestr=807587216, vector=1076022748, 
    maxdepth=-268443624) at bytecode.c:418
#20 0x738e0 in funcall_lambda (fun=270716464, nargs=1, arg_vector=0xefffe48c)
    at eval.c:3591
#21 0x72b88 in funcall_recording_as (recorded_as=270716464, nargs=1, 
    args=0xefffe488) at eval.c:3189
#22 0x72be0 in Ffuncall (nargs=2, args=0xefffe488) at eval.c:3217
#23 0x4fbf4 in Fbyte_code (bytestr=807586804, vector=1076022296, 
    maxdepth=-268442648) at bytecode.c:418
#24 0x738e0 in funcall_lambda (fun=270715948, nargs=0, arg_vector=0xefffe7b0)
    at eval.c:3591
#25 0x72b88 in funcall_recording_as (recorded_as=270715948, nargs=0, 
    args=0xefffe7ac) at eval.c:3189
#26 0x72be0 in Ffuncall (nargs=1, args=0xefffe7ac) at eval.c:3217
#27 0x73ee4 in apply1 (fn=270715948, arg=271192068) at eval.c:3907
#28 0x518f8 in Fcall_interactively (function=272227124, record_flag=271192068, 
    keys=271192068) at callint.c:394
#29 0x71a58 in Fcommand_execute (cmd=272227124, record=271192068, 
    keys=271192068) at eval.c:2594
#30 0x7edfc in execute_command_event (command_builder=0x2de500, 
    event=272981132) at event-stream.c:3554
#31 0x7f400 in Fdispatch_event (event=272981132) at event-stream.c:3847
#32 0x59100 in Fcommand_loop_1 () at cmdloop.c:540
#33 0x58f24 in command_loop_1 (dummy=271192068) at cmdloop.c:460
#34 0x706f0 in condition_case_1 (handlers=271192164, 
    bfun=0x58f00 <command_loop_1>, barg=271192068, hfun=0x58844 <cmd_error>, 
    harg=271192068) at eval.c:1647
#35 0x58944 in command_loop_3 () at cmdloop.c:222
#36 0x5896c in command_loop_2 (dummy=271192068) at cmdloop.c:233
#37 0x70350 in internal_catch (tag=271269836, func=0x58960 <command_loop_2>, 
    arg=271192068, threw=0x0) at eval.c:1324
#38 0x58b74 in initial_command_loop (load_me=362848) at cmdloop.c:271
#39 0x6dabc in main_1 (argc=2, argv=0xefffefc4, envp=0xefffefd0)
    at emacs.c:1466
#40 0x6e22c in main (argc=2, argv=0xefffefc4, envp=0xefffefd0) at emacs.c:1817

