The following code ends up with an error (segmentation fault):
$_ = 'x' x 1000;
/(a.|.){2,}/o;
The segmentation fault seems to happen only when the searched text ($_
in this example) is longer than 855 characters.
I know that m and n in the {m,n} qualifier are limited, but there isn't
a limitation for the length of the searched text, is there?
I'm using Perl 5.6.0 built for Darwin.
Gaji
- Re: segmentation fault when searching for repeated text Gakuji Ohtori
- Re: segmentation fault when searching for repeated text Peter N Lewis
- Re: segmentation fault when searching for repeated text Eike Grote
- Re: segmentation fault when searching for repeated ... David Wheeler
- Re: segmentation fault when searching for repeated ... Ken Williams