You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Pete Trachy <pe...@foxcreekleather.com> on 2003/04/27 12:44:47 UTC

[mp2] gets absurdCan't fork!!! (with v 1.99_09)

A quick problem summary.  I'm trying to install mod_perl.

I run:
perl Makefile.PL MP_AP_PREFIX=/usr/local/httpd-2.0.45
MP_INST_APACHE2=1

make

When I run the make test I get "gets absurdCan't fork!!!"
when mod_perl tries to start apache.

t/TEST gives me:

mod_perl-1.99_09-dev]# t/TEST -apxs
/usr/local/httpd-2.0.45/bin/apxs
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST -apxs
'/usr/local/httpd-2.0.45/bin/apxs'
*** root mode: changing the fs ownership to 'nobody' (99:99)
/usr/local/httpd-2.0.45/bin/httpd  -d
/usr/src/mod_perl-1.99_09-dev/t -f
/usr/src/mod_perl-1.99_09-dev/t/conf/httpd.conf -DAPACHE2
using Apache/2.0.45 (prefork MPM)

waiting for server to start: .() gets absurdCan't fork!!!
server has died with status 97 (t/logs/error_log wasn't
created, start the server in the debug mode)

I start the server in debug mode:

mod_perl-1.99_09-dev]# t/TEST -debug -apxs
/usr/local/httpd-2.0.45/bin/apxs
GNU gdb Red Hat Linux (5.1-1)
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public
License, and you are
welcome to change it and/or distribute copies of it under
certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show
warranty" for details.
This GDB was configured as "i386-redhat-linux"...
[New Thread 1024 (LWP 25574)]
() gets absurdCan't fork
Program exited with code 0141.
(gdb)

t/logs/error_logs has not been created.  I mean it is
definitely empty, I checked.

The bugreport:

 perl -MApache2 -Mapache::TestReportPerl -le
'Apache::TestReportPerl->new->run'
Can't locate Apache2.pm in @INC (@INC contains:
/usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i386-linux
/usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl/5.6.0/i386-linux
/usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.6.1/i386-linux
/usr/lib/perl5/vendor_perl/5.6.1
/usr/lib/perl5/vendor_perl .).
BEGIN failed--compilation aborted.

Here are my apache compile settings (apachectl -V), I
don't know if this is useful or not:

Server version: Apache/2.0.45
Server built:   Apr  6 2003 12:00:12
Server's Module Magic Number: 20020903:0
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/usr/local/httpd-2.0.45"
 -D SUEXEC_BIN="/usr/local/httpd-2.0.45/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

I'm also using mod_php.

I'm not sure what else I would need to include for a
complete bug report.  My appologies if I am overlooking
anything.

Also I would be would like to try upgrading to the current
stable distribution of perl if somone can tell me the best
way to do that on redhat 7.something.  Should I remove my
old perl installation first?

Thanks,

Pete



Re: [mp2] gets absurdCan't fork!!! (with v 1.99_09)

Posted by Stas Bekman <st...@stason.org>.
Pete Trachy wrote:
> A quick problem summary.  I'm trying to install mod_perl.
> 
> I run:
> perl Makefile.PL MP_AP_PREFIX=/usr/local/httpd-2.0.45
> MP_INST_APACHE2=1
> 
> make
> 
> When I run the make test I get "gets absurdCan't fork!!!"
> when mod_perl tries to start apache.

I can't find any references to this error message in the perl-5.6.1, 
apache-2.0.45 or mod_perl-1.99_09 sources. Can you check whether it's php that 
spits it? Download the source and grep for 'absurd'.

> t/TEST gives me:
> 
> mod_perl-1.99_09-dev]# t/TEST -apxs
> /usr/local/httpd-2.0.45/bin/apxs
> *** setting ulimit to allow core files
> ulimit -c unlimited; t/TEST -apxs
> '/usr/local/httpd-2.0.45/bin/apxs'
> *** root mode: changing the fs ownership to 'nobody' (99:99)

What happens if you build and run the test as a user, not 'root'?

> The bugreport:
> 
>  perl -MApache2 -Mapache::TestReportPerl -le
> 'Apache::TestReportPerl->new->run'
> Can't locate Apache2.pm in @INC (@INC contains:
> /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1
> /usr/lib/perl5/site_perl/5.6.1/i386-linux
> /usr/lib/perl5/site_perl/5.6.1
> /usr/lib/perl5/site_perl/5.6.0/i386-linux
> /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/5.6.1/i386-linux
> /usr/lib/perl5/vendor_perl/5.6.1
> /usr/lib/perl5/vendor_perl .).
> BEGIN failed--compilation aborted.

this is for post-installed mod_perl, before it's installed you can run 
t/REPORT, but your report is fine, so no need to resend it.

> I'm also using mod_php.

I suspect that this is your problem. Apache::Test probably inherits loading of 
mod_php. Run:

t/TEST -conf

now edit t/conf/httpd.conf and comment out the line that loads mod_php. now 
try to run the tests:

t/TEST

did it work?

> Also I would be would like to try upgrading to the current
> stable distribution of perl if somone can tell me the best
> way to do that on redhat 7.something.  Should I remove my
> old perl installation first?

You should ask this question on the redhat support list. I haven't used RH for 
awhile, they have special tools for upgrading packages.


__________________________________________________________________
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