Failures during "make test"

Failures during "make test"

am 28.12.2005 00:26:56 von Curtis Poe

Hi all,

My 'make test' had a couple of test failures. Not being familiar with
mod_perl 2.0, I'm not sure how to resolve them.

Cheers,
Curtis "Ovid" Poe
Software Engineer
Kineticode, Inc.

--
1. Problem Description:

Failed tests:

Failed Test Stat Wstat Total Fail Failed
List of
Failed

------------------------------------------------------------ ------------
-------
t/filter/both_str_native_remove.t 8 2 25.00% 1-2
t/filter/both_str_req_mix.t 255 65280 1 2 200.00% 1
4 tests and 5 subtests skipped.
Failed 2/231 test scripts, 99.13% okay. 3/2403 subtests failed,
99.88% okay.
[warning] server localhost:8529 shutdown
[warning] port 8529 still in use...
done
[ error] error running tests (please examine t/logs/error_log)
+--------------------------------------------------------+
| Please file a bug report: http://perl.apache.org/bugs/ |
+--------------------------------------------------------+

I'm not quite certain which sections of the error log are applicable,
but I
note the following did not have a "harmless" message before it:

[Tue Dec 27 14:50:53 2005] [notice] child pid 23290 exit signal
Trace/BPT trap (5), possible coredump in
/Users/curtispoe/Downloads/mod_perl-2.0.2/t
dyld: /Library/Apache2/bin/httpd Undefined symbols:
_inflateInit2_
[Tue Dec 27 14:51:01 2005] [debug] util_ldap.c(1432): INIT global
mutex /var/tmp/tmp.0.Cexg0T in child 23632
[Tue Dec 27 14:51:19 2005] [notice] child pid 23074 exit signal
Trace/BPT trap (5), possible coredump in
/Users/curtispoe/Downloads/mod_perl-2.0.2/t
[Tue Dec 27 14:51:21 2005] [debug] proxy_http.c(66): proxy: HTTP:
canonicalising URL
//localhost:8529/TestFilter__both_str_req_proxy_content/foo
[Tue Dec 27 14:51:21 2005] [debug] mod_proxy.c(416): Trying to run
scheme_handler
[Tue Dec 27 14:51:21 2005] [debug] proxy_http.c(1049): proxy: HTTP:
serving URL
http://localhost:8529/TestFilter__both_str_req_proxy_content /foo
[Tue Dec 27 14:51:21 2005] [debug] proxy_http.c(185): proxy: HTTP
connecting
http://localhost:8529/TestFilter__both_str_req_proxy_content /foo to
localhost:8529
[Tue Dec 27 14:51:21 2005] [debug] proxy_util.c(1138): proxy: HTTP:
fam 2 socket created to connect to localhost
[Tue Dec 27 14:51:21 2005] [debug] proxy_http.c(334): proxy: socket
is connected
[Tue Dec 27 14:51:21 2005] [debug] proxy_http.c(368): proxy:
connection complete to 127.0.0.1:8529 (localhost)
[Tue Dec 27 14:51:21 2005] [debug] util_ldap.c(1432): INIT global
mutex /var/tmp/tmp.0.Cexg0T in child 23639
[Tue Dec 27 14:51:22 2005] [debug] proxy_http.c(884): proxy: start
body send
[Tue Dec 27 14:51:22 2005] [debug] proxy_http.c(943): proxy: end
body send

This showed up a bit later:

