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

[perl #23666] Core dump on big regex

From:
Steve Peters via RT
Date:
March 30, 2006 18:50
Subject:
[perl #23666] Core dump on big regex
Message ID:
rt-3.0.11-23666-131750.16.3673465351471@perl.org
> [perl-5.8.0@ton.iguana.be - Sat Aug 30 14:33:01 2003]:
> 
> 
> This is a bug report for perl from perl-5.8.0@ton.iguana.be,
> generated with the help of perlbug 1.34 running under perl v5.8.0.
> 
> 
> -----------------------------------------------------------------
> [Please enter your report here]
> 
> perl -wle '("1"x5683)=~ /^(11+)\1+$/'
> 
> works ok
> 
> perl -wle '("1"x 9973)=~ /^(11+)\1+$/'
> Segmentation fault (core dumped)
> 
> ulimit -a
> core file size (blocks)     unlimited
> data seg size (kbytes)      unlimited
> file size (blocks)          unlimited
> max locked memory (kbytes)  unlimited
> max memory size (kbytes)    unlimited
> open files                  1024
> pipe size (512 bytes)       8
> stack size (kbytes)         1048576
> cpu time (seconds)          unlimited
> max user processes          6143
> virtual memory (kbytes)     unlimited
> 

This problem has been resolved with change #27598.

steve@kirk:~/smoke/perl-current$ perl -wle '("1"x 9973)=~ /^(11+)\1+$/'
Segmentation fault
steve@kirk:~/smoke/perl-current$ ./perl -wle '("1"x 9973)=~ /^(11+)\1+$/'



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