You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Dominique Quatravaux <do...@idealx.com> on 2005/03/03 16:55:03 UTC

[BUG] A few tests fail on RC4/5.6.1/Apache 1.3.26

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- -------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:

Failed Test                      Status Wstat Total Fail  Failed  List
of Failed
- 
--------------------------------------------------------------------------------
t/apache/content_length_header.t                      27    3  11.11%
2, 5, 17

These same tests were failing for me in RC3.

2. Used Components and their Configuration:

*** mod_perl version 1.999021

*** using /home/dom/ftp/mod_perl-2.0.0-RC4/lib/Apache/BuildConfig.pm

*** Makefile.PL options:
~  MP_APR_LIB      => aprext
~  MP_APXS         => /usr/bin/apxs2
~  MP_COMPAT_1X    => 1
~  MP_GENERATE_XS  => 1
~  MP_INST_APACHE2 => 1
~  MP_LIBNAME      => mod_perl
~  MP_USE_DSO      => 1


*** /usr/sbin/apache2 -V
Server version: Apache/2.0.52
Server built:   Nov 10 2004 11:57:35
Server's Module Magic Number: 20020903:9
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_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=""
~ -D SUEXEC_BIN="/usr/lib/apache2/suexec2"
~ -D DEFAULT_PIDLOG="/var/run/httpd.pid"
~ -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
~ -D DEFAULT_LOCKFILE="/var/run/accept.lock"
~ -D DEFAULT_ERRORLOG="logs/error_log"
~ -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
~ -D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"


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

~ -L/usr/lib -lapr-0 -lrt -lm -lnsl  -lpthread
~ -L/usr/lib -laprutil-0 -lldap -llber -ldb-4.2 -lexpat



*** /usr/bin/perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
~  Platform:
~    osname=linux, osvers=2.4.28-es, archname=i386-linux
~    uname='linux gluck 2.4.28-es #1 smp sun nov 21 19:05:12 est 2004
i686 unknown '
~    config_args='-Dccflags=-DDEBIAN -Dcccdlflags=-fPIC
- -Darchname=i386-linux -Dprefix=/usr -Dprivlib=/usr/share/perl/5.6.1
- -Darchlib=/usr/lib/perl/5.6.1 -Dvendorprefix=/usr
- -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5
- -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.6.1
- -Dsitearch=/usr/local/lib/perl/5.6.1 -Dman1dir=/usr/share/man/man1
- -Dman3dir=/usr/share/man/man3 -Dman1ext=1 -Dman3ext=3perl
- -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Uusesfio -Duseshrplib
- -Dlibperl=libperl.so.5.6.1 -Dd_dosuid -des'
~    hint=recommended, useposix=true, d_sigaction=define
~    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
~    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
~    use64bitint=undef use64bitall=undef uselongdouble=undef
~  Compiler:
~    cc='cc', ccflags ='-DDEBIAN -fno-strict-aliasing
- -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
~    optimize='-O2',
~    cppflags='-DDEBIAN -fno-strict-aliasing -I/usr/local/include'
~    ccversion='', gccversion='2.95.4 20011002 (Debian prerelease)',
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, usemymalloc=n, prototype=define
~  Linker and Libraries:
~    ld='cc', ldflags =' -L/usr/local/lib'
~    libpth=/usr/local/lib /lib /usr/lib
~    libs=-lgdbm -ldb -ldl -lm -lc -lcrypt
~    perllibs=-ldl -lm -lc -lcrypt
~    libc=/lib/libc-2.2.5.so, so=so, useshrplib=true,
libperl=libperl.so.5.6.1
~  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: USE_LARGE_FILES
~  Built under linux
~  Compiled at Dec 23 2004 16:34:22
~  %ENV:
~    PERL_LWP_USE_HTTP_10="1"
~  @INC:
~    /usr/local/lib/perl/5.6.1
~    /usr/local/share/perl/5.6.1
~    /usr/lib/perl5
~    /usr/share/perl5
~    /usr/lib/perl/5.6.1
~    /usr/share/perl/5.6.1
~    /usr/local/lib/site_perl
~    .

*** Packages of interest status:

Apache::Request: -
CGI            : 2.752
LWP            : 5.800
mod_perl       : 1.26, 1.999020


This report was generated by ./t/REPORT on Wed Mar  2 17:39:53 2005 GMT.

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

- --
Dominique QUATRAVAUX                           Ingénieur senior
01 44 42 00 08                                 IDEALX

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

iD8DBQFCJzNXMJAKAU3mjcsRAtGnAKCiRXPuQHZTpsSk+8SJZaPt7CZyiQCfVyfy
IWgwO/uk1pauB+jrdtla514=
=ZhoL
-----END PGP SIGNATURE-----



Re: [BUG] A few tests fail on RC4/5.6.1/Debian Apache 2.0.52-3

Posted by Dominique Quatravaux <do...@idealx.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



I said:

|>> If Debian testing turns out to have this problem, I think that
|>> the test should at least be skipped [...]


On Fri, 04 Mar 2005 15:07:36 -0500, Stas Bekman <st...@stason.org> wrote:

|> No.

