perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: [mp2] segfaults with Apache::Reload
Date Tue, 22 Mar 2005 00:23:28 GMT
And this version:

package Apache::Handler;

use strict;
use warnings;

use Apache::Const 'OK';

sub handler {
     print "a";
     return OK;
}

1;
__END__

has a problem:

[Mon Mar 21 19:22:10 2005] [error] [client 127.0.0.1] Undefined subroutine 
called at 
/home/stas/work/modules/Apache-VMonitor-2.0/Apache-Test-skeleton-mp2/lib/Apache/Handler.pm

line 10.

Apache::Reload: Checking mtime of Apache/Handler.pm
[Mon Mar 21 19:22:11 2005] [error] [client 127.0.0.1] Attempt to free 
unreferenced scalar: SV 0x8172970, Perl interpreter: 0x821a458 at 
/home/stas/perl/5.8.6-ithread/lib/site_perl/5.8.6/i686-linux-thread-multi/Apache2/Apache/Reload.pm

line 157.

Looks like one problem due to the imported OK and another with modperl not 
knowing where the compiled handler has gone, as A-R has wiped it out.

Philippe, care to look at those?


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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message