You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Glenn Pavlovic <gp...@hughes.net> on 2007/04/13 01:42:16 UTC

bugreport: test suite fails to recognize when the server is running

-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:

When starting the test suite the server is not recognized as being ready.
Note that I am building this in a chroot jail for auditing purposes.

JAILED:root@Adrigale:make test
<directory list removed>
/usr/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /usr/local/src/modperl-2.0/t/TEST -clean
APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= 
APACHE_TEST_USER= APACHE_TEST_APXS= \
/usr/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -bugreport -verbose=0
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /usr/local/src/modperl-2.0/t/TEST 
-bugreport -verbose=0
[warning] root mode: changing the files ownership to 'nobody' (99:99)
[warning] testing whether 'nobody' is able to -rwx 
/usr/local/src/modperl-2.0/t
"/usr/bin/perl" -Mlib=/usr/local/src/modperl-2.0/Apache-Test/lib 
-MApache::TestRun -e 'eval { Apache::TestRun::run_root_fs_test(99, 99, 
q[/usr/local/src/modperl-2.0/t]) }';


[warning] result: OK
[warning] the client side drops 'root' permissions and becomes 'nobody'
/usr/sbin/httpd  -d /usr/local/src/modperl-2.0/t -f 
/usr/local/src/modperl-2.0/t/conf/httpd.conf -D APACHE2
using Apache/2.2.4 (prefork MPM)

waiting 120 seconds for server to start: .[Thu Apr 12 22:54:31 2007] 
[info] 6 Apache2:: modules loaded
[Thu Apr 12 22:54:31 2007] [info] 0 APR:: modules loaded
[Thu Apr 12 22:54:31 2007] [info] base server + 30 vhosts ready to run tests
..[  error] Failed to find a config file to save the custom configuration in
......................................................................................................................
waiting 120 seconds for server to start: not ok
[  error] giving up after 121 secs. If you think that your system
is slow or overloaded try again with a longer timeout value.
by setting the environment variable APACHE_TEST_STARTUP_TIMEOUT
to a high value (e.g. 420) and repeat the last command.

[  error] server failed to start! (please examine t/logs/error_log)
+--------------------------------------------------------+
| Please file a bug report: http://perl.apache.org/bugs/ |
+--------------------------------------------------------+
make: *** [run_tests] Error 1
JAILED:root@Adrigale:~/src/modperl-2.0# cat t/logs/error_log
[Thu Apr 12 22:54:34 2007] [info] mod_unique_id: using ip addr 192.168.0.102
END in modperl_extra.pl, pid=4696
[Thu Apr 12 22:54:36 2007] [crit] (13)Permission denied: apr_proc_detach 
failed
Pre-configuration failed

2. Used Components and their Configuration:

*** mod_perl version 2.000004

*** using /usr/local/src/modperl-2.0/lib/Apache2/BuildConfig.pm

*** Makefile.PL options:
  MP_APR_LIB     => aprext
  MP_APXS        => /usr/sbin/apxs
  MP_COMPAT_1X   => 1
  MP_GENERATE_XS => 1
  MP_LIBNAME     => mod_perl
  MP_USE_DSO     => 1


*** /usr/sbin/httpd -V
Server version: Apache/2.2.4 (Unix)
Server built:   Apr  4 2007 00:13:35
Server's Module Magic Number: 20051115:4
Server loaded:  APR 1.2.8, APR-Util 1.2.8
Compiled using: APR 1.2.8, APR-Util 1.2.8
Architecture:   32-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
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 DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/usr"
 -D SUEXEC_BIN="/usr/bin/suexec"
 -D DEFAULT_PIDLOG="/var/run/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="/var/run/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="/etc/apache/mime.types"
 -D SERVER_CONFIG_FILE="/etc/apache/httpd.conf"

*** /usr/bin/ldd /usr/sbin/httpd
    libm.so.6 => /lib/libm.so.6 (0x40019000)
    libaprutil.so.0 => /usr/lib/libaprutil.so.0 (0x4003b000)
    libexpat.so.0 => /usr/lib/libexpat.so.0 (0x4004f000)
    libapr.so.0 => /usr/lib/libapr.so.0 (0x4006c000)
    librt.so.1 => /lib/librt.so.1 (0x4008d000)
    libcrypt.so.1 => /lib/libcrypt.so.1 (0x4009f000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x400cd000)
    libdl.so.2 => /lib/libdl.so.2 (0x400e4000)
    libc.so.6 => /lib/libc.so.6 (0x400e8000)
    /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


