perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Chapman <t...@chaka.net>
Subject Diagnosing mod_perl 2.0.8 test failure.
Date Wed, 02 Jul 2014 14:29:58 GMT
Hi,

I'm trying to install mod_perl 2.0.8 with Apache 2.2.15 and perl 5.18.2.
The following test fails and I don't know how to run it individually to
diagnose it.

    Test Summary Report
    -------------------
    t/api/server_const.t                  (Wstat: 0 Tests: 6 Failed: 2)
      Failed tests:  5-6

The test file is auto-generated and the instructions for running a single
test file with verbosity don't work for this file.

In the error_log this is the only relevant information I found:

    [Wed Jul 02 09:56:04 2014] [error] [client 127.0.0.1] Handler for
modperl returned invalid result code 2
    [Wed Jul 02 09:56:04 2014] [error] [client 127.0.0.1] Handler for
modperl returned invalid result code 2
    # Failed test 5 in /home/vagrant/mod_perl-2.0.8/t/response/TestAPI/
server_const.pm at line 48
    # Failed test 6 in /home/vagrant/mod_perl-2.0.8/t/response/TestAPI/
server_const.pm at line 52

Heres are the tests that fail:

    # assuming ServerTokens Full (default) the banner equals description
    ok t_cmp(Apache2::ServerUtil::get_server_banner, $server_descr,
             'Apache2::ServerUtil::get_server_banner()');

    # version is just an alias for banner
    ok t_cmp(Apache2::ServerUtil::get_server_version, $server_descr,
             'Apache2::ServerUtil::get_server_version()');


How can I run this test to diagnose this problem? (I am comfortable with
the perl debugger.)

More detailed httpd and perl info is below. Thanks!

$ cat t/REPORT
#!/home/vagrant/perl5/perlbrew/perls/perl-5.18.2-fPIC/bin/perl
# WARNING: this file is generated, do not edit
# generated on Tue Jul  1 16:23:26 2014
# 01: Apache-Test/lib/Apache/TestConfig.pm:961
# 02: Apache-Test/lib/Apache/TestConfig.pm:1051
# 03: Apache-Test/lib/Apache/TestReport.pm:45
# 04: Makefile.PL:320
# 05: Makefile.PL:58

BEGIN { eval { require blib && blib->import; } }

use strict;
use warnings FATAL => 'all';

use lib qw(
    /home/vagrant/mod_perl-2.0.8/lib
    /home/vagrant/mod_perl-2.0.8/Apache-Test/lib
    /home/vagrant/mod_perl-2.0.8/t/lib
);


use ModPerl::TestReport;
ModPerl::TestReport->new(@ARGV)->run;


$ httpd -V
Server version: Apache/2.2.15 (Unix)
Server built:   Apr  3 2014 23:56:16
Server's Module Magic Number: 20051115:25
Server loaded:  APR 1.3.9, APR-Util 1.3.9
Compiled using: APR 1.3.9, APR-Util 1.3.9
Architecture:   64-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="/etc/httpd"
 -D SUEXEC_BIN="/usr/sbin/suexec"
 -D DEFAULT_PIDLOG="run/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"


$ perl -V
Summary of my perl5 (revision 5 version 18 subversion 2) configuration:

  Platform:
    osname=linux, osvers=2.6.32-279.5.2.el6.x86_64, archname=x86_64-linux
    uname='linux toybox 2.6.32-279.5.2.el6.x86_64 #1 smp fri aug 24
01:07:11 utc 2012 x86_64 x86_64 x86_64 gnulinux '
    config_args='-de
-Dprefix=/home/vagrant/perl5/perlbrew/perls/perl-5.18.2-fPIC -Duseshrplib
-Aeval:scriptdir=/home/vagrant/perl5/perlbrew/perls/perl-5.18.2-fPIC/bin'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include'
    ccversion='', gccversion='4.4.7 20120313 (Red Hat 4.4.7-4)',
gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /lib/../lib64 /usr/lib/../lib64 /lib /usr/lib
/lib64 /usr/lib64 /usr/local/lib64
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=libc-2.12.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.12'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-rpath,/home/vagrant/perl5/perlbrew/perls/perl-5.18.2-fPIC/lib/5.18.2/x86_64-linux/CORE'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib
-fstack-protector'


Characteristics of this binary (from libperl):
  Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
                        PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP
                        PERL_PRESERVE_IVUV PERL_SAWAMPERSAND USE_64_BIT_ALL
                        USE_64_BIT_INT USE_LARGE_FILES USE_LOCALE
                        USE_LOCALE_COLLATE USE_LOCALE_CTYPE
                        USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
  Built under linux
  Compiled at Jun 30 2014 15:06:55
  %ENV:

PERL5LIB="/opt/toysdk/toybox/lib:/opt/toysdk/toybox/build/lib/auto:/opt/toysdk/toybox/build/lib:/opt/toysdk/toybox/build/lib64/perl5/auto:/opt/toysdk/toybox/build/lib64/perl5:/opt/custom"
    PERLBREW_BASHRC_VERSION="0.69"
    PERLBREW_HOME="/home/vagrant/.perlbrew"

PERLBREW_MANPATH="/home/vagrant/perl5/perlbrew/perls/perl-5.18.2-fPIC/man"

PERLBREW_PATH="/home/vagrant/perl5/perlbrew/bin:/home/vagrant/perl5/perlbrew/perls/perl-5.18.2-fPIC/bin"
    PERLBREW_PERL="perl-5.18.2-fPIC"
    PERLBREW_ROOT="/home/vagrant/perl5/perlbrew"
    PERLBREW_VERSION="0.69"
  @INC:
    /opt/toysdk/toybox/lib
    /opt/toysdk/toybox/build/lib/auto
    /opt/toysdk/toybox/build/lib/5.18.2/x86_64-linux
    /opt/toysdk/toybox/build/lib/5.18.2
    /opt/toysdk/toybox/build/lib
    /opt/toysdk/toybox/build/lib64/perl5/auto
    /opt/toysdk/toybox/build/lib64/perl5
    /opt/custom

/home/vagrant/perl5/perlbrew/perls/perl-5.18.2-fPIC/lib/site_perl/5.18.2/x86_64-linux
    /home/vagrant/perl5/perlbrew/perls/perl-5.18.2-fPIC/lib/site_perl/5.18.2

/home/vagrant/perl5/perlbrew/perls/perl-5.18.2-fPIC/lib/5.18.2/x86_64-linux
    /home/vagrant/perl5/perlbrew/perls/perl-5.18.2-fPIC/lib/5.18.2
    .

Mime
View raw message