Well, it's your call Stas. I can perfectly live with a test suite that
fails partially, as I'm maintaining my own test suites for my mod_perl
apps anyway. And when mod_perl 2 final gets rolled out, the Debian
team will package it for testing and deal with the test suite issues
in any way it pleases.

Damon Buckwalter wrote:

| This is caused by a patch that the Debian version applies.  I've
| filed a bug report with them to remove it.

Thanks Damon for dealing with the Debian side of things.

| Contact me off-list if you need assistance with this before the
| Debian package is fixed.

Nice of you, but I'm sure I can proceed OK :)

- --
Dominique QUATRAVAUX                           Ingénieur senior
01 44 42 00 08                                 IDEALX

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

iD8DBQFCKesIMJAKAU3mjcsRAv1hAKCNlB5lNHH8DxcTnQkGr5Dmb6dQUQCglQmv
2wDzBHSNndOqi/utBv2k0oU=
=81Ey
-----END PGP SIGNATURE-----



Re: [BUG] A few tests fail on RC4/5.6.1/Debian Apache 2.0.52-3

Posted by Damon Buckwalter <bu...@gmail.com>.
On Fri, 04 Mar 2005 15:07:36 -0500, Stas Bekman <st...@stason.org> wrote:
> > | Is it possible that you have Apache 2.0.x with some special patches
> > |  from 2.1.x applied to it? My guess is that this is the case. In
> > | which case there is nothing we can do about it, since you aren't
> > | running a proper Apache 2.0.x but some sort of hybrid.
> > |
> > If Debian testing turns out to have this problem, I think that the
> > test should at least be skipped on that distro, otherwise I probably
> > won't be the last one to report this :-).
> 
> No.
> 
> 1) We can't skip the test just based on the fact that it's debian, since
> there will be other people who install a real Apache 2.0.x and not a
> mutant debian package, in which case it should not be skipped.

This is caused by a patch that the Debian version applies.  I've filed
a bug report with them to remove it.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=298143

The patch came from here:
http://svn.apache.org/viewcvs.cgi/httpd-2.0/server/protocol.c?root=Apache&r1=1.150&r2=1.151

The patch was later reverted:
http://cvs.apache.org/viewcvs.cgi?root=Apache-SVN&rev=110141&view=rev

Dominique, you could also just remove that patch from your debian
source package:

debian/patches/035_HEAD_Content-Length_Fix_From_CVS

And rebuild it.  Contact me off-list if you need assistance with this
before the Debian package is fixed.

Re: [BUG] A few tests fail on RC4/5.6.1/Debian Apache 2.0.52-3

Posted by Stas Bekman <st...@stason.org>.
Dominique Quatravaux wrote:
[...]
> | whereas your report says Apache 2.0.52, whereas the error indicates
> |  that you really run Apache 2.1.x. [...] Dominique, did you build
> | Apache by yourself?
> 
> No indeed. This is apache2-mpm-prefork 2.0.52-3 from Debian testing,
> not the latest version in testing either. I cannot readily upgrade
> right now (apt-get says it's willing to install 2.0.53-5, but only if
> I give it permission to wipe out the rest of my system first :-) , but
> I'll try and recompile the .deb from its source and see if the problem
> goes away.

Most likely you will have the same problem with the newer debian package.

> | Is it possible that you have Apache 2.0.x with some special patches
> |  from 2.1.x applied to it? My guess is that this is the case. In
> | which case there is nothing we can do about it, since you aren't
> | running a proper Apache 2.0.x but some sort of hybrid.
> |
> If Debian testing turns out to have this problem, I think that the
> test should at least be skipped on that distro, otherwise I probably
> won't be the last one to report this :-).

No.

1) We can't skip the test just based on the fact that it's debian, since 
there will be other people who install a real Apache 2.0.x and not a 
mutant debian package, in which case it should not be skipped.

2) We can't please every distro out there. This is the same problem with 
distros adding future version patches to the perl-core and claiming to be 
what they aren't.

If you want the mod_perl test suite to pass make sure that you have an 
authentic, unpatched version of Apache and of Perl. Otherwise you are on 
your own (well, you can ask support of your distro).


-- 
__________________________________________________________________
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

Re: [BUG] A few tests fail on RC4/5.6.1/Debian Apache 2.0.52-3

Posted by Dominique Quatravaux <do...@idealx.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stas Bekman wrote:

| Take a look at t/apache/content_length_header.t that's where you
| can see that httpd 2.1 has changed behavior.

True. Search'n-replacing of "have_min_apache_version(2.1)" with "1"
cures the problem.

| What's confusing is that your subject says Apache 1.3.26,

Sorry yet again, wrong package (of course). And subject line changed.

| whereas your report says Apache 2.0.52, whereas the error indicates
|  that you really run Apache 2.1.x. [...] Dominique, did you build
| Apache by yourself?

No indeed. This is apache2-mpm-prefork 2.0.52-3 from Debian testing,
not the latest version in testing either. I cannot readily upgrade
right now (apt-get says it's willing to install 2.0.53-5, but only if
I give it permission to wipe out the rest of my system first :-) , but
I'll try and recompile the .deb from its source and see if the problem
goes away.