*** (apr|apu)-config linking info

 -L/usr/lib -laprutil -lexpat -L/usr/lib
 -L/usr/lib -lapr -lrt -lcrypt  -lpthread -ldl



*** /usr/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
    osname=linux, osvers=2.4.33, archname=i386-linux
    uname='linux adrigale 2.4.33 #6 sun dec 10 15:27:41 pst 2006 i686 
unknown '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef 
usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion='', gccversion='2.95.3 20010315 (release)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.2.3.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.2.3'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO
  Built under linux
  Compiled at Dec 29 2006 22:05:29
  %ENV:
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /usr/lib/perl5/i386-linux
    /usr/lib/perl5
    /usr/lib/perl5/site_perl/i386-linux
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/site_perl
    .

*** Packages of interest status:

Apache2            : -
Apache2::Request   : -
CGI                : 3.15
ExtUtils::MakeMaker: 6.30
LWP                : -
mod_perl           : -
mod_perl2          : -


3. This is the core dump trace: (if you get a core dump):

  No Core Dump

This report was generated by t/REPORT on Thu Apr 12 23:03:13 2007 GMT.

-------------8<---------- End Bug Report --------------8<----------

Note: Complete the rest of the details and post this bug report to
modperl <at> perl.apache.org. To subscribe to the list send an empty
email to modperl-subscribe@perl.apache.org.


-- 
Glenn Pavlovic
Motto: I am what I choose to be, for which I make no apologies, no excuses.

String Trimmer Support Wheels
http://www.weedwheels.com


RE: bugreport: test suite fails to recognize when the server is running

Posted by Adam Prime x443 <ap...@brunico.com>.
I've seen this happen in the past when i was inadvertantly blocking
traffic to localhost with a firewall.  Might that be the issue you're
having?


-----Original Message-----
From: Glenn Pavlovic [mailto:gpavman@hughes.net] 
Sent: Thursday, April 12, 2007 7:42 PM
To: modperl@perl.apache.org
Subject: bugreport: test suite fails to recognize when the server is
running

-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:

When starting the test suite the server is not recognized as being
ready.
Note that I am building this in a chroot jail for auditing purposes.

JAILED:root@Adrigale:make test
<directory list removed>
/usr/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /usr/local/src/modperl-2.0/t/TEST
-clean
APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= 
APACHE_TEST_USER= APACHE_TEST_APXS= \
/usr/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -bugreport -verbose=0
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /usr/local/src/modperl-2.0/t/TEST 
-bugreport -verbose=0
[warning] root mode: changing the files ownership to 'nobody' (99:99)
[warning] testing whether 'nobody' is able to -rwx 
/usr/local/src/modperl-2.0/t
"/usr/bin/perl" -Mlib=/usr/local/src/modperl-2.0/Apache-Test/lib 
-MApache::TestRun -e 'eval { Apache::TestRun::run_root_fs_test(99, 99, 
q[/usr/local/src/modperl-2.0/t]) }';


[warning] result: OK
[warning] the client side drops 'root' permissions and becomes 'nobody'
/usr/sbin/httpd  -d /usr/local/src/modperl-2.0/t -f 
/usr/local/src/modperl-2.0/t/conf/httpd.conf -D APACHE2
using Apache/2.2.4 (prefork MPM)

waiting 120 seconds for server to start: .[Thu Apr 12 22:54:31 2007] 
[info] 6 Apache2:: modules loaded
[Thu Apr 12 22:54:31 2007] [info] 0 APR:: modules loaded
[Thu Apr 12 22:54:31 2007] [info] base server + 30 vhosts ready to run
tests
..[  error] Failed to find a config file to save the custom
configuration in
........................................................................
..............................................
waiting 120 seconds for server to start: not ok
[  error] giving up after 121 secs. If you think that your system
is slow or overloaded try again with a longer timeout value.
by setting the environment variable APACHE_TEST_STARTUP_TIMEOUT
to a high value (e.g. 420) and repeat the last command.