Constant subroutine Apache2::Reload::Test::const redefined at
/Users/curtispoe/Downloads/mod_perl-2.0.2/blib/lib/ModPerl/U til.pm line
69.
Subroutine subpackage redefined at
/Users/curtispoe/Downloads/mod_perl-2.0.2/t/lib/Apache2/Relo ad/Test.pm
line 7.
Subroutine run redefined at
/Users/curtispoe/Downloads/mod_perl-2.0.2/t/lib/Apache2/Relo ad/Test.pm
line 9.
Subroutine simple redefined at
/Users/curtispoe/Downloads/mod_perl-2.0.2/t/lib/Apache2/Relo ad/Test.pm
line 15.
Prototype mismatch: sub Apache2::Reload::Test::const: none vs () at
/usr/local/lib/perl5/5.8.7/constant.pm line 103.
Subroutine prototype redefined at
/Users/curtispoe/Downloads/mod_perl-2.0.2/t/lib/Apache2/Relo ad/Test.pm
line 17.
Constant subroutine Apache2::Reload::Test::const redefined at
/Users/curtispoe/Downloads/mod_perl-2.0.2/blib/lib/ModPerl/U til.pm line
69.
Subroutine subpackage redefined at
/Users/curtispoe/Downloads/mod_perl-2.0.2/t/lib/Apache2/Relo ad/Test.pm
line 7.
Subroutine run redefined at
/Users/curtispoe/Downloads/mod_perl-2.0.2/t/lib/Apache2/Relo ad/Test.pm
line 9.
Subroutine simple redefined at
/Users/curtispoe/Downloads/mod_perl-2.0.2/t/lib/Apache2/Relo ad/Test.pm
line 15.
Prototype mismatch: sub Apache2::Reload::Test::const: none vs () at
/usr/local/lib/perl5/5.8.7/constant.pm line 103.
Subroutine prototype redefined at
/Users/curtispoe/Downloads/mod_perl-2.0.2/t/lib/Apache2/Relo ad/Test.pm
line 17.
Constant subroutine Apache2::Reload::Test::const redefined at
/Users/curtispoe/Downloads/mod_perl-2.0.2/blib/lib/ModPerl/U til.pm line
69.

2. Used Components and their Configuration:

*** mod_perl version 2.000002

*** using
/Users/curtispoe/Downloads/mod_perl-2.0.2/lib/Apache2/BuildC onfig.pm

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


*** /Library/Apache2/bin/httpd -V
Server version: Apache/2.0.52
Server built: Sep 30 2004 18:20:43
Server's Module Magic Number: 20020903:9
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_MMAP
-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="/Library/Apache2"
-D SUEXEC_BIN="/Library/Apache2/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"

*** /usr/bin/otool -L /Library/Apache2/bin/httpd
/Library/Apache2/bin/httpd:
/usr/lib/libssl.0.9.7.dylib (compatibility version 0.9.7, current
version 0.9.7)
/usr/lib/libcrypto.0.9.7.dylib (compatibility version 0.9.7, current
version 0.9.7)
/Library/Apache2/lib/libaprutil-0.0.dylib (compatibility version
10.0.0, current version 10.5.0)
/System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
(compatibility version 1.0.0, current version 2.1.0)
/Library/Apache2/lib/libexpat.0.dylib (compatibility version 2.0.0,
current version 2.0.0)
/usr/lib/libiconv.2.dylib (compatibility version 5.0.0, current
version 5.0.0)
/Library/Apache2/lib/libapr-0.0.dylib (compatibility version 10.0.0,
current version 10.5.0)
/usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current
version 324.6.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 71.1.1)


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

-L/Library/Apache2/lib -laprutil-0 -lldap -llber -lexpat -liconv
-L/Library/Apache2/lib -lapr-0 -lresolv -lpthread



*** /usr/local/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
Platform:
osname=darwin, osvers=7.9.0, archname=darwin-2level
uname='darwin curtis-poes-computer.local 7.9.0 darwin kernel
version 7.9.0: wed mar 30 20:11:17 pst 2005;
root:xnuxnu-517.12.7.obj~1release_ppc power macintosh powerpc '
config_args='-de'
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='cc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -pipe -I/usr/local/include',
optimize='-Os',
cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build
1666)', 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='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='
-L/usr/local/lib'
libpth=/usr/local/lib /usr/lib
libs=-ldbm -ldl -lm -lc
perllibs=-ldl -lm -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false,
libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup
-L/usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under darwin
Compiled at Jul 12 2005 12:10:35
%ENV:
PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin"
PERL_LWP_USE_HTTP_10="1"
@INC:
/sw/lib/perl5
/sw/lib/perl5/darwin
/usr/local/lib/perl5/5.8.7/darwin-2level
/usr/local/lib/perl5/5.8.7
/usr/local/lib/perl5/site_perl/5.8.7/darwin-2level
/usr/local/lib/perl5/site_perl/5.8.7
/usr/local/lib/perl5/site_perl
.

