From xemacs-m  Sat Feb 15 13:36:35 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id NAA05096
	for <xemacs-beta@xemacs.org>; Sat, 15 Feb 1997 13:36:33 -0600 (CST)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.5/8.8.5) id LAA27558;
	Sat, 15 Feb 1997 11:47:58 -0800
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: Possible regexp crash
References: <kigwwsaitcb.fsf@jagor.srce.hr> <m2pvy2y7qs.fsf@altair.xemacs.org> <kigiv3t7vm6.fsf@jagor.srce.hr> <m2n2t5q3z7.fsf@altair.xemacs.org> <kig914p7tti.fsf@jagor.srce.hr>
X-Url: http://www.miranova.com/%7Esteve/
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
In-Reply-To: Hrvoje Niksic's message of 15 Feb 1997 20:28:09 +0100
Mime-Version: 1.0 (generated by tm-edit 7.105)
Content-Type: text/plain; charset=US-ASCII
Date: 15 Feb 1997 11:47:57 -0800
Message-ID: <m2914pq2aa.fsf@altair.xemacs.org>
Lines: 32
X-Mailer: Gnus v5.4.12/XEmacs 20.1

Hrvoje Niksic writes:

> Steven L Baur <steve@miranova.com> writes:
>> This is perl, version 5.003 with EMBED
>> built under linux at Jul 20 1996 05:47:14
>> + suidperl security patch
>> 
>> 
>> There is a special case in the regular expression code for DEC Alpha.
>> Try fiddling with the number there to see if you can make the crash go
>> away that way.

> In Emacs or Perl?  Remember, Perl crashes on Solaris (I didn't check
> on Alpha).  OTOH, my Perl is 5.002, so...

XEmacs.  Here's the code I'm referring to in src/regex.c:
/* Roughly the maximum number of failure points on the stack.  Would be
   exactly that if always used MAX_FAILURE_SPACE each time we failed.
   This is a variable only so users of regex can assign to it; we never
   change it ourselves.  */
#if defined (MATCH_MAY_ALLOCATE)
/* 4400 was enough to cause a crash on Alpha OSF/1,
   whose default stack limit is 2mb.  */
int re_max_failures = 20000;
#else
int re_max_failures = 2000;
#endif


-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.

