Skip Menu |
 

This queue is for tickets about the namespace-clean CPAN distribution.

Report information
The Basics
Id: 96945
Status: resolved
Priority: 0/
Queue: namespace-clean

People
Owner: Nobody in particular
Requestors: mmcclenn [...] geology.wisc.edu
Cc: ether [...] cpan.org
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.26



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>
Download (untitled) / with headers
text/plain 6.2k
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>
Subject: Re: [rt.cpan.org #96945] found a workaround
Date: Fri, 4 Jul 2014 17:14:18 -0500
To: bug-namespace-clean [...] rt.cpan.org
From: Michael McClennen <mmcclenn [...] geology.wisc.edu>
Download (untitled) / with headers
text/plain 175b
After a bit of experimentation, adding "use Sub::Identify" before "use namespace::clean" prevents this problem from occurring. I hope this helps in identifying the problem.
Download (untitled) / with headers
text/plain 237b
I completely threw away the use of Sub::Identify in an upcoming version. There won't be any further problems related to it at least. Please try https://metacpan.org/release/RIBASUSHI/namespace-clean-0.25_01 if/when time permits. Cheers!


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.