regexp causes SIGSEGV (stack overflow?) #832
Comments
From amc@arwen.cs.berkeley.eduThe following program demonstrates a regular expression match on #!/usr/bin/perl After the length of $s reaches 32768, perl crashes. I tried getting a Is in necessary for that regular expression to require stack space By the way, the regular expression is a greatly simplified version of if ($s =~ s/^((a?x)+)//) { print $1 } My workaround is structured like this: while ($s =~ s/^((a?x){1,999})//) { print $1 } Perl Info
|
From [Unknown Contact. See original ticket]still a problem as of 8101 on both Mandrake 7.2 and Solaris 8.0 The following program demonstrates a regular expression match on #!/usr/bin/perl After the length of $s reaches 32768, perl crashes. I tried getting a Is in necessary for that regular expression to require stack space By the way, the regular expression is a greatly simplified version of if ($s =~ s/^((a?x)+)//) { print $1 } My workaround is structured like this: while ($s =~ s/^((a?x){1,999})//) { print $1 } |
From @gbarrThis is still present in 5.8.0 |
From The RT System itselfbug seems unlikely to be OS related. |
From The RT System itselfstill segfaults bleadperl DEVEL7093 |
From @schwernStill a problem in bleadperl@25129. |
From @hvds"Michael G Schwern via RT" <perlbug-followup@perl.org> wrote: Note that this bug is (correctly) marked as depending on the metabug Hugo |
From @smpeters
It appears that as of change #27598, this no longer core dumps. davem++ :) |
@smpeters - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#1760 (status was 'resolved')
Searchable as RT1760$
The text was updated successfully, but these errors were encountered: