Out-of-the-blue I started to see lines like this:
SV = PVIV(0x38fe3f0) at 0x3de5b80
REFCNT = 1
FLAGS = (PADMY)
IV = 0
PV = 0
These do not appear consistently and if I run the script repeatedly, with the same input, this output sometimes appear, sometimes even twice and sometimes not at all.
And every once in a while, the script hangs and displays an error message saying "Perl unfortunately stopped running."
It is obviously the output of Devel::Peek
, but none of my modules uses it and the only CPAN modules I use are Log::Log4perl,
Data::Dumper::AutoEncode (which of course uses Data::Dumper) and List::Util.
All these I use extensively and I never got this kind of output.
Box: Win-7 Pro 64 bit
Summary of my perl5 (revision 5 version 18 subversion 2) configuration:
Platform:
osname=MSWin32, osvers=6.2, archname=MSWin32-x64-multi-thread
uname='Win32 strawberry-perl 5.18.2.1 #1 Tue Jan 7 22:32:35 2014 x64'
Can someone suggest steps I could do to find the origin of this and why it happens?
Thanks
At the top of your script, add the following:
BEGIN {
use Carp qw( );
use Devel::Peek qw( );
my $old = \&Devel::Peek::Dump;
my $new = sub { Carp::cluck("Devel::Peek::Dump got called somewhere!"); &$old };
no warnings 'redefine';
*Devel::Peek::Dump = $new;
}
This needs to happen before anyone imports Dump
from Devel::Peek.
The output of Carp::cluck
will include a stack trace.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With