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 when next is followed by a goto to a label in the same block #7897
Comments
From bod@debian.orgCreated by bod@debian.orgSegfault in the following code: #!/usr/bin/perl for ($_ = 1; $_ < 3; $_++) Backtrace: #0 0x0014f48c in Perl_pp_leaveloop (my_perl=0x1fbfc0) at pp_ctl.c:1768 The problem only occurs when both the next and the goto are executed, Perl Info
|
From @iabynOn Wed, May 04, 2005 at 10:37:43AM -0000, Brendan O'Dea wrote:
Fixed by the change below. next (and redo) didn't retore the old This is demonstrated by the following code #!/usr/bin/perl -w $ perl592 /tmp/p Dave -- Change 24384 by davem@davem-splatty on 2005/05/04 14:01:40 [perl #35214] SEGV when next is followed by a goto Affected files ... ... //depot/perl/pp_ctl.c#427 edit Differences ... ==== //depot/perl/pp_ctl.c#427 (text) ==== @@ -1890,6 +1890,7 @@ POPBLOCK(cx,newpm); @@ -2149,6 +2150,7 @@ @@ -2176,6 +2178,7 @@ ==== //depot/perl/t/op/goto.t#26 (xtext) ==== @@ -7,7 +7,7 @@ -print "1..47\n"; require "test.pl"; @@ -414,5 +414,27 @@ +# [perl #35214] next and redo re-entered the loop with the wrong cop, |
The RT System itself - Status changed from 'new' to 'open' |
@iabyn - Status changed from 'open' to 'resolved' |
From @smpetersOn Wed, May 04, 2005 at 03:28:47PM +0100, Dave Mitchell wrote:
I'm guessing this is an unintentional side effect, but this fix also took Steve Peters |
From @demerphqOn 5/4/05, Steve Peters <steve@fisharerojo.org> wrote:
And there was rejoicing in the streets! :-) Yves -- |
From @smpetersOn Wed, May 04, 2005 at 10:39:59AM -0500, Steve Peters wrote:
Ignore my previous message. This fix did nothing for RT #2049. Steve Peters |
Migrated from rt.perl.org#35214 (status was 'resolved')
Searchable as RT35214$
The text was updated successfully, but these errors were encountered: