develooper Front page | perl.perl5.porters | Postings from December 2009

Re: [perl #71046] Regex causes perl 5.8.9 to SIGSEGV

Thread Previous
From:
Vincent Pit
Date:
December 5, 2009 15:45
Subject:
Re: [perl #71046] Regex causes perl 5.8.9 to SIGSEGV
Message ID:
4B1AF0E5.4030906@profvince.com

> The following snippet will cause a stock perl 5.8.9 to crash with a
> segmentation violation:
>
> my $string = "'" . ' ' x 5000000 . "'";
> $string =~ m/\G'((\\.|[^'])*)'/gc;
>
> This was tested on my Mac OS X Snow Leopard machine using a fresh build of
> 5.8.9 I constructed myself.
>   

This was fixed in the 5.10 branch when the regexp engine was 
de-recursified. Please use the latest 5.10.1 release, as this won't be 
backported to the 5.8 branch.

Vincent.


Thread Previous


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