Closed p5pRT closed 20 years ago
Running the following script causes three instances of the message:
Attempt to free unreferenced scalar during global destruction.
to be printed out at run time. The number of messages is directly related to the number of 'x' field members (i.e. the number of uninitialized field members before the 'z' field.) The Data::Dumper version is 2.101.
package AAA;
use fields qw(x1 x2 x3 z);
sub new { my $class = shift; no strict 'refs'; my $self = bless [\%{"$class\::FIELDS"}]\, $class; $self; }
package main;
use Data::Dumper;
$A = new AAA(); $A->{'z'} = "asd";
print ::Dumper($A)\, "\n";
On Fri\, Jul 14\, 2000 at 11:32:43AM -0500\, Erik Rantapaa wrote:
This is bug report from rantapaa@fanbuzz.com generated with the help of perlbug 1.26 running under perl 5.00503.
----------------------------------------------------------------- [Please enter your report here]
Running the following script causes three instances of the message:
Attempt to free unreferenced scalar during global destruction.
to be printed out at run time. The number of messages is directly related to the number of 'x' field members (i.e. the number of uninitialized field members before the 'z' field.) The Data::Dumper version is 2.101.
This has been fixed in perl 5.6.0.
Migrated from rt.perl.org#3508 (status was 'resolved')
Searchable as RT3508$