perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "maurizio amendola" <m.amend...@fineco.it>
Subject RE: [mp2] error make test on test t/closure.t
Date Thu, 16 Jun 2005 13:05:48 GMT
Hi
I found a trink to resolv this problem, but I don't know 
If it's the right solution.

--- closure.t.backup	Mon Jun 13 16:30:56 2005
+++ closure.t	Thu Jun 16 15:00:47 2005
@@ -88,7 +88,7 @@ my $orig_mtime = (stat($path))[8];
     my $third = same_interp_req_body($same_interp, \&GET, $url);
     same_interp_skip_not_found(
         (scalar(grep defined, $first, $second, $third) != 3),
-        $third,
+        $first && $second && ($third - $second),
         1,
         "no closure on the first request",
     );
@@ -122,7 +122,7 @@ my $orig_mtime = (stat($path))[8];
     my $third = same_interp_req_body($same_interp, \&GET, $url);
     same_interp_skip_not_found(
         (scalar(grep defined, $first, $second, $third) != 3),
-        $first && $second && $third - $second,
+        $first && $second && ($third - $second),
         1,
         "no reload on modification, the closure problem persists",
     );

Is it so wrong?
maurizio


-----Original Message-----
From: maurizio amendola [mailto:m.amendola@fineco.it] 
Sent: lunedì 13 giugno 2005 9.37
To: modperl@perl.apache.org
Subject: [mp2] error make test on test t/closure.t


Hi
I hope this time to put all info.


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

I have a problem when I do 
Make test.
The problem is on test on "t/closure.t".

I have tested also with The latest SVN snapshot, but I have the same result.


This is the individual test log:


/usr/local/apache2/bin/httpd  -d /tmp/modperl-2.0/ModPerl-Registry/t -f
/tmp/modperl-2.0/ModPerl-Registry/t/conf/httpd.conf -D APACHE2 
using Apache/2.0.54 (prefork MPM)

waiting 90 seconds for server to start: ......
waiting 90 seconds for server to start: ok (waited 5 secs) server
localhost:8529 started t/closure....1..6 # Running under perl version
5.008006 for freebsd # Current time local: Mon Jun 13 09:14:03 2005
# Current time GMT:   Mon Jun 13 07:14:03 2005
# Using Test.pm version 1.25
# Using Apache/Test.pm version 1.25
# 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
# 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
Failed Test Stat Wstat Total Fail  Failed  List of Failed
----------------------------------------------------------------------------
---
t/closure.t                6    1  16.67%  4
Failed 1/1 test scripts, 0.00% okay. 1/6 subtests failed, 83.33% okay.




2. Used Components and their Configuration:

*** mod_perl version 2.000001

*** using /tmp/modperl-2.0/lib/Apache2/BuildConfig.pm

*** Makefile.PL options:
  MP_APR_LIB      => aprext
  MP_APXS         => /usr/local/apache2/bin/apxs
  MP_AP_CONFIGURE => /usr/local/apache2/conf/http.conf
  MP_COMPAT_1X    => 1
  MP_GENERATE_XS  => 1
  MP_LIBNAME      => mod_perl
  MP_USE_DSO      => 1


*** /usr/local/apache2/bin/httpd -V
Server version: Apache/2.0.54
Server built:   May 12 2005 10:14:18
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 disabled)
 -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/apache2"
 -D SUEXEC_BIN="/usr/local/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/usr/local/apache2/lib -laprutil-0 -lldap -llber -lexpat -liconv
-L/usr/local/apache2/lib -lapr-0 -lm -lcrypt 



*** /usr/local/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
  Platform:
    osname=freebsd, osvers=5.4-stable, archname=i386-freebsd-64int
    uname='freebsd webmailsv.finecocity.it 5.4-stable freebsd 5.4-stable #0:
fri apr 22 12:09:03 cest 2005
root@webmailsv.finecocity.it:usrobjusrsrcsysmykernel i386 '
    config_args='-sde -Dprefix=/usr/local
-Darchlib=/usr/local/lib/perl5/5.8.6/mach
-Dprivlib=/usr/local/lib/perl5/5.8.6
-Dman3dir=/usr/local/lib/perl5/5.8.6/perl/man/man3
-Dman1dir=/usr/local/man/man1
-Dsitearch=/usr/local/lib/perl5/site_perl/5.8.6/mach
-Dsitelib=/usr/local/lib/perl5/site_perl/5.8.6 -Dscriptdir=/usr/local/bin
-Dsiteman3dir=/usr/local/lib/perl5/5.8.6/man/man3
-Dsiteman1dir=/usr/local/man/man1 -Ui_malloc -Ui_iconv -Uinstallusrbinperl
-Dcc=cc -Doptimize=-O2 -pipe -funroll-loops -ffast-math -march=pentium3
-Duseshrplib -Acppflags=-DPERL_USE_SAFE_PUTENV -Dusethreads
-Dccflags=-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.6/BSDPAN" -Ud_dosuid
-Ui_gdbm -Dusethreads=n -Dusemymalloc=y -Duse64bitint'
    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=define use64bitall=undef uselongdouble=undef
    usemymalloc=y, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.6/BSDPAN"
-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe
-I/usr/local/include',
    optimize='-O2 -pipe -funroll-loops -ffast-math -march=pentium3',
    cppflags='-DPERL_USE_SAFE_PUTENV
-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.6/BSDPAN" -DHAS_FPSETMASK
-DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion='', gccversion='3.4.2 [FreeBSD] 20040728', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -Wl,-E -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib
    libs=-lm -lcrypt -lutil
    perllibs=-lm -lcrypt -lutil
    libc=, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='
-Wl,-R/usr/local/lib/perl5/5.8.6/mach/CORE'
    cccdlflags='-DPIC -fPIC', lddlflags='-shared  -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
  Locally applied patches:
	SUIDPERLIO0 - fix PERLIO_DEBUG local root exploit (CAN-2005-0155)
	SUIDPERLIO1 - fix PERLIO_DEBUG buffer overflow (CAN-2005-0156)
  Built under freebsd
  Compiled at Jun  9 2005 15:06:13
  %ENV:
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /usr/local/lib/perl5/site_perl/5.8.6/mach
    /usr/local/lib/perl5/site_perl/5.8.6
    /usr/local/lib/perl5/site_perl
    /usr/local/lib/perl5/5.8.6/BSDPAN
    /usr/local/lib/perl5/5.8.6/mach
    /usr/local/lib/perl5/5.8.6
    .

*** Packages of interest status:

Apache2            : -
Apache2::Request   : -
CGI                : 3.05, 3.10
ExtUtils::MakeMaker: 6.17, undef
LWP                : 5.803
mod_perl           : -
mod_perl2          : -


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 Mon Jun 13 07:16:06 2005 GMT.

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

Thank you
maurizio




Mime
View raw message