| Is it possible that you have Apache 2.0.x with some special patches
|  from 2.1.x applied to it? My guess is that this is the case. In
| which case there is nothing we can do about it, since you aren't
| running a proper Apache 2.0.x but some sort of hybrid.
|
If Debian testing turns out to have this problem, I think that the
test should at least be skipped on that distro, otherwise I probably
won't be the last one to report this :-).

Anyway, thanks a lot for your support.

- --

Dominique QUATRAVAUX                           Ingénieur senior
01 44 42 00 08                                 IDEALX

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

iD8DBQFCKK37MJAKAU3mjcsRAuEuAKCv4uoZcDa/COeBSW+UqncdbKoGyACgothQ
T6rDiDs5fUC7MfWSESVyrF8=
=Qnqh
-----END PGP SIGNATURE-----



Re: [BUG] A few tests fail on RC4/5.6.1/Apache 1.3.26

Posted by Stas Bekman <st...@stason.org>.
Dominique Quatravaux wrote:

> t/apache/content_length_header.1..27
> # testing : GET /TestApache__content_length_header C-L header
> # expected: 0
> # received: undef
> not ok 2
> # testing : GET /TestApache__content_length_header?set_content_length
> C-L header
> # expected: 0
> # received: 25
> not ok 5
> # testing : HEAD /TestApache__content_length_header?set_content_length
> C-L header
> # expected: undef
> # received: 25
> not ok 17

Hmm, tried with 2.0.52 + perl 5.6.1 on linux, and it works fine. What's 
confusing is that your subject says Apache 1.3.26, whereas your report 
says Apache 2.0.52, whereas the error indicates that you really run Apache 
2.1.x. Take a look at t/apache/content_length_header.t that's where you 
can see that httpd 2.1 has changed behavior.

Dominique, did you build Apache by yourself? Is it possible that you have 
Apache 2.0.x with some special patches from 2.1.x applied to it? My guess 
is that this is the case. In which case there is nothing we can do about 
it, since you aren't running a proper Apache 2.0.x but some sort of hybrid.

-- 
__________________________________________________________________
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

Re: [BUG] A few tests fail on RC4/5.6.1/Apache 1.3.26

Posted by Dominique Quatravaux <do...@idealx.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stas Bekman wrote:

|
| Dominique, your report misses an essential info. Please review:
|
http://perl.apache.org/docs/2.0/user/help/help.html#_C_make_test___Failures
|
|
|
| Thanks.
|
Sorry (again).

t/apache/content_length_header.1..27
# testing : GET /TestApache__content_length_header C-L header
# expected: 0
# received: undef
not ok 2
# testing : GET /TestApache__content_length_header?set_content_length
C-L header
# expected: 0
# received: 25
not ok 5
# testing : HEAD /TestApache__content_length_header?set_content_length
C-L header
# expected: undef
# received: 25
not ok 17

I read t/logs/error_log and did not achieve enlightenment:

END in modperl_extra.pl, pid=12592
[Fri Mar 04 11:33:55 2005] [notice] Apache/2.0.52 (Debian GNU/Linux)
world domination series/2.0 mod_perl/1.999.21 Perl/v5.6.1 configured
- -- resuming normal operations
[Fri Mar 04 11:33:55 2005] [info] Server built: Nov 10 2004 11:57:35
[Fri Mar 04 11:33:55 2005] [debug]
/build/buildd/apache2-2.0.52/build-tree/apache2/server/mpm/prefork/prefork.c(955):
AcceptMutex: sysvsem (default: sysvsem)
[Fri Mar 04 11:33:57 2005] [info] Child process pid=12600 is exiting
END in modperl_extra.pl, pid=12600
[Fri Mar 04 11:33:57 2005] [info] Child process pid=12601 is exiting
END in modperl_extra.pl, pid=12601
[Fri Mar 04 11:33:57 2005] [info] removed PID file
/home/dom/ftp/mod_perl-2.0.0-RC4/t/logs/httpd.pid (pid=12596)
[Fri Mar 04 11:33:57 2005] [notice] caught SIGTERM, shutting down
END in modperl_extra.pl, pid=12596

- --
Dominique QUATRAVAUX                           Ingénieur senior
01 44 42 00 08                                 IDEALX

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

iD8DBQFCKDp8MJAKAU3mjcsRAnMwAJ9uf9T736aQbWTLbaF5hxE13e6nBwCfR3vk
xJK6jOmrNBxdsonCx3P5Tdk=
=5vsv
-----END PGP SIGNATURE-----



Re: [BUG] A few tests fail on RC4/5.6.1/Apache 1.3.26

Posted by Stas Bekman <st...@stason.org>.
Dominique Quatravaux wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> - -------------8<---------- Start Bug Report ------------8<----------
> 1. Problem Description:
> 
> Failed Test                      Status Wstat Total Fail  Failed  List
> of Failed
> - 
> -------------------------------------------------------------------------------- 
> 
> t/apache/content_length_header.t                      27    3  11.11%
> 2, 5, 17

Dominique, your report misses an essential info. Please review:
http://perl.apache.org/docs/2.0/user/help/help.html#_C_make_test___Failures

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