Subject: | Core Dump when using autovivification |
Date: | Wed, 5 Oct 2016 00:52:32 +0000 |
To: | "bug-autovivification [...] rt.cpan.org" <bug-autovivification [...] rt.cpan.org> |
From: | Naga Konduri <nkonduri [...] infoblox.com> |
Hi,
I am trying use 'no autovivification' and it caused 'Segmentation Fault (Core Dumped)'
System details:
Ubuntu 16.04
Perl 5.22.1
Installed 'autovivification' module using 'cpanm'
Then executed below script:
#!/usr/bin/perl
use strict;
use Data::Dumper;
my $data;
{
no autovivification;
if ( $data->{name}{age}{place} ) { ## Expecting Autovivification does not happen here
print "Success!";
}
}
print Dumper $data;
$ perl no_autovivification.pl
Segmentation fault (core dumped)
Content of /var/log/syslog during segfault:
[1136268.273633] perl[21468]: segfault at 5 ip 00007f9bf6605813 sp 00007fff5dd412d0 error 4 in Dumper.so[7f9bf65fe000+8000]
Thanks.