On Sat, 29 May 2004, Jie Gao wrote:
> Date: Sat, 29 May 2004 22:38:05 +1000 (EST)
> From: Jie Gao <[EMAIL PROTECTED]>
> To: Stas Bekman <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re: [mp2] 1.99_14: socket problem
>
>
>
>
> On Fri, 28 May 2004, Stas Bekman wrote:
>
> > Date: Fri, 28 May 2004 18:00:28 -0700
> > From: Stas Bekman <[EMAIL PROTECTED]>
> > To: Jie Gao <[EMAIL PROTECTED]>
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [mp2] 1.99_14: socket problem
> >
> > Jie Gao wrote:
> >
> > >>Oh, wait, it was an error, not a warning. You want:
> > >>
> > >> $SIG{__DIE__} = \&Carp::confess;
> > >>
> > >>then.
> > >
> > >
> > > OK, I've got this after changing to use confess:
> > >
> > > [Sat May 29 10:53:41 2004] [error] [client 129.78.64.21] Undefined subroutine
> > > &Apache::Connection::AUTOLOAD
> > > called at /usr/local/perl-5.8.4/lib/site_perl/5.8.4/Usyd/AuthCookieHandler.pm
> > > line 464.\n\teval {...} called at
> > > /usr/local/perl-5.8.4/lib/site_perl/5.8.4/Usyd/AuthCookieHandler.pm line
> > > 464\n\teval {...} called at
> > > /usr/local/perl-5.8.4/lib/site_perl/5.8.4/Usyd/AuthCookieHandler.pm line
> > > 464\n\tUsyd::AuthCookieHandler::authz('Usyd::AuthCookieHandler',
> > > 'Apache::RequestRec=SCALAR(0x4a49ec)') called at
> > > -e line 0\n\teval {...} called at -e line 0\n
> > > ---------------------------------------------------------------------------
> > >
> > > So it's Apache::RequestRec?
> >
> > No, it's Usyd::AuthCookieHandler
>
>
>
> I find I get this kind of error message with almost all accesses.
>
> I get this when accessing server-status:
>
> [Sat May 29 21:41:07 2004] [error] [client 129.xxx.xxx.100] Undefined subroutine
> main:: called at -e line
> 0\n\tApache::porting::__ANON__('Apache::RequestRec=SCALAR(0x83b32c)') called at -e
> line 0\n\teval {...} called at
> -e line 0\n
> [Sat May 29 21:41:07 2004] [error] [client 129.xxx.xxx.100] Undefined subroutine
> main:: called at -e line
> 0\n\tApache::porting::__ANON__('Apache::RequestRec=SCALAR(0x83b32c)') called at -e
> line 0\n\teval {...} called at
> -e line 0\n
> [Sat May 29 21:41:07 2004] [error] [client 129.xxx.xxx.100] Undefined subroutine
> main:: called at -e line
> 0\n\tApache::porting::__ANON__('Apache::RequestRec=SCALAR(0x83b32c)') called at -e
> line 0\n\teval {...} called at
> -e line 0\n
>
> and this while accessing perl-status:
>
> [Sat May 29 21:42:23 2004] [error] [client 129.xxx.xxx.xxx] Undefined subroutine
> main::129.xxx.xxx.xxx called at
> -e
> line 0\n, referer: http://wasm-test.auth.usyd.edu.au/perl-status?inc
> [Sat May 29 21:42:30 2004] [error] [client 129.xxx.xxx.xxx] Undefined subroutine
> main::gzip,deflate called at -e
> line 0\n, referer: http://wasm-test.auth.usyd.edu.au/perl-status?inc
> [Sat May 29 21:42:35 2004] [error] [client 129.xxx.xxx.xxx] Undefined subroutine
> main::129.xxx.xxx.xxxxx called
> at -e
> line 0\n, referer: http://wasm-test.auth.usyd.edu.au/perl-status?inc
>
> [Sat May 29 21:42:56 2004] [error] [client 129.xxx.xxx.xxx] Undefined subroutine
> main::129.xxx.xxx.21 called at
> -e
> line 0\n
> [Sat May 29 21:43:00 2004] [error] [client 129.xxx.xxx.xxx] Undefined subroutine
> main::text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,image/jpeg,image/gif;q=
> 0.2,*/*;q=0.1 called at -e line 0\n
> [Sat May 29 21:43:08 2004] [error] [client 129.xxx.xxx.xxx] Undefined subroutine
> main::129.xxx.xxx.xxx called at
> -e
> line 0\n
>
> Looks definitely like %ENV problem, although it only shows in the error_log.
I've found what caused this. The culprit seems to be this sub in my httpd.conf:
PerlCleanupHandler "sub { %ENV = () }"
I commented out and the error went away.
ModPerl::EazyLife actually causes segmentation fault.
Regards,
Jie
--
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