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
Bizarre copy of ARRAY in list assignment #10687
Comments
From ghewson@wormhole.me.ukThis is a bug report for perl from ghewson@wormhole.me.uk, https://rt.cpan.org:443/Public/Bug/Display.html?id=50447 is a report on I've written a stripped-down amalgamation of the test case, written by Graeme Hewson #!/home/ghewson/perl-5-13.5/bin/perl use warnings; s1(); sub s1 { sub call_with_args { sub call_trace { sub trace my %p = ( 'x' => 'c' ); # Again, $s is not referenced, but is needed for error to occur. my $s = { # If this commented out, get "Bizarre copy of HASH" instead of "ARRAY". my $level = 0; } } Flags: Site configuration information for perl 5.13.5: Configured by ghewson at Sat Oct 2 14:03:25 BST 2010. Summary of my perl5 (revision 5 version 13 subversion 5) configuration: Locally applied patches: @INC for perl 5.13.5: Environment for perl 5.13.5: |
From @iabynOn Sun, Oct 03, 2010 at 10:13:21AM -0700, Graeme Hewson wrote:
Thanks for the report. You code does essentially the equivalent of the following: Your sample code can be reduced to my $a; f(@$a); sub f { package DB; which outputs SV = UNKNOWN(0xff) (0xa95290) at 0xa75b88 demonstrating that arg 0 of f() has been freed. This is unfortunately not realistically fixable. -- |
The RT System itself - Status changed from 'new' to 'open' |
From @autarchIs there a way to detect this and avoid the error message, at least? Is |
From ghewson@wormhole.me.ukOn Monday 04 October 2010 19:33:17 Dave Rolsky via RT wrote:
Sorry, this is outside my experience. I haven't looked at Carp 1.18 yet. |
From @jkeenanOn Mon Oct 04 08:16:28 2010, davem wrote:
But when I ran that code (Perl 5.14.2/Darwin), I got different results: $ cat 78186.pl f(@$a); sub f { $ perl 78186.pl |
From @jkeenanOn Sun Apr 22 19:14:09 2012, jkeenan wrote: But next, trying it on Linux/i386, I got similar results to davem: $ perl 78186.pl |
Migrated from rt.perl.org#78186 (status was 'open')
Searchable as RT78186$
The text was updated successfully, but these errors were encountered: