Re: Strange error calling a handler

[prev] [thread] [next] [Date index for 2004/11/16]

From: Stas Bekman
Subject: Re: Strange error calling a handler
Date: 00:37 on 16 Nov 2004
Roman Medina-Heigl Hernandez wrote:
> On Mon, 15 Nov 2004 16:04:59 -0500, you wrote:
> 
> 
>>Roman Medina-Heigl Hernandez wrote:
>>
>>>Hello,
>>>
>>>I'm using mod_perl 1.29 with Apache 1.3.31 to invoke some perl modules
>>>like ProxyRewrite.pm. When I restart apache daemon, all is working ok. But
>>>when some time passes (it could be hours, days or weeks; it's variable)
>>>the system reaches some kind of inestable state where any call to the
>>>module returns an error, as the following:
>>>
>>>[Fri Nov 12 15:32:05 2004] [error] Undefined subroutine
>>>&Apache::ProxyRewrite::handler called.\n
>>
>>Try:
>>http://perl.apache.org/docs/1.0/guide/troubleshooting.html#Undefined_subroutine__Apache__ROOT__perl__test_2epl__some_function_called_at
> 
> 
> I read it before posting to this list. But I think the error is far
> different. The URL you provided showes the line of the error. In other
> words, Apache tries to execute tool2.pl script:
> 
>   Undefined subroutine
>   &Apache::ROOT::perl::tool2::tool2_2epl::foo called at
>   /home/httpd/perl/tool2/tool2.pl line 4.
> 
> That's not my case.

Quite possible, I just wasn't sure you have read that already.

try installing:

use Carp;
$SIG{__DIE__} = \&Carp::confess;

to see who called it. But most likely it's mod_perl that does the call 
(since it's ::handler).

Have you tried to search the archives for similar errors?

Any difference if you preload this module at server startup?

Try run with 'httpd -X' to reproduce it faster.

        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Strange error calling a handler
Roman Medina-Heigl Hernandez 13:23 on 15 Nov 2004

Re: Strange error calling a handler
Stas Bekman 21:04 on 15 Nov 2004

Re: Strange error calling a handler
Roman Medina-Heigl Hernandez 00:28 on 16 Nov 2004

Re: Strange error calling a handler
Stas Bekman 00:37 on 16 Nov 2004

Re: Strange error calling a handler
Roman Medina-Heigl Hernandez 19:28 on 16 Nov 2004

Re: Strange error calling a handler
Stas Bekman 20:52 on 16 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52