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: 20:52 on 16 Nov 2004
Roman Medina-Heigl Hernandez wrote:
> On Mon, 15 Nov 2004 19:37:08 -0500, you wrote:
> 
> 
>>try installing:
>>
>>use Carp;
>>$SIG{__DIE__} = \&Carp::confess;
> 
> 
> Where? In my perl module? How could you get this to run if the module
> is not executed? (that's at least what I suspect).

startup.pl or <Perl> sections.

>>Any difference if you preload this module at server startup?
> 
> 
> How could I do this? Anyway, the module is working during days/weeks,
> so I assume it is loaded.

I said "at the server startup", e.g.:

PerlModule Foo::Bar

in httpd.conf.

>>Try run with 'httpd -X' to reproduce it faster.
> 
> 
> It's a production server. Apart from this, I cannot wait for weeks to
> try to reproduce the failure!

You should have a dev machine where you can play with it. Save the 
sequence of requests and replay them on the dev machine to reproduce the 
problem. There is a bunch of CPAN modules for doing exactly that.

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