Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

perl -d chokes in namespace-clean ...

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


kiffin.gish at planet

May 27, 2009, 4:14 AM

Post #1 of 3 (453 views)
Permalink
perl -d chokes in namespace-clean ...

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



_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


drbean at freeshell

May 27, 2009, 9:10 PM

Post #2 of 3 (404 views)
Permalink
Re: perl -d chokes in namespace-clean ... [In reply to]

On Wed, 27 May 2009, Kiffin Gish wrote:

> 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.

> 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

The error is in man perldiag, but what it says about hard and
symbol refs I don't understand.

_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


bobtfish at bobtfish

May 28, 2009, 5:14 AM

Post #3 of 3 (404 views)
Permalink
Re: perl -d chokes in namespace-clean ... [In reply to]

Kiffin Gish wrote:
> 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.

Can you let us know what versions of B::Hooks::EndOfScope and
Variable::Magic you have installed? (perl -MVariable::Magic\ 9999)

Can you also git clone git[at]github.com:bobtfish/namespace-clean.git and
let me know if this version fixes your issues?

Cheers
t0m


_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.