[  error] server failed to start! (please examine t/logs/error_log)
+--------------------------------------------------------+
| Please file a bug report: http://perl.apache.org/bugs/ |
+--------------------------------------------------------+
make: *** [run_tests] Error 1
JAILED:root@Adrigale:~/src/modperl-2.0# cat t/logs/error_log
[Thu Apr 12 22:54:34 2007] [info] mod_unique_id: using ip addr
192.168.0.102
END in modperl_extra.pl, pid=4696
[Thu Apr 12 22:54:36 2007] [crit] (13)Permission denied: apr_proc_detach

failed
Pre-configuration failed

2. Used Components and their Configuration:

*** mod_perl version 2.000004

*** using /usr/local/src/modperl-2.0/lib/Apache2/BuildConfig.pm

*** Makefile.PL options:
  MP_APR_LIB     => aprext
  MP_APXS        => /usr/sbin/apxs
  MP_COMPAT_1X   => 1
  MP_GENERATE_XS => 1
  MP_LIBNAME     => mod_perl
  MP_USE_DSO     => 1


*** /usr/sbin/httpd -V
Server version: Apache/2.2.4 (Unix)
Server built:   Apr  4 2007 00:13:35
Server's Module Magic Number: 20051115:4
Server loaded:  APR 1.2.8, APR-Util 1.2.8
Compiled using: APR 1.2.8, APR-Util 1.2.8
Architecture:   32-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
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 DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/usr"
 -D SUEXEC_BIN="/usr/bin/suexec"
 -D DEFAULT_PIDLOG="/var/run/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="/var/run/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="/etc/apache/mime.types"
 -D SERVER_CONFIG_FILE="/etc/apache/httpd.conf"

*** /usr/bin/ldd /usr/sbin/httpd
    libm.so.6 => /lib/libm.so.6 (0x40019000)
    libaprutil.so.0 => /usr/lib/libaprutil.so.0 (0x4003b000)
    libexpat.so.0 => /usr/lib/libexpat.so.0 (0x4004f000)
    libapr.so.0 => /usr/lib/libapr.so.0 (0x4006c000)
    librt.so.1 => /lib/librt.so.1 (0x4008d000)
    libcrypt.so.1 => /lib/libcrypt.so.1 (0x4009f000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x400cd000)
    libdl.so.2 => /lib/libdl.so.2 (0x400e4000)
    libc.so.6 => /lib/libc.so.6 (0x400e8000)
    /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


*** (apr|apu)-config linking info

 -L/usr/lib -laprutil -lexpat -L/usr/lib
 -L/usr/lib -lapr -lrt -lcrypt  -lpthread -ldl



*** /usr/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
    osname=linux, osvers=2.4.33, archname=i386-linux
    uname='linux adrigale 2.4.33 #6 sun dec 10 15:27:41 pst 2006 i686 
unknown '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef 
usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion='', gccversion='2.95.3 20010315 (release)',
gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.2.3.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.2.3'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO
  Built under linux
  Compiled at Dec 29 2006 22:05:29
  %ENV:
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /usr/lib/perl5/i386-linux
    /usr/lib/perl5
    /usr/lib/perl5/site_perl/i386-linux
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/site_perl
    .

*** Packages of interest status:

Apache2            : -
Apache2::Request   : -
CGI                : 3.15
ExtUtils::MakeMaker: 6.30
LWP                : -
mod_perl           : -
mod_perl2          : -


3. This is the core dump trace: (if you get a core dump):

  No Core Dump

This report was generated by t/REPORT on Thu Apr 12 23:03:13 2007 GMT.

-------------8<---------- End Bug Report --------------8<----------

Note: Complete the rest of the details and post this bug report to
modperl <at> perl.apache.org. To subscribe to the list send an empty
email to modperl-subscribe@perl.apache.org.


-- 
Glenn Pavlovic
Motto: I am what I choose to be, for which I make no apologies, no
excuses.

String Trimmer Support Wheels
http://www.weedwheels.com