Michael Nelson wrote: > I have two web servers carrying a light load that are encountering errors > like the following. They occur randomly but often enough to be a serious > problem. Example #2 in particular seems to repeat itself continuously > until I restart Apache. > > I have perused the mod_perl archives and some other places but haven't > seen anything that looks similar. I suspect some kind of memory problem > somewhere but I am out of ideas, short of instrumenting Perl's source > code by hand. > > Errors: > > 1) Not a CODE reference at [blah] line 482. The offending line looks > something like: > > Function ("String", "String '$self->{Blah}'"); > > 2) Undefined subroutine &FOO::BAR::BAZ called at <file> line 74. The code > that invokes &FOO::FAR::BAZ looks something like: > > eval "use FOO::BAR"; > &{"FOO::BAR::BAZ"} ($parameter); > > 3) Undefined subroutine &main:: called at blib/lib/Net/SSLeay.pm [blah > blah blah...] occurred once on Monday on the one machine that uses > Net::SSLeay. > > We are running FreeBSD 4.2, Apache 1.3.22, mod_perl 1.26, and both Perl > 5.00503 and Perl 5.6.1. Native libraries used on _both_ servers: > > - DBD::Sybase 0.93 w/ FreeTDS 0.53 to talk to SQL Server > - XML-Parser-2.29 (though typically only used once when a configuration > module is use'd for the first time). > > I would appreciate any ideas people might have on how to nail this.
the short answer test the code under -X, the long answer in the beginning of this chapter: http://perl.apache.org/guide/porting.html _____________________________________________________________________ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http://singlesheaven.com http://perl.apache.org http://perlmonth.com/