darren chamberlain <[EMAIL PROTECTED]> writes:

> * Jonas Liljegren <[EMAIL PROTECTED]> [2002-05-07 11:10]:
> > I would like to ask the list for help with this mysterious error.
> > 
> 
> [-- snip --]
> 
> > I wonder there the stack backtrace comes from and I wondering a bit
> > about if the Template::Exception as_string overload creates some
> > trouble.  I haven't found a probable confess suspect in any of the
> > loaded modules.  And nothing anywhere should be able to turn a [%
> > RETURN %] to a confession.  That's not sane!!!
> 
> Is something somewhere redifining $SIG{__WARN__} to call Carp::confess?

Apache::Debug says in import() :
    require Carp;
    $SIG{__DIE__} = \&Carp::confess;

Apache::Debug could be loaded by Apache::Registry, as it says:

    Apache->module('Apache::Debug') if $Apache::Registry::Debug;


That is done then the module is loaded.  Does this means that if
anytning turns Debug on, it will stay on until something else changes
$SIG{__DIE__} ?

I will try to reset __WARN__ and __DIE__ in my handler.  I'm resetting
a bunch of other global variables, but missed those. :-)

Here's for hoping...





Where does "Uncaught exception from user code" come from?


I commented out the as_string overload in Template::Exception and got
much shorter error messages.  This seems like three points in the
programs.

Uncaught exception from user code:
        Template::Exception=ARRAY(0x945ea74) at 
/usr/local/lib/perl/5.6.1/Template/Context.pm line 460
        Template::Context::throw('Template::Context=HASH(0x89f7ea0)', 'return', '', 
'SCALAR(0x8d7af78)') called at 
/tmp/ttc/psidb1//var/www/paranormal.se/member/db/topic/view/index.ttc line 42
        eval {...} called at 
/tmp/ttc/psidb1//var/www/paranormal.se/member/db/topic/view/index.ttc line 19
        Template::Provider::__ANON__('Template::Context=HASH(0x89f7ea0)') called at 
/usr/local/lib/perl/5.6.1/Template/Document.pm line 142
        eval {...} called at /usr/local/lib/perl/5.6.1/Template/Document.pm line 140
        Template::Document::process('Template::Document=HASH(0x8eff368)', 
'Template::Context=HASH(0x89f7ea0)') called at 
/usr/local/lib/perl/5.6.1/Template/Context.pm line 279
        Template::Context::process('Template::Context=HASH(0x89f7ea0)', 
'Template::Document=HASH(0x8eff368)') called at 
/usr/local/lib/perl/5.6.1/Template/Service.pm line 90
        eval {...} called at /usr/local/lib/perl/5.6.1/Template/Service.pm line 88
        Template::Service::process('Template::Service=HASH(0x89c6a2c)', 
'member/db/topic/view/index', 'HASH(0x944cff0)') called at 
/usr/local/lib/perl/5.6.1/Template.pm line 59
        Template::process('Template=HASH(0x89c54fc)', 'member/db/topic/view/index', 
'HASH(0x944cff0)', 'Apache=SCALAR(0x8ef89ac)') called at 
/var/www/paranormal.se/cgi/Psi/Common.pm line 385
        eval {...} called at /var/www/paranormal.se/cgi/Psi/Common.pm line 385
        Psi::Common::handle_request('Apache=SCALAR(0x8ef89ac)') called at 
/var/www/paranormal.se/cgi/Psi/Handler.pm line 18
        Psi::Handler::handler('Apache=SCALAR(0x8ef89ac)') called at /dev/null line 0
        eval {...} called at /dev/null line 0



Uncaught exception from user code:
        Template::Exception=ARRAY(0x9023250) at 
/tmp/ttc/psidb1//var/www/paranormal.se/member/db/topic/view/index.ttc line 534
        Template::Provider::__ANON__('Template::Context=HASH(0x89f7ea0)') called at 
/usr/local/lib/perl/5.6.1/Template/Document.pm line 142
        eval {...} called at /usr/local/lib/perl/5.6.1/Template/Document.pm line 140
        Template::Document::process('Template::Document=HASH(0x8eff368)', 
'Template::Context=HASH(0x89f7ea0)') called at 
/usr/local/lib/perl/5.6.1/Template/Context.pm line 279
        Template::Context::process('Template::Context=HASH(0x89f7ea0)', 
'Template::Document=HASH(0x8eff368)') called at 
/usr/local/lib/perl/5.6.1/Template/Service.pm line 90
        eval {...} called at /usr/local/lib/perl/5.6.1/Template/Service.pm line 88
        Template::Service::process('Template::Service=HASH(0x89c6a2c)', 
'member/db/topic/view/index', 'HASH(0x944cff0)') called at 
/usr/local/lib/perl/5.6.1/Template.pm line 59
        Template::process('Template=HASH(0x89c54fc)', 'member/db/topic/view/index', 
'HASH(0x944cff0)', 'Apache=SCALAR(0x8ef89ac)') called at 
/var/www/paranormal.se/cgi/Psi/Common.pm line 385
        eval {...} called at /var/www/paranormal.se/cgi/Psi/Common.pm line 385
        Psi::Common::handle_request('Apache=SCALAR(0x8ef89ac)') called at 
/var/www/paranormal.se/cgi/Psi/Handler.pm line 18
        Psi::Handler::handler('Apache=SCALAR(0x8ef89ac)') called at /dev/null line 0
        eval {...} called at /dev/null line 0



Uncaught exception from user code:
        Template::Exception=ARRAY(0x9459d34) at 
/usr/local/lib/perl/5.6.1/Template/Document.pm line 147
        Template::Document::process('Template::Document=HASH(0x8eff368)', 
'Template::Context=HASH(0x89f7ea0)') called at 
/usr/local/lib/perl/5.6.1/Template/Context.pm line 279
        Template::Context::process('Template::Context=HASH(0x89f7ea0)', 
'Template::Document=HASH(0x8eff368)') called at 
/usr/local/lib/perl/5.6.1/Template/Service.pm line 90
        eval {...} called at /usr/local/lib/perl/5.6.1/Template/Service.pm line 88
        Template::Service::process('Template::Service=HASH(0x89c6a2c)', 
'member/db/topic/view/index', 'HASH(0x944cff0)') called at 
/usr/local/lib/perl/5.6.1/Template.pm line 59
        Template::process('Template=HASH(0x89c54fc)', 'member/db/topic/view/index', 
'HASH(0x944cff0)', 'Apache=SCALAR(0x8ef89ac)') called at 
/var/www/paranormal.se/cgi/Psi/Common.pm line 385
        eval {...} called at /var/www/paranormal.se/cgi/Psi/Common.pm line 385
        Psi::Common::handle_request('Apache=SCALAR(0x8ef89ac)') called at 
/var/www/paranormal.se/cgi/Psi/Handler.pm line 18
        Psi::Handler::handler('Apache=SCALAR(0x8ef89ac)') called at /dev/null line 0
        eval {...} called at /dev/null line 0


-- 
/ Jonas  -  http://jonas.liljegren.org/myself/en/index.html


Reply via email to