*** Packages of interest status:

Apache2 : -
Apache2::Request : -
CGI : 3.11
ExtUtils::MakeMaker: 6.17
LWP : 5.803
mod_perl : 1.29
mod_perl2 : -


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

N/A

This report was generated by t/REPORT on Tue Dec 27 23:12:56 2005 GMT.

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

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

Re: Failures during "make test"

am 28.12.2005 02:13:51 von gozer

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigBA289F937273107330E20085
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Curtis Poe wrote:
> Hi all,
>
> My 'make test' had a couple of test failures. Not being familiar with
> mod_perl 2.0, I'm not sure how to resolve them.
> [...]
> --
> 1. Problem Description:
>
> Failed tests:
>
> Failed Test Stat Wstat Total Fail Failed
> List of
> Failed
>
> ------------------------------------------------------------ ------------
> -------
> t/filter/both_str_native_remove.t 8 2 25.00% 1-2
> t/filter/both_str_req_mix.t 255 65280 1 2 200.00% 1
> 4 tests and 5 subtests skipped.
> Failed 2/231 test scripts, 99.13% okay. 3/2403 subtests failed,
> 99.88% okay.
> [warning] server localhost:8529 shutdown
> [warning] port 8529 still in use...
> done
> [ error] error running tests (please examine t/logs/error_log)
> +--------------------------------------------------------+
> | Please file a bug report: http://perl.apache.org/bugs/ |
> +--------------------------------------------------------+
>
> I'm not quite certain which sections of the error log are applicable,
> but I
> note the following did not have a "harmless" message before it:
>
> [Tue Dec 27 14:50:53 2005] [notice] child pid 23290 exit signal
> Trace/BPT trap (5), possible coredump in
> /Users/curtispoe/Downloads/mod_perl-2.0.2/t
> dyld: /Library/Apache2/bin/httpd Undefined symbols:
> _inflateInit2_
> [Tue Dec 27 14:51:01 2005] [debug] util_ldap.c(1432): INIT global
> mutex /var/tmp/tmp.0.Cexg0T in child 23632
> [Tue Dec 27 14:51:19 2005] [notice] child pid 23074 exit signal
> Trace/BPT trap (5), possible coredump in
> /Users/curtispoe/Downloads/mod_perl-2.0.2/t
> [...]

This sounds like something is segfaulting there. It would be very helpfull if you
could generate core dumps and post a backtrace here.

http://perl.apache.org/docs/2.0/devel/debug/c.html#Analyzing _Dumped_Core_Files

------------------------------------------------------------ --------------------
Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5
http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5

--------------enigBA289F937273107330E20085
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDsebPyzKhB4jDpaURA/6xAJ4xRpODMxuEFgXjD0QRm4uB9mOK3ACg gPiW
hL+2pS7zJs/7c42KK4LIt2U=
=GZEn
-----END PGP SIGNATURE-----

--------------enigBA289F937273107330E20085--

Re: Failures during "make test"

am 28.12.2005 19:55:16 von Curtis Poe

On Dec 27, 2005, at 5:13 PM, Philippe M. Chiasson wrote:
> This sounds like something is segfaulting there. It would be very
> helpfull if you
> could generate core dumps and post a backtrace here.
>
> http://perl.apache.org/docs/2.0/devel/debug/
> c.html#Analyzing_Dumped_Core_Files

Thanks for the advice.

Try as I might, I could not generate a core dump. However, upgrading
to the latest Apache made the problem go away.

Cheers,
Curtis "Ovid" Poe
Software Engineer
Kineticode, Inc.