You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Nick Tonkin <ni...@tonkinresolutions.com> on 2003/02/21 17:55:24 UTC
make test fails with httpd 2.044 / mp 1.99_09-dev
Note that the test failing is api/uri; could this be related to the
change:
fix a bug for apr < 0.9.3, where it segfaults in apr_uri_unparse, if
hostname is set, but not the scheme. [Stas]
?
bug report follows:
-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:
make test fails with api/uri........................FAILED tests
8-15
Failed 8/15 tests, 46.67% okay
t/logs/error_log follows:
cat t/logs/error_log
[Fri Feb 21 08:36:15 2003] [info] Init: Initializing OpenSSL library
[Fri Feb 21 08:36:15 2003] [info] Init: Seeding PRNG with 0 bytes of
entropy
[Fri Feb 21 08:36:15 2003] [info] Init: Generating temporary RSA private
keys (512/1024 bits)
[Fri Feb 21 08:36:16 2003] [info] Init: Generating temporary DH parameters
(512/1024 bits)
[Fri Feb 21 08:36:16 2003] [warn] Init: Session Cache is not configured
[hint: SSLSessionCache]
[Fri Feb 21 08:36:16 2003] [info] Init: Initializing (virtual) servers for
SSL
[Fri Feb 21 08:36:16 2003] [info] Server: Apache/2.0.44, Interface:
mod_ssl/2.0.44, Library: OpenSSL/0.9.7
END in modperl_extra.pl, pid=52873
[Fri Feb 21 08:36:17 2003] [info] Init: Initializing OpenSSL library
[Fri Feb 21 08:36:17 2003] [info] Init: Seeding PRNG with 0 bytes of
entropy
[Fri Feb 21 08:36:17 2003] [info] Init: Generating temporary RSA private
keys (512/1024 bits)
[Fri Feb 21 08:36:17 2003] [info] Init: Generating temporary DH parameters
(512/1024 bits)
[Fri Feb 21 08:36:17 2003] [info] Init: Initializing (virtual) servers for
SSL
[Fri Feb 21 08:36:17 2003] [info] Server: Apache/2.0.44, Interface:
mod_ssl/2.0.44, Library: OpenSSL/0.9.7
[Fri Feb 21 08:36:17 2003] [notice] Apache/2.0.44 (Unix)
mod_perl/1.99_09-dev Perl/v5.8.0 mod_ssl/2.0.44 OpenSSL/0.9.7 configured
-- resuming normal operations
[Fri Feb 21 08:36:17 2003] [info] Server built: Feb 21 2003 08:20:31
[Fri Feb 21 08:36:17 2003] [debug] prefork.c(1039): AcceptMutex: flock
(default: flock)
[Fri Feb 21 08:36:18 2003] [error] server reached MaxClients setting,
consider raising the MaxClients setting
[Fri Feb 21 08:36:23 2003] [info] [client 127.0.0.1] TestAPI::aplog test
in progress
[Fri Feb 21 08:36:23 2003] [debug]
/home/tmp/build/modperl-2.0/t/response/TestAPI/aplog.pm(43): log_serror
test ok
[Fri Feb 21 08:36:23 2003] [debug]
/home/tmp/build/modperl-2.0/t/response/TestAPI/aplog.pm(46): (20007)No
time was provided and one was required.: log_serror test 2 ok
[Fri Feb 21 08:36:23 2003] [debug]
/home/tmp/build/modperl-2.0/t/response/TestAPI/aplog.pm(49): [client
127.0.0.1] (20007)No time was provided and one was required.: log_rerror
test ok
[Fri Feb 21 08:36:23 2003] [error] $r->log_error test ok
[Fri Feb 21 08:36:23 2003] [error] $s->log_error test ok
[Fri Feb 21 08:36:23 2003] [debug]
/home/tmp/build/modperl-2.0/t/response/TestAPI/aplog.pm(63):
TestAPI::aplog test done
[Fri Feb 21 08:36:23 2003] [warn] ApacheApache->warn test ok
[Fri Feb 21 08:36:23 2003] [warn] $s->warn test ok
[Fri Feb 21 08:36:29 2003] [notice] child pid 52875 exit signal
Segmentation fault (11), possible coredump in
/home/tmp/build/modperl-2.0/t
[Fri Feb 21 08:36:34 2003] [error] Apache::log_error test ok
a call to a non-existing function
[Fri Feb 21 08:36:44 2003] [error] [client 127.0.0.1] Undefined subroutine
&TestError::runtime::no_such_func called at
/home/tmp/build/modperl-2.0/t/response/TestError/runtime.pm line 17.
[Fri Feb 21 08:36:45 2003] [error] failed to resolve handler
`TestError::syntax'
[Fri Feb 21 08:36:45 2003] [error] [client 127.0.0.1] syntax error at
/home/tmp/build/modperl-2.0/t/response/TestError/syntax.pm line 17, near
"\;"
Compilation failed in require at (eval 70) line 3.
[echo_filter] get_brigade: Unknown error: 0
[Fri Feb 21 08:36:55 2003] [error] [client 127.0.0.1] File does not exist:
/home/tmp/build/modperl-2.0/t/htdocs/nope
in callback: PerlHeaderParserHandler
in callback: PerlFixupHandler
in callback: PerlResponseHandler
in callback: PerlLogHandler
[Fri Feb 21 08:37:01 2003] [error] [client 127.0.0.1] need AuthName:
/TestModperl::setauth
[Fri Feb 21 08:37:06 2003] [info] Child process pid=52929 is exiting
[Fri Feb 21 08:37:06 2003] [info] removed PID file
/home/tmp/build/modperl-2.0/t/logs/httpd.pid (pid=52874)
[Fri Feb 21 08:37:06 2003] [notice] caught SIGTERM, shutting down
END in modperl_extra.pl, pid=52874
Yes, there is a Segmentation fault, but I'm not sure if it's in the test
that says it failed. There are quite a few diverse error messages in the
error_log (so I'v esent it all, only 47 lines :)
Not sure if I want to rebuild my Perl to get a backtrace as the docs
suggest; I guess I can if I have to ... what would you do, build a
separate perl in a differnt place?
2. Used Components and their Configuration:
*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
MP_AP_PREFIX => /usr/local/apache
MP_GENERATE_XS => 1
MP_INST_APACHE2 => 1
MP_LIBNAME => mod_perl
MP_USE_DSO => 1
MP_USE_STATIC => 1
*** /usr/local/apache/bin/httpd -V
Server version: Apache/2.0.44
Server built: Feb 21 2003 08:20:31
Server's Module Magic Number: 20020903:0
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
-D APR_USE_FLOCK_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"
*** /home/perl/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
Platform:
osname=freebsd, osvers=4.7-release, archname=i386-freebsd
uname='freebsd fatboy.rlnt.net 4.7-release freebsd 4.7-release #0: tue
jan 7 21:22:18 pst 2003 root@fatboy.rlnt.net:usrsrcsyscompilenick i386 '
config_args='-DCC=gcc -Dmksymlinks -Dprefix=/home/perl
-Dextras=Bundle::CPAN Bundle::LWP DBI
-Accflags=-DAPPLLIB_EXP=\"/home/nick/perl\"'
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='gcc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H
-DAPPLLIB_EXP="/home/nick/perl" -fno-strict-aliasing
-I/usr/local/include',
optimize='-O',
cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H
-DAPPLLIB_EXP="/home/nick/perl" -fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='2.95.4 20020320 [FreeBSD]', 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='gcc', ldflags ='-Wl,-E -L/usr/local/lib'
libpth=/usr/lib /usr/local/lib
libs=-lm -lc -lcrypt -lutil
perllibs=-lm -lc -lcrypt -lutil
libc=, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-DPIC -fpic', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under freebsd
Compiled at Jan 17 2003 12:09:16
%ENV:
PERL_LWP_USE_HTTP_10="1"
@INC:
/home/nick/perl
/home/perl/lib/5.8.0/i386-freebsd
/home/perl/lib/5.8.0
/home/perl/lib/site_perl/5.8.0/i386-freebsd
/home/perl/lib/site_perl/5.8.0
/home/perl/lib/site_perl
/home/nick/perl
.
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 Fri Feb 21 16:28:55 2003 GMT.
-------------8<---------- End Bug Report --------------8<----------
Note: Complete the rest of the details and post this bug report to
dev <at> perl.apache.org. To subscribe to the list send an empty
email to dev-subscribe@perl.apache.org.
- nick
--
~~~~~~~~~~~~~~~~~~~~
Nick Tonkin {|8^)>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: make test fails with httpd 2.044 / mp 1.99_09-dev
Posted by Nick Tonkin <ni...@tonkinresolutions.com>.
On Sun, 23 Feb 2003, Randy Kobes wrote:
> On Mon, 24 Feb 2003, Stas Bekman wrote:
>
> > Nick Tonkin wrote:
> > > Note that the test failing is api/uri; could this be related to the
> > > change:
> > > fix a bug for apr < 0.9.3, where it segfaults in apr_uri_unparse, if
> > > hostname is set, but not the scheme. [Stas]
> > > ?
> >
> > Thanks for the report, Nick. The test was revealing the bug in
> > apr, which I've tried to fix on the mod_perl side. I've fixed
> > apr itself and therefore missed the problem. The APR version
> > constants weren't defined, now that I've included apr_version.h
> > it should be alright. Please test again. Thanks.
>
> That fixes it for me, on Win32. Thanks, Stas!
Also compiles and installs fine on FreeBSD 4.7 :)
- nick
--
~~~~~~~~~~~~~~~~~~~~
Nick Tonkin {|8^)>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: make test fails with httpd 2.044 / mp 1.99_09-dev
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Mon, 24 Feb 2003, Stas Bekman wrote:
> Nick Tonkin wrote:
> > Note that the test failing is api/uri; could this be related to the
> > change:
> > fix a bug for apr < 0.9.3, where it segfaults in apr_uri_unparse, if
> > hostname is set, but not the scheme. [Stas]
> > ?
>
> Thanks for the report, Nick. The test was revealing the bug in
> apr, which I've tried to fix on the mod_perl side. I've fixed
> apr itself and therefore missed the problem. The APR version
> constants weren't defined, now that I've included apr_version.h
> it should be alright. Please test again. Thanks.
That fixes it for me, on Win32. Thanks, Stas!
--
best regards,
randy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: make test fails with httpd 2.044 / mp 1.99_09-dev
Posted by Stas Bekman <st...@stason.org>.
Nick Tonkin wrote:
> Note that the test failing is api/uri; could this be related to the
> change:
> fix a bug for apr < 0.9.3, where it segfaults in apr_uri_unparse, if
> hostname is set, but not the scheme. [Stas]
> ?
Thanks for the report, Nick. The test was revealing the bug in apr, which I've
tried to fix on the mod_perl side. I've fixed apr itself and therefore missed
the problem. The APR version constants weren't defined, now that I've included
apr_version.h it should be alright. Please test again. Thanks.
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: make test fails with httpd 2.044 / mp 1.99_09-dev
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Fri, 21 Feb 2003, Nick Tonkin wrote:
>
> Note that the test failing is api/uri; could this be related to the
> change:
> fix a bug for apr < 0.9.3, where it segfaults in apr_uri_unparse, if
> hostname is set, but not the scheme. [Stas]
> ?
I get the same problem on Win32 perl-5.8 / Apache 2.0.44.
I think it is related to apr_uri_unparse - if one comments
out
ok t_cmp($r->construct_url, $parsed->unparse);
at about line 62 of t/response/TestAPI/uri.pm, then
things are OK for this particular test (the $parsed->unparse
call is the problem for me).
--
best regards,
randy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org