[Catalyst] perl -d chokes in namespace-clean ...

Kiffin Gish kiffin.gish at planet.nl
Wed May 27 11:14:54 GMT 2009


For some reason I cannot use the Perl debugger to debug my Catalyst
application, which normally starts up and runs just fine without the
debugger.

Here is an example of the error output generated:

----start----

kiffin at kiffin-laptop:~/opencmt $ perl -d bin/cmt_server.pl 

Loading DB routines from perl5db.pl version 1.3
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

main::(bin/cmt_server.pl:17):	my $debug             = 0;

DB<1> c
Can't use an undefined value as a symbol reference
at /usr/local/share/perl/5.10.0/namespace/clean.pm line 171.
 at /usr/local/share/perl/5.10.0/namespace/clean.pm line 171

namespace::clean::__ANON__[/usr/local/share/perl/5.10.0/namespace/clean.pm:182]('CMT::Web::Model::User', 'HASH(0x95c1e10)', 'around', 'has', 'super', 'blessed', 'confess', 'after', 'augment', ...) called at /usr/local/share/perl/5.10.0/namespace/clean.pm line 245

namespace::clean::__ANON__[/usr/local/share/perl/5.10.0/namespace/clean.pm:246]() called at /usr/local/share/perl/5.10.0/B/Hooks/EndOfScope.pm line 47

B::Hooks::EndOfScope::__ANON__[/usr/local/share/perl/5.10.0/B/Hooks/EndOfScope.pm:47]('HASH(0x9efa100)', 'ARRAY(0xac5ced8)') called at /home/kiffin/opencmt/bin/../lib/CMT/Web/Model/User.pm line 20
	eval {...} called
at /home/kiffin/opencmt/bin/../lib/CMT/Web/Model/User.pm line 20
	require CMT/Web/Model/User.pm called
at /usr/local/share/perl/5.10.0/Catalyst/Utils.pm line 278
	eval {...} called at /usr/local/share/perl/5.10.0/Catalyst/Utils.pm
line 278
	Catalyst::Utils::ensure_class_loaded('CMT::Web::Model::User',
'HASH(0xacdbb08)') called at /usr/local/share/perl/5.10.0/Catalyst.pm
line 2153
	Catalyst::setup_components('CMT::Web') called
at /usr/local/share/perl/5.10.0/Catalyst.pm line 1071
	Catalyst::setup('CMT::Web', '-Log=debug,info,warn,error,fatal') called
at /home/kiffin/opencmt/bin/../lib/CMT/Web.pm line 60
	require CMT/Web.pm called at bin/cmt_server.pl line 58
Compilation failed in require
at /usr/local/share/perl/5.10.0/Catalyst/Utils.pm line 278.
 at /usr/local/share/perl/5.10.0/Catalyst/Utils.pm line 282
	Catalyst::Utils::ensure_class_loaded('CMT::Web::Model::User',
'HASH(0xacdbb08)') called at /usr/local/share/perl/5.10.0/Catalyst.pm
line 2153
	Catalyst::setup_components('CMT::Web') called
at /usr/local/share/perl/5.10.0/Catalyst.pm line 1071
	Catalyst::setup('CMT::Web', '-Log=debug,info,warn,error,fatal') called
at /home/kiffin/opencmt/bin/../lib/CMT/Web.pm line 60
	require CMT/Web.pm called at bin/cmt_server.pl line 58
Compilation failed in require at bin/cmt_server.pl line 58.
 at bin/cmt_server.pl line 58
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> 

----end----

I've updated to the most recent versions of namespace::clean but that
doesn't help either. Searching through the code didn't reveal anything
to me at all.

Any ideas what's wrong?

-- 
Kiffin Gish <Kiffin.Gish at planet.nl>
Gouda, The Netherlands





More information about the Catalyst mailing list