develooper Front page | perl.perl5.porters | Postings from March 2006

[perl #21940] seg fault on long input to re

From:
Steve Peters via RT
Date:
March 30, 2006 18:20
Subject:
[perl #21940] seg fault on long input to re
Message ID:
rt-3.0.11-21940-131745.19.5145710079749@perl.org
> [bethenco - Thu Apr 10 23:32:51 2003]:
> 
> 
> This is a bug report for perl from bethenco@upl.cs.wisc.edu,
> generated with the help of perlbug 1.34 running under perl v5.8.0.
> 
> 
> -----------------------------------------------------------------
> Hi,
> 
> Perl segfaults on the following one liner:
> 
> perl -e '("a b a\n" x 393) =~ /([^ \n]+\s+)+/'
> 

This has been resolved with change #27598.

steve@kirk:~/smoke/perl-current$ perl -e '("a b a\n" x 393) =~ /([^ \n]+\s+)+/'
Segmentation fault
steve@kirk:~/smoke/perl-current$ ./perl -e '("a b a\n" x 393) =~ /([^ \n]+\s+)+/'
steve@kirk:~/smoke/perl-current$ ./perl -e '("a b a\n" x 3930) =~ /([^ \n]+\s+)+/'



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