-
Notifications
You must be signed in to change notification settings - Fork 576
Segfault with regexp on big match (30000 chars) #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
From [email protected]The following line cause perl to do a segmentation fault: perl -e '$i = "i" x 30000; $i =~ /(?:[^@]|@@)*/gc;' It seems the limit is arround 27000 characters and depend on the Perl Info
|
From [Unknown Contact. See original ticket]Thanks for your bug report. Version 5.6 does not core dump on: perl -e '$i = "i" x 30000; $i =~ /(?:[^@]|@@)*/gc;' I've marked the bug as closed. Cheers; Nat |
From [Unknown Contact. See original ticket]At 20:44 -0700 2000-03-20, Nathan Torkington wrote:
For completeness, follow the perl manpage's sage advice: If something strange has gone wrong with your program and perl -we '$i = "i" x 30000; $i =~ /(?:[^@]|@@)*/gc;' (I have a particularly weedy complex regular subexpression recursion |
From @vanstynIn <14550.61491.534434.775503@prometheus.frii.com>, Nathan Torkington writes: RC2 core dumps here: crypt% perl -we '$i = "i" x 30000; $i =~ /(?:[^@]|@@)*/gc;' Is this not the standard stacksize issue? Hugo Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration: Characteristics of this binary (from libperl): |
From @vanstynIn <p04310108b4fce2bf145b@[192.168.1.4]>, Dominic Dunlop writes: That won't help if you are getting core dumps due to too high a CRSRL. Hugo |
From [Unknown Contact. See original ticket]At 11:20 +0000 2000-03-21, Hugo wrote:
Quite. The warning is not triggered by all dangerously recursive The favoured fix, flattening the regexp engine, isn't on the todo |
Migrated from rt.perl.org#839 (status was 'resolved')
Searchable as RT839$
The text was updated successfully, but these errors were encountered: