develooper Front page | perl.perl5.porters | Postings from January 2005

Re: [perl #33945] Segmentation fault with deep recursion in regex engine

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
January 30, 2005 06:06
Subject:
Re: [perl #33945] Segmentation fault with deep recursion in regex engine
Message ID:
20050130140711.GB2720@iabyn.com
On Sat, Jan 29, 2005 at 08:33:48PM +0100, A. Pagaltzis wrote:
> Or to put this in another way: could I write a straight regular
> expression *without* postponed expressions that is so large as to
> cause perl to segfault just as it does here?

$ perl -e '$s = 'x' x 10000; $s =~ /(a?x)*/'
Segmentation fault
$

-- 
Wesley Crusher gets beaten up by his classmates for being a smarmy git,
and consequently has a go at making some friends of his own age for a
change.
    -- Things That Never Happen in "Star Trek" #18

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About