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
Segmentation fault with deep recursion in regex engine #7770
Comments
From @apThis is a bug report for perl from pagaltzis@gmx.de, Deep recursion the regex engine causes a segfault. While there's The condition can easily be reproduced thusly: perl -le'my $rx; $rx=qr/(??{ $rx })/; ""=~$rx' Flags: Site configuration information for perl v5.8.6: Configured by root at Sat Jan 1 19:32:19 PST 2005. Summary of my perl5 (revision 5 version 8 subversion 6) configuration: Locally applied patches: @INC for perl v5.8.6: Environment for perl v5.8.6: |
From @iabynOn Wed, Jan 26, 2005 at 10:07:17PM -0000, A. Pagaltzis wrote:
I can't really see what else Perl can do. The segfault happens when Perl -- |
The RT System itself - Status changed from 'new' to 'open' |
From @ap* Dave Mitchell via RT <perlbug-followup@perl.org> [2005-01-29 16:40]:
Isn't it possible to check before extending the stack whether
As I said I don't think there is much that perl could do to |
From @iabynOn Sat, Jan 29, 2005 at 05:18:59PM +0100, A. Pagaltzis wrote:
No. we're talking about the processor stack here, not the Perl stack. That
No, because by the time of a SIGSEGV, perl can't execute any code that -- |
From @ap* Dave Mitchell via RT <perlbug-followup@perl.org> [2005-01-29 19:14]:
Sure, but we're not talking about every conceivable scenario. Or to put this in another way: could I write a straight regular
I am well aware of that. The goal would of course be to recognise |
From @iabynOn Sat, Jan 29, 2005 at 08:33:48PM +0100, A. Pagaltzis wrote:
$ perl -e '$s = 'x' x 10000; $s =~ /(a?x)*/' -- |
@cpansprout - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#33945 (status was 'resolved')
Searchable as RT33945$
The text was updated successfully, but these errors were encountered: