You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by gSOAP acct <gs...@yahoo.com> on 2004/04/26 01:07:28 UTC

mod_perl 2.0 make test failures

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

	I get a lot of test failures when I run make test.

	Here's the output from the make test ...

linux:/home/Plankton/mod_perl/mod_perl-1.99_13 # rm
t/logs/error_log 
linux:/home/Plankton/mod_perl/mod_perl-1.99_13 #
export APACHE_TEST_PORT=44444
linux:/home/Plankton/mod_perl/mod_perl-1.99_13 # make
test TEST_VERBOSE=1 TEST_FILES='t/apache/add_config.t'
cd "src/modules/perl" && make -f Makefile.modperl
make[1]: Entering directory
`/home/Plankton/mod_perl/mod_perl-1.99_13/src/modules/perl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/home/Plankton/mod_perl/mod_perl-1.99_13/src/modules/perl'
make[1]: Entering directory
`/home/Plankton/mod_perl/mod_perl-1.99_13/Apache-Test'
	.
	.
	.
make[1]: Leaving directory
`/home/Plankton/mod_perl/mod_perl-1.99_13/xs'
/usr/bin/perl -Iblib/arch/Apache2 -Iblib/lib/Apache2 \
t/TEST -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl
/home/Plankton/mod_perl/mod_perl-1.99_13/t/TEST -clean
APACHE_TEST_GROUP= APACHE_TEST_HTTPD=
APACHE_TEST_PORT=44444 APACHE_TEST_USER=
APACHE_TEST_APXS= \
/usr/bin/perl -Iblib/arch/Apache2 -Iblib/lib/Apache2 \
t/TEST -bugreport -verbose=1 t/apache/add_config.t
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl
/home/Plankton/mod_perl/mod_perl-1.99_13/t/TEST
-bugreport -verbose=1 't/apache
/add_config.t'
[warning] root mode: changing the files ownership to
'nobody' (65534:65533)
[warning] testing whether 'nobody' is able to -rwx
/home/Plankton/mod_perl/mod_perl-1.99_13/t
/usr/bin/perl
-Mlib=/home/Plankton/mod_perl/mod_perl-1.99_13/Apache-Test/lib
-MApache::TestRun -e 'eval { Apache::
TestRun::run_root_fs_test(65534, 65533,
q[/home/Plankton/mod_perl/mod_perl-1.99_13/t]) }';


[warning] result: OK
/usr/local/apache2/bin/httpd -d
/home/Plankton/mod_perl/mod_perl-1.99_13/t -f
/home/Plankton/mod_perl/mod_perl-1.9
9_13/t/conf/httpd.conf -D APACHE2 -D PERL_USEITHREADS
using Apache/2.0.48 (prefork MPM)

waiting 120 seconds for server to start: ....[Sun Apr
25 15:05:42 2004] [info] 27 Apache:: modules loaded
[Sun Apr 25 15:05:42 2004] [info] 5 APR:: modules
loaded
[Sun Apr 25 15:05:42 2004] [info] base server + 16
vhosts ready to run tests
.......
waiting 120 seconds for server to start: ok (waited 10
secs)
server localhost:44444 started
server localhost:44445 listening (TestModperl::merge)
server localhost:44446 listening
(TestModperl::perl_options)
server localhost:44447 listening
(TestModperl::setupenv)
server localhost:44448 listening (TestVhost::config)
server localhost:44449 listening (TestProtocol::echo)
server localhost:44450 listening
(TestProtocol::echo_filter)
	.
	.
	.
server localhost:44464 listening
(TestDirective::perlloadmodule6)
t/apache/add_config....request has failed (the
response code was: 500)
see t/logs/error_log for more details
dubious
        Test returned status 111 (wstat 28416, 0x6f00)
Scalar found where operator expected at (eval 171)
line 1, near "'int'  $__val"
        (Missing operator before   $__val?)
[warning] server localhost:44444 shutdown
[  error] error running tests (please examine
t/logs/error_log)
+--------------------------------------------------------+
| Please file a bug report:
http://perl.apache.org/bugs/ |
+--------------------------------------------------------+
make: *** [run_tests] Error 1
linux:/home/Plankton/mod_perl/mod_perl-1.99_13 #
linux:/home/Plankton/mod_perl/mod_perl-1.99_13 # cat
t/logs/error_log 
END in modperl_extra.pl, pid=5726
[Sun Apr 25 15:05:49 2004] [notice] Apache/2.0.48
(Unix) mod_perl/1.99_13 Perl/v5.8.0 configured --
resuming normal operations
[Sun Apr 25 15:05:49 2004] [info] Server built: Feb 26
2004 22:37:51
[Sun Apr 25 15:05:49 2004] [debug] prefork.c(1037):
AcceptMutex: sysvsem (default: sysvsem)
[Sun Apr 25 15:05:51 2004] [error] server reached
MaxClients setting, consider raising the MaxClients
setting
[Sun Apr 25 15:05:54 2004] [info] Child process
pid=5733 is exiting
[Sun Apr 25 15:05:54 2004] [info] Child process
pid=5730 is exiting
[Sun Apr 25 15:05:54 2004] [info] removed PID file
/home/Plankton/mod_perl/mod_perl-1.99_13/t/logs/httpd.pid
(pid=5728)
[Sun Apr 25 15:05:54 2004] [notice] caught SIGTERM,
shutting down
END in modperl_extra.pl, pid=5728

Some addtional info ... I am using Suse Linux
uname -a
Linux linux 2.4.20-4GB #1 Mon Mar 17 17:54:44 UTC 2003
i686 unknown unknown GNU/Linux

Also I was getting internal complier errors so I
upgrade my gcc to gcc 3.4 ...
 
lrwxrwxrwx    1 root     root           18 2004-04-24
22:46 /usr/bin/cc -> /usr/local/bin/gcc

Reading specs from
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/specs
Configured with: ./configure 
Thread model: posix
gcc version 3.4.0

Here is the current httpd I am running ...

telnet localhost 80
Trying ::1...
Connected to localhost.
Escape character is '^]'.
HEAD / HTTP/1.0


HTTP/1.1 200 OK
Date: Sun, 25 Apr 2004 22:27:39 GMT
Server: Apache/2.0.48 (Unix)
Content-Location: index.html.en
Vary: negotiate,accept-language,accept-charset
TCN: choice
Last-Modified: Fri, 04 May 2001 00:01:18 GMT
ETag: "3ba77-5b0-40446f80;3ba8d-961-8562af00"
Accept-Ranges: bytes
Content-Length: 1456
Connection: close
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en
Expires: Sun, 25 Apr 2004 22:27:39 GMT

Connection closed by foreign host.

I hope I have provided enough information and THANK
YOU!

2. Used Components and their Configuration:

*** mod_perl version 1.9913

*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
  MP_APXS         => /usr/local/apache2/bin/apxs
  MP_COMPAT_1X    => 1
  MP_GENERATE_XS  => 1
  MP_INST_APACHE2 => 1
  MP_LIBNAME      => mod_perl
  MP_USE_DSO      => 1
  MP_USE_STATIC   => 1


*** /usr/local/apache2/bin/httpd -V
Server version: Apache/2.0.48
Server built:   Feb 26 2004 22:37:51
Server's Module Magic Number: 20020903:4
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="/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"


*** /usr/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion
0) configuration:
  Platform:
    osname=linux, osvers=2.4.20,
archname=i586-linux-thread-multi
    uname='linux d20 2.4.20 #1 smp thu oct 10 18:10:26
utc 2002 i686 unknown unknown gnulinux '
    config_args='-ds -e -Dprefix=/usr -Dusethreads
-Di_db -Di_dbm -Di_ndbm -Di_gdbm -Duseshrplib=true'
    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
-fno-strict-aliasing -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
    optimize='-O3 --pipe',
    cppflags='-D_REENTRANT -D_GNU_SOURCE
-fno-strict-aliasing'
    ccversion='', gccversion='3.3 20030226
(prerelease) (SuSE Linux)', 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 =''
    libpth=/lib /usr/lib /usr/local/lib
    libs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt
-lutil
    libc=, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.3.2'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-rdynamic
-Wl,-rpath,/usr/lib/perl5/5.8.0/i586-linux-thread-multi/CORE'
    cccdlflags='-fPIC', lddlflags='-shared'


Characteristics of this binary (from libperl): 
  Compile-time options: MULTIPLICITY USE_ITHREADS
USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
  Built under linux
  Compiled at Mar 13 2003 22:22:34
  %ENV:
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /usr/lib/perl5/5.8.0/i586-linux-thread-multi
    /usr/lib/perl5/5.8.0
   
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.0
    /usr/lib/perl5/site_perl
    .

*** Packages of interest status:

Apache::Request: -
CGI            : 3.05
LWP            : 5.76
mod_perl       : 1.29


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 Sun Apr 25
22:21:38 2004 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.


	
		
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25�
http://photos.yahoo.com/ph/print_splash

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: mod_perl 2.0 make test failures

Posted by Stas Bekman <st...@stason.org>.
gSOAP acct wrote:
> -------------8<---------- Start Bug Report
> ------------8<----------
> 1. Problem Description:
> 
> 	I get a lot of test failures when I run make test.

but you showed us the failure of the first one. I guess a lot more fail, right?

Please get the current modperl cvs and try again. Most likely it's the ipv6 
issue, solved in the latest Apache-Test version.
http://perl.apache.org/download/source.html#Development_mod_perl_2_0_Source_Distribution

If it still not working, trying building all 3 parts with the same compiler. 
At least mod_perl and perl need to be built with the same compiler.

__________________________________________________________________
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