You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by sc...@soulcage.net on 2004/09/23 21:25:44 UTC

[mp2] Test 3 (sha) fails in both apr-ext/util.t and apr/util.t

This isn't a show-stopper for me, but I thought I'd post it in case it is
a real problem.  I'll be happy to do whatever testing is necessary...

I'm running a fully updated Fedora Core 2, but I've compiled Perl, Apache,
and mod_perl myself.

Thanks! - Scott

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

  Test 3 (sha) fails in both apr-ext/util.t and apr/util.t

  OUTPUT of t/TEST -verbose apr-ext/util.t apr/util.t
  <<server startup stuff snipped>>
  t/apr-ext/util....1..4
  # Running under perl version 5.008004 for linux
  # Current time local: Thu Sep 23 15:01:36 2004
  # Current time GMT:   Thu Sep 23 19:01:36 2004
  # Using Test.pm version 1.24
  # Using Apache/Test.pm version 1.14
  ok 1
  # crypt
  ok 2
  # sha1
  # Failed test 3 in
/versyss/compile/mod_perl-1.99_16/t/lib/TestAPRlib/util.pm at line 44
fail #2
  not ok 3
  # md5
  ok 4
  FAILED test 3
          Failed 1/4 tests, 75.00% okay
  t/apr/util........1..4
  # Running under perl version 5.008004 for linux
  # Current time local: Thu Sep 23 15:01:33 2004
  # Current time GMT:   Thu Sep 23 19:01:33 2004
  # Using Test.pm version 1.24
  # Using Apache/Test.pm version 1.14
  ok 1
  # crypt
  ok 2
  # sha1
  not ok 3
  # md5
  ok 4
  FAILED test 3
          Failed 1/4 tests, 75.00% okay
  Failed Test      Stat Wstat Total Fail  Failed  List of Failed
  -------------------------------------------------------------------------------
  t/apr-ext/util.t                4    1  25.00%  3
  t/apr/util.t                    4    1  25.00%  3
Failed 2/2 test scripts, 0.00% okay. 2/8 subtests failed, 75.00% okay.

Error Log:

END in modperl_extra.pl, pid=24732
[Thu Sep 23 15:01:34 2004] [notice] Apache/2.0.50 (Unix) mod_perl/1.99_16
Perl/v5.8.4 world domination series/2.0 DAV/2 configured -- resuming
normal operations
[Thu Sep 23 15:01:34 2004] [info] Server built: Sep 22 2004 16:18:32
[Thu Sep 23 15:01:34 2004] [debug] prefork.c(955): AcceptMutex: pthread
(default: pthread)
# Failed test 3 in
/versyss/compile/mod_perl-1.99_16/t/lib/TestAPRlib/util.pm at line 44 fail
#2
[Thu Sep 23 15:01:38 2004] [info] Child process pid=25151 is exiting
END in modperl_extra.pl, pid=25151
[Thu Sep 23 15:01:38 2004] [info] Child process pid=25152 is exiting
END in modperl_extra.pl, pid=25152
[Thu Sep 23 15:01:38 2004] [info] removed PID file
/versyss/compile/mod_perl-1.99_16/t/logs/httpd.pid (pid=24992)
[Thu Sep 23 15:01:38 2004] [notice] caught SIGTERM, shutting down
END in modperl_extra.pl, pid=24992



2. Used Components and their Configuration:

*** mod_perl version 1.9916

*** using /versyss/compile/mod_perl-1.99_16/lib/Apache/BuildConfig.pm

*** Makefile.PL options:
  MP_APR_LIB     => aprext
  MP_APXS        => /versyss/apps/lnx26/apache2/bin/apxs
  MP_COMPAT_1X   => 1
  MP_GENERATE_XS => 1
  MP_LIBNAME     => mod_perl
  MP_USE_DSO     => 1
  MP_USE_STATIC  => 1


*** /versyss/apps/lnx26/apache2/bin/httpd -V
Server version: Apache/2.0.50
Server built:   Sep 22 2004 16:18:32
Server's Module Magic Number: 20020903:8
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="/versyss/apps/lnx26/apache2"
 -D SUEXEC_BIN="/versyss/apps/lnx26/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"


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

 -L/versyss/apps/lnx26/lib -lapr-0 -lrt -lm -lcrypt -lnsl  -lpthread -ldl
 -L/versyss/apps/lnx26/lib -laprutil-0 -lgdbm -ldb-4.2 -lexpat



*** /versyss/apps/lnx26/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
  Platform:
    osname=linux, osvers=2.6, archname=i686-linux-thread-multi
    uname='linux lnx-edi1.benchmark-systems.com 2.6.5-1.358smp #1 smp sat
may 8 09:25:36 edt 2004 i686 i686 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/versyss/apps/lnx26/include
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm',
    optimize='-O2',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-fno-strict-aliasing -I/versyss/apps/lnx26/include
-I/usr/local/include -I/usr/include/gdbm'
    ccversion='', gccversion='3.3.3 20040412 (Red Hat Linux 3.3.3-7)',
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/versyss/apps/lnx26/lib -L/usr/local/lib'
    libpth=/versyss/apps/lnx26/lib /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.3.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.3.3'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fpic', lddlflags='-shared -L/versyss/apps/lnx26/lib
