[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-modperl
Subject: Re: Diagnosing mod_perl 2.0.8 test failure.
From: Todd Chapman <todd () chaka ! net>
Date: 2014-07-15 21:07:04
Message-ID: CAG54imYTWRHkB5CKgmrq_2kf3Z8rDuo6FNgvM=+fFyE_mt3LNg () mail ! gmail ! com
[Download RAW message or body]
*bump*
On Wed, Jul 2, 2014 at 10:29 AM, Todd Chapman <todd@chaka.net> wrote:
> 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/toybo \
> x/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
> .
>
[Attachment #3 (text/html)]
<div dir="ltr">*bump*</div><div class="gmail_extra"><br><br><div \
class="gmail_quote">On Wed, Jul 2, 2014 at 10:29 AM, Todd Chapman <span \
dir="ltr"><<a href="mailto:todd@chaka.net" \
target="_blank">todd@chaka.net</a>></span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>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.</div> <div><br></div>
<div><div> Test Summary Report</div><div> -------------------</div><div> \
t/api/server_const.t (Wstat: 0 Tests: 6 Failed: \
2)</div><div> Failed tests: 5-6</div></div><div><br></div><div>The test \
file is auto-generated and the instructions for running a single test file with \
verbosity don't work for this file.</div>
<div><br></div><div>In the error_log this is the only relevant information I \
found:</div><div><br></div><div><div> [Wed Jul 02 09:56:04 2014] [error] [client \
127.0.0.1] Handler for modperl returned invalid result code 2</div>
<div> [Wed Jul 02 09:56:04 2014] [error] [client 127.0.0.1] Handler for modperl \
returned invalid result code 2</div><div> # Failed test 5 in \
/home/vagrant/mod_perl-2.0.8/t/response/TestAPI/<a href="http://server_const.pm" \
target="_blank">server_const.pm</a> at line 48</div>
<div> # Failed test 6 in /home/vagrant/mod_perl-2.0.8/t/response/TestAPI/<a \
href="http://server_const.pm" target="_blank">server_const.pm</a> at line \
52</div></div><div><br></div><div>Heres are the tests that fail:</div> \
<div><br></div> <div><div> # assuming ServerTokens Full (default) the banner \
equals description</div><div> ok t_cmp(Apache2::ServerUtil::get_server_banner, \
$server_descr,</div><div> \
'Apache2::ServerUtil::get_server_banner()');</div>
<div><br></div><div> # version is just an alias for banner</div><div> ok \
t_cmp(Apache2::ServerUtil::get_server_version, $server_descr,</div><div> \
'Apache2::ServerUtil::get_server_version()');</div>
</div><div><br></div><div><br></div><div>How can I run this test to diagnose this \
problem? (I am comfortable with the perl debugger.)</div><div><br></div><div>More \
detailed httpd and perl info is below. Thanks!</div><div>
<br></div><div><div>$ cat \
t/REPORT</div><div>#!/home/vagrant/perl5/perlbrew/perls/perl-5.18.2-fPIC/bin/perl</div><div># \
WARNING: this file is generated, do not edit</div><div># generated on Tue Jul 1 \
16:23:26 2014</div> <div>
# 01: Apache-Test/lib/Apache/TestConfig.pm:961</div><div># 02: \
Apache-Test/lib/Apache/TestConfig.pm:1051</div><div># 03: \
Apache-Test/lib/Apache/TestReport.pm:45</div><div># 04: Makefile.PL:320</div><div># \
05: Makefile.PL:58</div>
<div><br></div><div>BEGIN { eval { require blib && blib->import; } \
}</div><div><br></div><div>use strict;</div><div>use warnings FATAL => \
'all';</div><div><br></div><div>use lib qw(</div><div> \
/home/vagrant/mod_perl-2.0.8/lib</div>
<div> /home/vagrant/mod_perl-2.0.8/Apache-Test/lib</div><div> \
/home/vagrant/mod_perl-2.0.8/t/lib</div><div>);</div><div><br></div><div><br></div><div>use \
ModPerl::TestReport;</div><div>ModPerl::TestReport->new(@ARGV)->run;</div>
</div><div><br></div><div><br></div><div><div>$ httpd -V</div><div>Server version: \
Apache/2.2.15 (Unix)</div><div>Server built: Apr 3 2014 \
23:56:16</div><div>Server's Module Magic Number: 20051115:25</div><div>Server \
loaded: APR 1.3.9, APR-Util 1.3.9</div>
<div>Compiled using: APR 1.3.9, APR-Util 1.3.9</div><div>Architecture: \
64-bit</div><div>Server MPM: Prefork</div><div> threaded: no</div><div> \
forked: yes (variable process count)</div><div>Server compiled with....</div>
<div> -D APACHE_MPM_DIR="server/mpm/prefork"</div><div> -D \
APR_HAS_SENDFILE</div><div> -D APR_HAS_MMAP</div><div> -D APR_HAVE_IPV6 \
(IPv4-mapped addresses enabled)</div><div> -D APR_USE_SYSVSEM_SERIALIZE</div><div>
-D APR_USE_PTHREAD_SERIALIZE</div><div> -D \
SINGLE_LISTEN_UNSERIALIZED_ACCEPT</div><div> -D APR_HAS_OTHER_CHILD</div><div> -D \
AP_HAVE_RELIABLE_PIPED_LOGS</div><div> -D DYNAMIC_MODULE_LIMIT=128</div><div> -D \
HTTPD_ROOT="/etc/httpd"</div>
<div> -D SUEXEC_BIN="/usr/sbin/suexec"</div><div> -D \
DEFAULT_PIDLOG="run/httpd.pid"</div><div> -D \
DEFAULT_SCOREBOARD="logs/apache_runtime_status"</div><div> -D \
DEFAULT_LOCKFILE="logs/accept.lock"</div>
<div> -D DEFAULT_ERRORLOG="logs/error_log"</div><div> -D \
AP_TYPES_CONFIG_FILE="conf/mime.types"</div><div> -D \
SERVER_CONFIG_FILE="conf/httpd.conf"</div></div><div><br></div><div><br></div><div>
<div>$ perl -V</div><div>Summary of my perl5 (revision 5 version 18 subversion 2) \
configuration:</div><div><br></div><div> Platform:</div><div> osname=linux, \
osvers=2.6.32-279.5.2.el6.x86_64, archname=x86_64-linux</div>
<div> 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 '</div><div> \
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'</div>
<div> hint=recommended, useposix=true, d_sigaction=define</div><div> \
useithreads=undef, usemultiplicity=undef</div><div> useperlio=define, \
d_sfio=undef, uselargefiles=define, usesocks=undef</div><div> \
use64bitint=define, use64bitall=define, uselongdouble=undef</div>
<div> usemymalloc=n, bincompat5005=undef</div><div> Compiler:</div><div> \
cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector \
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',</div>
<div> optimize='-O2',</div><div> cppflags='-fno-strict-aliasing \
-pipe -fstack-protector -I/usr/local/include'</div><div> \
ccversion='', gccversion='4.4.7 20120313 (Red Hat 4.4.7-4)', \
gccosandvers=''</div>
<div> intsize=4, longsize=8, ptrsize=8, doublesize=8, \
byteorder=12345678</div><div> d_longlong=define, longlongsize=8, \
d_longdbl=define, longdblsize=16</div><div> ivtype='long', ivsize=8, \
nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8</div>
<div> alignbytes=8, prototype=define</div><div> Linker and \
Libraries:</div><div> ld='cc', ldflags =' -fstack-protector \
-L/usr/local/lib'</div><div> libpth=/usr/local/lib /lib/../lib64 \
/usr/lib/../lib64 /lib /usr/lib /lib64 /usr/lib64 /usr/local/lib64</div>
<div> libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc</div><div> \
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc</div><div> libc=<a \
href="http://libc-2.12.so" target="_blank">libc-2.12.so</a>, so=so, useshrplib=true, \
libperl=libperl.so</div>
<div> gnulibc_version='2.12'</div><div> Dynamic Linking:</div><div> \
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'</div>
<div> cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib \
-fstack-protector'</div><div><br></div><div><br></div><div>Characteristics of \
this binary (from libperl):</div><div> Compile-time options: HAS_TIMES \
PERLIO_LAYERS PERL_DONT_CREATE_GVSV</div>
<div> PERL_HASH_FUNC_ONE_AT_A_TIME_HARD \
PERL_MALLOC_WRAP</div><div> PERL_PRESERVE_IVUV \
PERL_SAWAMPERSAND USE_64_BIT_ALL</div><div> \
USE_64_BIT_INT USE_LARGE_FILES USE_LOCALE</div>
<div> USE_LOCALE_COLLATE \
USE_LOCALE_CTYPE</div><div> USE_LOCALE_NUMERIC \
USE_PERLIO USE_PERL_ATOF</div><div> Built under linux</div><div> Compiled at Jun \
30 2014 15:06:55</div>
<div> %ENV:</div><div> \
PERL5LIB="/opt/toysdk/toybox/lib:/opt/toysdk/toybox/build/lib/auto:/opt/toysdk/to \
ybox/build/lib:/opt/toysdk/toybox/build/lib64/perl5/auto:/opt/toysdk/toybox/build/lib64/perl5:/opt/custom"</div>
<div> PERLBREW_BASHRC_VERSION="0.69"</div><div> \
PERLBREW_HOME="/home/vagrant/.perlbrew"</div><div> \
PERLBREW_MANPATH="/home/vagrant/perl5/perlbrew/perls/perl-5.18.2-fPIC/man"</div><div>
PERLBREW_PATH="/home/vagrant/perl5/perlbrew/bin:/home/vagrant/perl5/perlbrew/perls/perl-5.18.2-fPIC/bin"</div><div> \
PERLBREW_PERL="perl-5.18.2-fPIC"</div><div> \
PERLBREW_ROOT="/home/vagrant/perl5/perlbrew"</div>
<div> PERLBREW_VERSION="0.69"</div><div> @INC:</div><div> \
/opt/toysdk/toybox/lib</div><div> /opt/toysdk/toybox/build/lib/auto</div><div> \
/opt/toysdk/toybox/build/lib/5.18.2/x86_64-linux</div><div> \
/opt/toysdk/toybox/build/lib/5.18.2</div>
<div> /opt/toysdk/toybox/build/lib</div><div> \
/opt/toysdk/toybox/build/lib64/perl5/auto</div><div> \
/opt/toysdk/toybox/build/lib64/perl5</div><div> /opt/custom</div><div> \
/home/vagrant/perl5/perlbrew/perls/perl-5.18.2-fPIC/lib/site_perl/5.18.2/x86_64-linux</div>
<div> /home/vagrant/perl5/perlbrew/perls/perl-5.18.2-fPIC/lib/site_perl/5.18.2</div><div> \
/home/vagrant/perl5/perlbrew/perls/perl-5.18.2-fPIC/lib/5.18.2/x86_64-linux</div><div> \
/home/vagrant/perl5/perlbrew/perls/perl-5.18.2-fPIC/lib/5.18.2</div>
<div> .</div></div></div>
</blockquote></div><br></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic