develooper Front page | perl.perl5.porters | Postings from October 2003

[perl #17611] 5.6.0, 5.6.1, 5.8.0 regexp core on (\@\@|.)*

Thread Next
From:
Robert
Date:
October 14, 2003 02:52
Subject:
[perl #17611] 5.6.0, 5.6.1, 5.8.0 regexp core on (\@\@|.)*
Message ID:
rt-17611-66007.11.6248870787904@rt.perl.org
Able to replicate with 5.8.1.
 
This is a stack size issue:

[robert@x1 /tmp]$ /big/robert/perl-5.8.1/bin/perl -le '$/=undef; $_=<>;
s/(\@\@|.)*//s' regexp_corer
[robert@x1 /tmp]$ ulimit -s 8192 
[robert@x1 /tmp]$ /big/robert/perl-5.8.1/bin/perl -le '$/=undef; $_=<>;
s/(\@\@|.)*//s' regexp_corer
Segmentation fault

(The regex causes the engine to recurse in S_regmatch a _lot_, and kaboom.)

Closing ticket, because I don't think there's anything perl can do about
this.

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