-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 Sep  2 2004 10:54:06
  %ENV:
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /versyss/apps/lnx26/lib/perl5/5.8.4/i686-linux-thread-multi
    /versyss/apps/lnx26/lib/perl5/5.8.4
    /versyss/apps/lnx26/lib/perl5/site_perl/5.8.4/i686-linux-thread-multi
    /versyss/apps/lnx26/lib/perl5/site_perl/5.8.4
    /versyss/apps/lnx26/lib/perl5/site_perl
    /versyss/apps/lib/perl5/site_perl/5.8.4
    .

*** Packages of interest status:

Apache::Request: -
CGI            : 3.04
LWP            : 5.800
mod_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 Thu Sep 23 19:03:20 2004 GMT.

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




-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] Test 3 (sha) fails in both apr-ext/util.t and apr/util.t

Posted by Stas Bekman <st...@stason.org>.
Scott Scecina wrote:
> Stas, you were right on the money.  I had apr/apr-util 0.9.5 (and
> 1.0)built and installed separately and had been building against that. 
> When I built Apache and let it use it's own apr/apr-util everything was
> fine.  Since I also have subversion, I had hoped to use a common apr. 
> Alas, that "feature" is apparently not quite ready for primetime.

It's not your problem, Scott. Here is what happens: APR was/is having a 
single minor version release every year or so, so if we were to wait for 
the new release, most of the tests relying on the new features will be 
skipped for most users. So instead we rely on users having at least the 
version of the apr shipped with a certain version of Apache. Since Apache 
releases are much more frequent, we skip the new features tests based on 
the Apache version. In your case a wrong APR lib was picked up and hence 
the problem. I won't be surprised if we start getting more "bug" reports 
like yours... but I hope not :)

>>scotts.mls@soulcage.net wrote:
>>
>>>This isn't a show-stopper for me, but I thought I'd post it in case it
>>>is
>>>a real problem.  I'll be happy to do whatever testing is necessary...
>>>
>>>I'm running a fully updated Fedora Core 2, but I've compiled Perl,
>>>Apache,
>>>and mod_perl myself.
>>>
>>>Thanks! - Scott
>>>
>>>-------------8<---------- Start Bug Report ------------8<----------
>>>1. Problem Description:
>>>
>>>  Test 3 (sha) fails in both apr-ext/util.t and apr/util.t
>>
>>[...]
>> > Server version: Apache/2.0.50
>>
>>The support for SHA1 was added exactly in the apr bundled with 2.0.50.
>>Unfortunately there was no release number for that particular libapr. Is
>>it possible that you have had an older libapr installed on your system, it
>>for some reason it got deployed instead of the one coming bundled with
>>Apache?
>>
>>does it work with 2.0.51?


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

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] Test 3 (sha) fails in both apr-ext/util.t and apr/util.t

Posted by Scott Scecina <sc...@soulcage.net>.
Stas, you were right on the money.  I had apr/apr-util 0.9.5 (and
1.0)built and installed separately and had been building against that. 
When I built Apache and let it use it's own apr/apr-util everything was
fine.  Since I also have subversion, I had hoped to use a common apr. 
Alas, that "feature" is apparently not quite ready for primetime.

Thanks!

- Scott

> scotts.mls@soulcage.net wrote:
>> This isn't a show-stopper for me, but I thought I'd post it in case it
>> is
>> a real problem.  I'll be happy to do whatever testing is necessary...
>>
>> I'm running a fully updated Fedora Core 2, but I've compiled Perl,
>> Apache,
>> and mod_perl myself.
>>
>> Thanks! - Scott
>>
>> -------------8<---------- Start Bug Report ------------8<----------
>> 1. Problem Description:
>>
>>   Test 3 (sha) fails in both apr-ext/util.t and apr/util.t
> [...]
>  > Server version: Apache/2.0.50
>
> The support for SHA1 was added exactly in the apr bundled with 2.0.50.
> Unfortunately there was no release number for that particular libapr. Is
> it possible that you have had an older libapr installed on your system, it
> for some reason it got deployed instead of the one coming bundled with
> Apache?
>
> does it work with 2.0.51?
>
> --
> __________________________________________________________________
> 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
>
> --
> Report problems: http://perl.apache.org/bugs/
> Mail list info: http://perl.apache.org/maillist/modperl.html
> List etiquette: http://perl.apache.org/maillist/email-etiquette.html
>
>



-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] Test 3 (sha) fails in both apr-ext/util.t and apr/util.t

Posted by Stas Bekman <st...@stason.org>.
scotts.mls@soulcage.net wrote:
> This isn't a show-stopper for me, but I thought I'd post it in case it is
> a real problem.  I'll be happy to do whatever testing is necessary...
> 
> I'm running a fully updated Fedora Core 2, but I've compiled Perl, Apache,
> and mod_perl myself.
> 
> Thanks! - Scott
> 
> -------------8<---------- Start Bug Report ------------8<----------
> 1. Problem Description:
> 
>   Test 3 (sha) fails in both apr-ext/util.t and apr/util.t
[...]
 > Server version: Apache/2.0.50

The support for SHA1 was added exactly in the apr bundled with 2.0.50. 
Unfortunately there was no release number for that particular libapr. Is 
it possible that you have had an older libapr installed on your system, it 
for some reason it got deployed instead of the one coming bundled with Apache?

does it work with 2.0.51?

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

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html