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: eval/die/reference to implied @_ #2040
Comments
From wolfgang.laun@chello.atCreated by Wolfgang.Laun@alcatel.atA segmentation fault occurs when die is called in an eval-wrapped Note that this does not occur if either the reference is not I condensed the example below from XML::Writer and its test.pl #! /usr/local/bin/perl -w package X; sub metimpl { sub new{ sub method(){ package main; my $x = new X( 1 ); sub try { try(); Perl Info
|
From [Unknown Contact. See original ticket]This is a bug report for perl from Wolfgang.Laun@alcatel.at, ----------------------------------------------------------------- A segmentation fault occurs when die is called in an eval-wrapped Note that this does not occur if either the reference is not I condensed the example below from XML::Writer and its test.pl #! /usr/local/bin/perl -w package X; sub metimpl { sub new{ sub method(){ package main; my $x = new X( 1 ); sub try { try(); [Please do not change anything below this line] Configured by root at Sat Mar 25 17:46:37 CET 2000. Summary of my perl5 (revision 5.0 version 6 subversion 0) Locally applied patches: --- --- |
From [Unknown Contact. See original ticket]Created by Wolfgang.Laun@alcatel.atA segmentation fault occurs when die is called in an eval-wrapped Note that this does not occur if either the reference is not I condensed the example below from XML::Writer and its test.pl #! /usr/local/bin/perl -w package X; sub metimpl { sub new{ sub method(){ package main; my $x =3D new X( 1 ); sub try { try(); Perl Info
|
From [Unknown Contact. See original ticket]
I have reduced this example to use strict; eval { g; }; With perl5.00503, this gives the expected: With perl5.6.0, this gives: If the C<sub f> line is replaced by perl5.6.0 gives: So perhaps there is something going wrong with the refcounts Robin |
From [Unknown Contact. See original ticket]
This looked like it might fix 20000603.001; but it didn't. :-( % perl5.6.0 -we 'sub f { my $r = \@_; last } sub g{ &f } { g } { g }' % perl5.6.0 -e 'sub f { my $r = \@_; last } sub g{ &f } { g } { g }' % perl5.00503 -we 'sub f { my $r = \@_; last } sub g{ &f } { g } { g }' % perl5.00503 -e 'sub f { my $r = \@_; last } sub g{ &f } { g } { g }' Robin |
From @gsarOn Fri, 09 Jun 2000 18:47:13 BST, Robin Barker wrote:
Naturally, because you're in the wrong thread. :-) http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2000-06/msg00145.html Patch welcome. Sarathy |
Migrated from rt.perl.org#3318 (status was 'resolved')
Searchable as RT3318$
The text was updated successfully, but these errors were encountered: