You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "ODELL, TODD E (SWBT)" <to...@sbc.com> on 2005/08/17 19:10:37 UTC

ModPerl 2.0.1 AIX4.3.3 - Make Test Fails to run

Mod_perl:	2.0.1
OS:		AIX4.3.3 
-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:
I'm able to compile with IBM VAC 4.4.0.3 with no problem but the make
test fails to even start the tests. It timeouts waiting for the server
to start. I unpacked and compiled as my userid, not root, and am able to
start the httpd directly as that userid. With the
APACHE_TEST_STARTUP_TIMEOUT=420 this is what is get from make test:
make test   
        cd "src/modules/perl" && make
Target "all" is up to date.
        /usr/local/bin/perl -Iblib/arch -Iblib/lib  t/TEST -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/local/bin/perl
/home/to2958/mod_perl-2.0.1/t/TEST -cle
an
        APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT=
APACHE_TEST_USER
= APACHE_TEST_APXS=  /usr/local/bin/perl -Iblib/arch -Iblib/lib  t/TEST
-bugrepo
rt -verbose=0 
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/local/bin/perl
/home/to2958/mod_perl-2.0.1/t/TEST -bug
report -verbose=0
/apacheDev/bin/httpd  -d /home/to2958/mod_perl-2.0.1/t -f
/home/to2958/mod_perl-
2.0.1/t/conf/httpd.conf -D APACHE2 -D PERL_USEITHREADS
using Apache/2.0.53 (prefork MPM)

waiting 300 seconds for server to start: ...[Wed Aug 17 11:53:31 2005]
[info] 6 
Apache2:: modules loaded
[Wed Aug 17 11:53:31 2005] [info] 0 APR:: modules loaded
[Wed Aug 17 11:53:31 2005] [info] base server + 27 vhosts ready to run
tests
........................................................................
........
........................................................................
........
........................................................................
........
..........................................................
waiting 300 seconds for server to start: not ok
[  error] giving up after 301 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. 600) 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: 1254-004 The error code from the last command is 1.


Stop.

All I could see in the t/logs/error_log:
END in modperl_extra.pl, pid=340960

Early on in the make test I can see this with ps -ef:
 to2958  340960 202184  18 11:53:28  pts/3  0:00 /apacheDev/bin/httpd -d
/home/to2958/mod_perl-2.0.1/t -f
/home/to2958/mod_perl-2.0.1/t/conf/httpd.conf -D APACHE2 -D
PERL_USEITHREADS 

This only remians for maybe 5-10 seconds while the make test waits till
the TIMEOUT is reached. Also If I run that command string ( the full
/apacheDev/bin/httpd etc. ) directly this is what I get:
[Wed Aug 17 12:02:05 2005] [info] 6 Apache2:: modules loaded
[Wed Aug 17 12:02:05 2005] [info] 0 APR:: modules loaded
[Wed Aug 17 12:02:05 2005] [info] base server + 27 vhosts ready to run
tests

Futhermore if I drop into the ModPerl-Registry and run make test it runs
fine.

It seems almost like something is missing in the main make test to get
the tests started. ?

Any ideas for where else to look would be great! Thanks


2. Used Components and their Configuration:

*** mod_perl version 2.000001

*** using /home/to2958/mod_perl-2.0.1/lib/Apache2/BuildConfig.pm

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


*** /apacheDev/bin/httpd -V
Server version: Apache/2.0.53
Server built:   Aug 11 2005 14:57:43
Server's Module Magic Number: 20020903:9
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="/apacheDev"
 -D SUEXEC_BIN="/apacheDev/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"


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

 -L/apacheDev/lib -laprutil-0 -lexpat -liconv
 -L/apacheDev/lib -lapr-0 -lm -lnsl  -lpthread



*** /usr/opt/perl5.8.6/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
  Platform:
    osname=aix, osvers=4.3.3.0, archname=aix-thread-multi
    uname='aix sbctss2 3 4 000186704c00 '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc_r', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT
-I/usr/local/include -q32 -D_LARGE_FILES -qlonglong',
    optimize='-O',
    cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1
-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT
-I/usr/local/include'
    ccversion='4.4.0.3', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -brtl -L/usr/local/lib -b32'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lbind -lnsl -ldbm -ldl -lld -lm -lcrypt -lpthreads -lc_r -lbsd
    perllibs=-lbind -lnsl -ldl -lld -lm -lcrypt -lpthreads -lc_r -lbsd
    libc=, so=a, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='
-bE:/usr/opt/perl5.8.6/lib/5.8.6/aix-thread-multi/CORE/perl.exp'
    cccdlflags=' ', lddlflags='-bhalt:4 -bexpall -G -bnoentry -lpthreads
-lc_r -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
  Built under aix
  Compiled at Apr 26 2005 13:38:36
  %ENV:
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /usr/opt/perl5.8.6/lib/5.8.6/aix-thread-multi
    /usr/opt/perl5.8.6/lib/5.8.6
    /usr/opt/perl5.8.6/lib/site_perl/5.8.6/aix-thread-multi
    /usr/opt/perl5.8.6/lib/site_perl/5.8.6
    /usr/opt/perl5.8.6/lib/site_perl
    .

*** Packages of interest status:

Apache2            : -
Apache2::Request   : 2.05-dev
CGI                : 3.11
ExtUtils::MakeMaker: 6.17
LWP                : 5.803
mod_perl           : -
mod_perl2          : 2.000001


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

  [CORE TRACE COMES HERE]

This report was generated by t/REPORT on Wed Aug 17 14:32:54 2005 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.





Todd E. O'Dell
Network Services ( DATA )
Room 1118
500 E. 8th
Kansas City, MO 64106
Office: (816)275-3626
Alpha Page: 8162125424@archwireless.net
to2958@sbc.com
Rigidity and inflexibility are forever the enemy of ingenuity and
creativity. -- Teodor Zlatanov



Re: ModPerl 2.0.1 AIX4.3.3 - Make Test Fails to run

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
ODELL, TODD E (SWBT) wrote:
> to start. I unpacked and compiled as my userid, not root, and am able to
> start the httpd directly as that userid. With the
> APACHE_TEST_STARTUP_TIMEOUT=420 this is what is get from make test:
I believe whats happening here is that because you are testing the 
threaded version, you computer its taking too long to load and start all 
the tests.  The ModPerl-Registry tests load substantially less; thus, 
start quicker.  You might try stopping other processes on your computer 
while make testing if it is busy.

If I read that correctly, 300s is not enough, but 420 is?

 From

lib/ModPerl/TestRun.pm:
sub new_test_config {
     my $self = shift;

     # default timeout in secs (threaded mpms are extremely slow to
     # startup, due to a slow perl_clone operation)
     $self->{conf_opts}->{startup_timeout} ||=
         $ENV{APACHE_TEST_STARTUP_TIMEOUT} ||
         Apache2::Build->build_config->mpm_is_threaded() ? 300 : 120;

     $self->{conf_opts}->{minclients} ||= MIN_CLIENTS;

     ModPerl::TestConfig->new($self->{conf_opts});
}
> *** /usr/opt/perl5.8.6/bin/perl -V
> Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
>     usethreads=define use5005threads=undef useithreads=define
> usemultiplicity=define

> Characteristics of this binary (from libperl): 
>   Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
> PERL_IMPLICIT_CONTEXT

> Apache2            : -
> Apache2::Request   : 2.05-dev
Since you seem to be uptodate with most things, libapreq-2.06-dev is out
and fixes a few things :)



-- 
END
------------------------------------------------------------
     What doesn't kill us can only make us stronger.
                 Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
   http://www.liquidityservicesinc.com
        http://www.liquidation.com
        http://www.uksurplus.com
        http://www.govliquidation.com
        http://www.gowholesale.com