Subject: | namespace::clean fails in debug mode on perl 5.12.4 |
Date: | Fri, 4 Jul 2014 16:06:12 -0500 |
To: | bug-namespace-clean [...] rt.cpan.org |
From: | Michael McClennen <mmcclenn [...] geology.wisc.edu> |
Hello,
I just encountered a bug when using namespace::clean under perl 5.12.4 with the -d flag. Following is the resulting stack trace. The funny thing is that the version of Sub::Identify active on this perl installation is in fact 0.04.
-- Michael McClennen
==================================
dstest (640)$ perl -MSub::Identify -e 'print $Sub::Identify::VERSION . "\n"'
0.04
dstest (641)$ perl -d bin/dataservice.pl
Loading DB routines from perl5db.pl version 1.33
Editor support available.
Enter h or `h h' for help, or `man perldebug' for more help.
Sub::Identify 0.04 required when running under -d or equivalent: BEGIN not safe after errors--compilation aborted at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/darwin-2level/Sub/Identify.pm line 3.
at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/darwin-2level/Sub/Identify.pm line 3
require Sub/Identify.pm called at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/namespace/clean.pm line 183
eval {...} called at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/namespace/clean.pm line 183
namespace::clean::__ANON__[/Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/namespace/clean.pm:199]('around', 'CODE(0x7fe66a910340)', 'Package::Stash=HASH(0x7fe66ab3b310)', 'Package::Stash=HASH(0x7fe66aacc868)') called at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/namespace/clean.pm line 227
namespace::clean::__ANON__[/Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/namespace/clean.pm:252]('Web::DataService', 'HASH(0x7fe66a9996c0)', 'around', 'has', 'blessed', 'croak', 'finally', 'after', 'weaken', ...) called at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/namespace/clean.pm line 315
namespace::clean::__ANON__[/Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/namespace/clean.pm:316]() called at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/B/Hooks/EndOfScope/XS.pm line 26
B::Hooks::EndOfScope::XS::__ANON__[/Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/B/Hooks/EndOfScope/XS.pm:26]('HASH(0x7fe66a92ebe8)', 'ARRAY(0x7fe66a9c9548)') called at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/darwin-2level/Sub/Identify.pm line 3
eval {...} called at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/darwin-2level/Sub/Identify.pm line 3
main::BEGIN() called at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/darwin-2level/Sub/Identify.pm line 3
eval {...} called at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/darwin-2level/Sub/Identify.pm line 3
Compilation failed in require at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/namespace/clean.pm line 183.
at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/namespace/clean.pm line 183
eval {...} called at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/namespace/clean.pm line 183
namespace::clean::__ANON__[/Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/namespace/clean.pm:199]('around', 'CODE(0x7fe66a910340)', 'Package::Stash=HASH(0x7fe66ab3b310)', 'Package::Stash=HASH(0x7fe66aacc868)') called at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/namespace/clean.pm line 227
namespace::clean::__ANON__[/Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/namespace/clean.pm:252]('Web::DataService', 'HASH(0x7fe66a9996c0)', 'around', 'has', 'blessed', 'croak', 'finally', 'after', 'weaken', ...) called at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/namespace/clean.pm line 315
namespace::clean::__ANON__[/Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/namespace/clean.pm:316]() called at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/B/Hooks/EndOfScope/XS.pm line 26
B::Hooks::EndOfScope::XS::__ANON__[/Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/B/Hooks/EndOfScope/XS.pm:26]('HASH(0x7fe66a92ebe8)', 'ARRAY(0x7fe66a9c9548)') called at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/darwin-2level/Sub/Identify.pm line 726
eval {...} called at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/darwin-2level/Sub/Identify.pm line 726
main::BEGIN() called at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/darwin-2level/Sub/Identify.pm line 726
eval {...} called at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/darwin-2level/Sub/Identify.pm line 726
at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/namespace/clean.pm line 183
namespace::clean::__ANON__[/Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/namespace/clean.pm:199]('around', 'CODE(0x7fe66a910340)', 'Package::Stash=HASH(0x7fe66ab3b310)', 'Package::Stash=HASH(0x7fe66aacc868)') called at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/namespace/clean.pm line 227
namespace::clean::__ANON__[/Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/namespace/clean.pm:252]('Web::DataService', 'HASH(0x7fe66a9996c0)', 'around', 'has', 'blessed', 'croak', 'finally', 'after', 'weaken', ...) called at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/namespace/clean.pm line 315
namespace::clean::__ANON__[/Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/namespace/clean.pm:316]() called at /Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/B/Hooks/EndOfScope/XS.pm line 26
B::Hooks::EndOfScope::XS::__ANON__[/Users/mmcclenn/.perlbrew/libs/perl-5.12.4@wds1/lib/perl5/B/Hooks/EndOfScope/XS.pm:26]('HASH(0x7fe66a92ebe8)', 'ARRAY(0x7fe66a9c9548)') called at /Users/mmcclenn/Sites/dstest/lib/Web/DataService.pm line 726
eval {...} called at /Users/mmcclenn/Sites/dstest/lib/Web/DataService.pm line 726
main::BEGIN() called at /Users/mmcclenn/Sites/dstest/lib/Web/DataService.pm line 726
eval {...} called at /Users/mmcclenn/Sites/dstest/lib/Web/DataService.pm line 726
Compilation failed in require at bin/dataservice.pl line 24.
at bin/dataservice.pl line 24
main::BEGIN() called at /Users/mmcclenn/Sites/dstest/lib/Web/DataService.pm line 24
eval {...} called at /Users/mmcclenn/Sites/dstest/lib/Web/DataService.pm line 24
BEGIN failed--compilation aborted at bin/dataservice.pl line 24.
at bin/dataservice.pl line 24
Debugged program terminated. Use q to quit or R to restart,
use o inhibit_exit to avoid stopping after program termination,
h q, h R or h o to get additional info.
DB<1>