On Fri, 28 May 2004, Stas Bekman wrote:

> Date: Fri, 28 May 2004 17:36:44 -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:
> [...]
> > Thanks very much. I'll do when I find some time for it. Right now I'm getting
> > segmentation faults and am going to debug it today.
>
> Sure, please take your time.
>
> >>>BTW, I am getting this in the log:
> >>>
> >>> Undefined subroutine &Apache::Connection::AUTOLOAD called.\n,
> >>>
> >>>It seems that some mod_perl module is trying to do autoload a sub that
> >>>does not exist.
> >>
> >>I don't think the mod_perl 2.0 core does. Set:
> >>
> >>use Carp;
> >>$SIG{__WARN__} = \&Carp::cluck;
> >>
> >>at the server startup and it'll tell you who called that.
> >
> >
> > No, it doesn't give me more info. The lines concerned are:
>
> 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?

I'll run Geoff's prog if this is still not enough.

Regards,


Jie

>
> >         my $content_type = $r->lookup_uri($r->uri)->content_type;
> >         if (defined $content_type) {
> >             print STDERR "content-type is: $content_type\n";
> >             return Apache::OK if $content_type =~ m:^$content_type_to_ignore/:i;
> >         }
> >
> > But I don't see anything involves autoload here.
>
> Yes, but you load other modules. The best way to isolate the faulty modules is
> to use Geoff's Apache-Test skeleton tarball, linked from here:
> http://perl.apache.org/docs/2.0/user/help/help.html#Problem_Description
>
>
> --
> __________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> mailto:[EMAIL PROTECTED] 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

Reply via email to