You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Simon Hollier <si...@hn2.org> on 2004/04/20 18:10:44 UTC
[mp2] make test fails in basic.t closure.t + an intermittent
segfault
Hello,
I'm getting errors with make test. There is a maxclient too small error
in the log. When I raise MaxClients in the t/conf/httpd.conf it removes
the MaxClients error but all other make test problems still exist.
In addition, I'm also getting segfaults with my regular perl/dbi scripts
about one out of ten times with both prefork/worker mpm. I will add
debugging symbols and produce a bug report when I get a chance to
recompile everything and track it down...
Here's the make test info :
-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:
make test fails
2. Used Components and their Configuration:
*** mod_perl version 1.9913
*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
MP_AP_PREFIX => /usr/local/apache
MP_COMPAT_1X => 1
MP_GENERATE_XS => 1
MP_LIBNAME => mod_perl
MP_USE_DSO => 1
MP_USE_STATIC => 1
*** /usr/local/apache/bin/httpd -V
Server version: Apache/2.0.49
Server built: Apr 20 2004 11:45:38
Server's Module Magic Number: 20020903:7
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_PROC_PTHREAD_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="/usr/local/apache"
-D SUEXEC_BIN="/usr/local/apache/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/local/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 3) configuration:
Platform:
osname=linux, osvers=2.4.20-8, archname=i686-linux-thread-multi
uname='linux crapper 2.4.20-8 #1 thu mar 13 17:18:24 est 2003 i686
athlon i386 gnulinux '
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', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O3',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='3.2.2 20030222 (Red Hat Linux 3.2.2-5)',
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='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.3.2'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
Built under linux
Compiled at Apr 19 2004 13:08:42
%ENV:
PERL_LWP_USE_HTTP_10="1"
@INC:
/usr/lib/perl5/5.8.3/i686-linux-thread-multi
/usr/lib/perl5/5.8.3
/usr/lib/perl5/site_perl/5.8.3/i686-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
.
*** Packages of interest status:
Apache::Request: -
CGI : 3.01
LWP : -
mod_perl : 1.9913
This report was generated by t/REPORT on Tue Apr 20 16:13:21 2004 GMT.
-------------8<---------- End Bug Report --------------8<----------
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/local/bin/perl
/root/software/mod_perl-1.99_13/ModPerl-Registry/t/TEST -verbose
't/closure.t' 't/basic.t'
/usr/local/apache/bin/httpd -d
/root/software/mod_perl-1.99_13/ModPerl-Registry/t -f
/root/software/mod_perl-1.99_13/ModPerl-Registry/t/conf/httpd.conf -D
APACHE2 -D PERL_USEITHREADS
using Apache/2.0.49 (prefork MPM)
waiting 90 seconds for server to start: ...
waiting 90 seconds for server to start: ok (waited 2 secs)
server localhost.localdomain:8529 started
t/closure....1..6
# Running under perl version 5.008003 for linux
# Current time local: Tue Apr 20 12:11:46 2004
# Current time GMT: Tue Apr 20 16:11:46 2004
# Using Test.pm version 1.24
# testing : never the closure problem
# expected: 0
# received: 0
ok 1
# testing : never the closure problem
# expected: 1
# received: 1
ok 2
# testing : the closure problem should exist
# expected: 1
# received: 1
ok 3
# testing : no closure on the first request
# expected: 1
# received: 4
not ok 4
# Failed test 4 in t/closure.t at line 84
# testing : the closure problem should exist
# expected: 1
# received: 1
ok 5
# testing : no reload on modification, the closure problem persists
# expected: 1
# received: 1
ok 6
FAILED test 4
Failed 1/6 tests, 83.33% okay
t/basic......1..15
# Running under perl version 5.008003 for linux
# Current time local: Tue Apr 20 12:11:49 2004
# Current time GMT: Tue Apr 20 16:11:49 2004
# Using Test.pm version 1.24
# testing : ModPerl::PerlRun basic cgi test
# expected: ok
/root/software/mod_perl-1.99_13/ModPerl-Registry/t/cgi-bin/basic.pl
# received: ok
/root/software/mod_perl-1.99_13/ModPerl-Registry/t/cgi-bin/basic.pl
ok 1
# testing : ModPerl::Registry basic cgi test
# expected: ok
/root/software/mod_perl-1.99_13/ModPerl-Registry/t/cgi-bin/basic.pl
# received: ok
/root/software/mod_perl-1.99_13/ModPerl-Registry/t/cgi-bin/basic.pl
ok 2
# testing : ModPerl::RegistryBB basic cgi test
# expected: ok
/root/software/mod_perl-1.99_13/ModPerl-Registry/t/cgi-bin/basic.pl
# received: ok
/root/software/mod_perl-1.99_13/ModPerl-Registry/t/cgi-bin/basic.pl
ok 3
# testing : ModPerl::PerlRun non-executable file
# expected: 403 Forbidden
# received: 200 OK
not ok 4
# Failed test 4 in t/basic.t at line 44
# testing : ModPerl::Registry non-executable file
# expected: 403 Forbidden
# received: 200 OK
not ok 5
# Failed test 5 in t/basic.t at line 44 fail #2
# testing : ModPerl::RegistryBB non-executable file
# expected: 403 Forbidden
# received: 200 OK
not ok 6
# Failed test 6 in t/basic.t at line 44 fail #3
# testing : ModPerl::PerlRun mod_cgi-like environment pre-set
# expected: foo=bar
# received: foo=bar
ok 7
# testing : ModPerl::Registry mod_cgi-like environment pre-set
# expected: foo=bar
# received: foo=bar
ok 8
# testing : ModPerl::RegistryBB mod_cgi-like environment pre-set
# expected: foo=bar
# received: foo=bar
ok 9
# testing : ModPerl::PerlRun mod_cgi-like environment pre-set
# expected: it works
# received: it works
ok 10
# testing : ModPerl::Registry mod_cgi-like environment pre-set
# expected: it works
# received: it works
ok 11
# testing : ModPerl::RegistryBB mod_cgi-like environment pre-set
# expected: it works
# received: it works
ok 12
# testing : ModPerl::Registry->handler mod_cgi-like environment pre-set
# expected: foo=bar
# received: foo=bar
ok 13
# testing : $r->content_type('text/plain')
# expected: ok
# received: ok
ok 14
# testing : script's content-type
# expected: text/plain
# received: text/plain
ok 15
FAILED tests 4-6
Failed 3/15 tests, 80.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/basic.t 15 3 20.00% 4-6
t/closure.t 6 1 16.67% 4
[warning] server localhost.localdomain:8529 shutdown
[ error] error running tests (please examine t/logs/error_log)
[Tue Apr 20 12:11:43 2004] [info] Init: Initializing OpenSSL library
[Tue Apr 20 12:11:43 2004] [info] Init: Seeding PRNG with 0 bytes of
entropy
[Tue Apr 20 12:11:43 2004] [info] Init: Generating temporary RSA private
keys (512/1024 bits)
[Tue Apr 20 12:11:44 2004] [info] Init: Generating temporary DH
parameters (512/1024 bits)
[Tue Apr 20 12:11:44 2004] [warn] Init: Session Cache is not configured
[hint: SSLSessionCache]
[Tue Apr 20 12:11:44 2004] [info] Init: Initializing (virtual) servers
for SSL
[Tue Apr 20 12:11:44 2004] [info] Server: Apache/2.0.49, Interface:
mod_ssl/2.0.49, Library: OpenSSL/0.9.7d
[Tue Apr 20 12:11:44 2004] [info] mod_unique_id: using ip addr
xx.xx.xx.xx
[Tue Apr 20 12:11:45 2004] [info] Init: Initializing OpenSSL library
[Tue Apr 20 12:11:45 2004] [info] Init: Seeding PRNG with 0 bytes of
entropy
[Tue Apr 20 12:11:45 2004] [info] Init: Generating temporary RSA private
keys (512/1024 bits)
[Tue Apr 20 12:11:45 2004] [info] Init: Generating temporary DH
parameters (512/1024 bits)
[Tue Apr 20 12:11:45 2004] [info] Init: Initializing (virtual) servers
for SSL
[Tue Apr 20 12:11:45 2004] [info] Server: Apache/2.0.49, Interface:
mod_ssl/2.0.49, Library: OpenSSL/0.9.7d
[Tue Apr 20 12:11:45 2004] [notice] Digest: generating secret for digest
authentication ...
[Tue Apr 20 12:11:45 2004] [notice] Digest: done
[Tue Apr 20 12:11:45 2004] [info] mod_unique_id: using ip addr
xx.xx.xx.xx
[Tue Apr 20 12:11:46 2004] [notice] Apache/2.0.49 (Unix)
mod_perl/1.99_13 Perl/v5.8.3 mod_ssl/2.0.49 OpenSSL/0.9.7d DAV/2
configured -- resuming normal operations
[Tue Apr 20 12:11:46 2004] [info] Server built: Apr 20 2004 11:45:38
[Tue Apr 20 12:11:46 2004] [debug] prefork.c(955): AcceptMutex: pthread
(default: pthread)
*** The following warn entry is expected and it is harmless ***
Variable "$counter" will not stay shared at
/root/software/mod_perl-1.99_13/ModPerl-Registry/t/cgi-bin/closure.pl
line 21.
*** The following warn entry is expected and it is harmless ***
Variable "$counter" will not stay shared at
/root/software/mod_perl-1.99_13/ModPerl-Registry/t/cgi-bin/closure.pl
line 21.
Subroutine counter redefined at
/root/software/mod_perl-1.99_13/ModPerl-Registry/t/cgi-bin/closure.pl
line 19.
*** The following warn entry is expected and it is harmless ***
Variable "$counter" will not stay shared at
/root/software/mod_perl-1.99_13/ModPerl-Registry/t/cgi-bin/closure.pl
line 21.
Subroutine counter redefined at
/root/software/mod_perl-1.99_13/ModPerl-Registry/t/cgi-bin/closure.pl
line 19.
*** The following warn entry is expected and it is harmless ***
Variable "$counter" will not stay shared at
/root/software/mod_perl-1.99_13/ModPerl-Registry/t/cgi-bin/closure.pl
line 21.
Subroutine counter redefined at
/root/software/mod_perl-1.99_13/ModPerl-Registry/t/cgi-bin/closure.pl
line 19.
*** The following warn entry is expected and it is harmless ***
Variable "$counter" will not stay shared at
/root/software/mod_perl-1.99_13/ModPerl-Registry/t/cgi-bin/closure.pl
line 21.
[Tue Apr 20 12:11:47 2004] [error] server reached MaxClients setting,
consider raising the MaxClients setting
*** The following warn entry is expected and it is harmless ***
Variable "$counter" will not stay shared at
/root/software/mod_perl-1.99_13/ModPerl-Registry/t/cgi-bin/closure.pl
line 21.
*** The following error entry is expected and it is harmless ***
*** The following error entry is expected and it is harmless ***
*** The following error entry is expected and it is harmless ***
[Tue Apr 20 12:11:50 2004] [info] removed PID file
/root/software/mod_perl-1.99_13/ModPerl-Registry/t/logs/httpd.pid
(pid=13553)
[Tue Apr 20 12:11:50 2004] [notice] caught SIGTERM, shutting down
Let me know what I can do to help :>
Thanks, Simon.
--
Simon Hollier
Computer Services
Northeast Health District
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org