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

[perl #32465] RE on long strings causes Segmentation fault

Thread Next
From:
Steve Peters via RT
Date:
March 29, 2006 09:42
Subject:
[perl #32465] RE on long strings causes Segmentation fault
Message ID:
rt-3.0.11-32465-131661.2.58342136808906@perl.org
> [farnham@t-bug.net - Tue Nov 16 11:38:05 2004]:
> 
> 
> This is a bug report for perl from farnham@t-bug.net,
> generated with the help of perlbug 1.35 running under perl v5.8.4.
> 
> #!/usr/local/bin/perl
> 
> my $TEXT = "";
> 
> for (my $i=0;$i<11500;$i++) {
>     $TEXT .= "x";
> }
> 
> $TEXT =~ s/(x?)+//g;

This problem has been resolved with change #32465.

steve@kirk:~/smoke/perl-current$ perl rt_32465.pl
Segmentation fault
steve@kirk:~/smoke/perl-current$ ./perl rt_32465.pl
steve@kirk:~/smoke/perl-current$ cat rt_32465.pl
#!perl

my $TEXT = "";

for (my $i=0;$i<11500;$i++) {
$TEXT .= "x";
}

$TEXT =~ s/(x?)+//g;


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