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
SEGV with complicated regexp and long string #7546
Comments
From zefram@fysh.orgCreated by zefram@fysh.org
use warnings; my $domain_label = qr/z(?:z*)?/; my $str = "<z\@z.z>\n" . ("x" x 170000000);
zsh% ./t0 Note the lengthy string required, 170 MB. I get this SEGV on a This problem comes from a mail handling program. The complicated regexp Resource limits: I tried changing stacksize to 16MB, in case it was overflowing, and Perl Info
|
From @rspier
This sounds like the the well known regex recursion & stack issue. -R (mental note, make this a child of the umbrella ticket for the issue) |
The RT System itself - Status changed from 'new' to 'open' |
From zefram@fysh.orgRobert via RT wrote:
I've seen the stack overflow due to backtracking records, in several -zefram |
From @smpeters
Based on the fact that this regexp is still core dumping, another issue "/home/steve/smoke/perl-current/core" is not a core dump: File format Hmmm...Hate! |
From @iabynOn Wed, Mar 29, 2006 at 09:48:41AM -0800, Steve Peters via RT wrote:
The super-linear cache thinggy seeds PL_reg_maxiter with the value For length=170E6 and index=13, this causes wrap-round to a negative -- Change 28248 by davem@davem-splatty on 2006/05/20 00:43:42 [perl #32041] SEGV with complicated regexp and long string Affected files ... ... //depot/perl/op.c#823 edit Differences ... ==== //depot/perl/op.c#823 (text) ==== ==== //depot/perl/regexec.c#423 (text) ==== @@ -3652,6 +3652,9 @@ |
@smpeters - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#32041 (status was 'resolved')
Searchable as RT32041$
The text was updated successfully, but these errors were encountered: