You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Mr jeremy pennington <je...@yahoo.com> on 2004/11/04 04:48:12 UTC

[mp2] Solaris: make test failures

I am new to modperl and have been trying to get it
running for the past week but not having any luck. The
first time I run make test it errored out and said
unable to start the server, but I tried again later
and got past that and now I get the following errors.
I am running solaris 9, apache 2.0.52, mod_perl
1.99_17, perl 5.6.1. I greatly appreciate any help,
ideas, suggestions, trys.

Using /usr/local/src/mod_perl-1.99_17/blib
-------------8<---------- Start Bug Report
------------8<----------
1. Problem Description:

 t/modperl/request_rec_tie_api.t and
t/protocol/pseudo_http.t fail during make test

2. Used Components and their Configuration:

*** mod_perl version 1.9917

*** using
/usr/local/src/mod_perl-1.99_17/lib/Apache/BuildConfig.pm

*** Makefile.PL options:
  MP_APR_LIB      => aprext
  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


*** /usr/local/apache2/bin/httpd -V
Server version: Apache/2.0.52
Server built:   Nov  1 2004 13:52:31
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_FCNTL_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"


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

 -L/usr/local/apache2/lib -lapr-0 -lsendfile -lrt -lm
-lsocket -lnsl -lresolv  -lpthread -ldl
 -L/usr/local/apache2/lib -laprutil-0 -lexpat



*** /usr/perl5/5.6.1/bin/perl -V
Summary of my perl5 (revision 5.0 version 6 subversion
1) configuration:
  Platform:
    osname=solaris, osvers=2.9,
archname=sun4-solaris-64int
    uname='sunos localhost 5.9 sun4u sparc
sunw,ultra-1'
    config_args=''
    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=define use64bitall=undef
uselongdouble=undef
  Compiler:
    cc='cc', ccflags ='-D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
    optimize='',
    cppflags=''
    ccversion='Sun WorkShop', gccversion='',
gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8,
byteorder=87654321
    d_longlong=define, longlongsize=8,
d_longdbl=define, longdblsize=16
    ivtype='long long', ivsize=8, nvtype='double',
nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =''
    libpth=/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc
    perllibs=-lsocket -lnsl -ldl -lm -lc
    libc=/lib/libc.so, so=so, useshrplib=true,
libperl=libperl.so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-R
/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE'
    cccdlflags='-fPIC', lddlflags='-G'


Characteristics of this binary (from libperl): 
  Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
  Locally applied patches:
     9676 Port the OpenBSD glob() security patch
     9678 Addendum to #9676: some missing changes from
OpenBSD glob.c
     9679 Up $File::Glob::VERSION, add OpenBSD glob
version note
     9693 $VERSION and Version() on same line provokes
CPAN.pm warning
     9706 #7210 broke .packlist generation
     9707 ExtUtils::Installed doesn't quote regex
metacharacters in paths
     9775 Typo in utf8.h
     9950 Revert integration of #8254,#8255 in #8620
(causes coredump)
    10021 Insecure regexes
    10091 $ref1 == $ref2 behaves unpredictably if not
NV_PRESERVES_UV
    10093 Incorrect line numbers in AutoSplit
    10100 [20010514.027] PL_last_in_gv may not be GV
if stale filehandle
    10145 [20010515.004] Segfaults from premature GC
    10203 Don't think about UTF8
    10250 [20010422.005] perl -e '{s//${}/; //}'
segfaults
    10394 Leakage of file scope lexicals into
predeclared subroutines
    10404 eval.t was relying on pre-#10394 buggy
behavior
    10412 Rationalize locale handling to fix bugs
uncovered by #10394
    10422 Potential buffer overrun if the radix
separator > 1 byte
    10448 Lexicals outside eval weren't resolved
correctly pre-#10394
    10450 Optimize #10448 slightly
    10543 Add LC_MESSAGES constant to POSIX module
    10667 #10449 broke visibility of lexicals inside
DB::DB()
    10739 C<eval "/x$\r\n/x"> fails to compile
correctly
    10939 Proposed fix for Pod::Man
    11169 Doc patch for Tie::Hash
    11374 Make h2ph grok ccsymbols fo the form 1234L,
1234ULL etc
    11427 t/harness wasn't picking up all the tests
    11428 run/runenv.t needs fflushNULL sanity
    11431 pod/*.t tests not picked up by t/TEST either
    11510 eval 'format foo=' would loop indefinitely
    11713 UTF8 wasn't printing for PVMGs
    11716 UTF8 flag should be meaningful only when POK
    11808 [20010831.002] Bug in Term::Cap on Solaris
ansi terminal
    11847 Typo in perl_clone() code causes local(*foo)
breakage
    12005 [20010912.007] substr reference core dump
    12024 Fix local() precedence bug in #8311
    12303 Fix 'local $!=0;undef*STDOUT;' segfault
    12304 Pod::Html makes a poor guess at author
    12350 Typo in IO::Seekable doc
    12496 Carp::shortmess_heavy() doesn't notice
trailing newline
    12549 readline() doesn't work with 'our' variables
    12550 #12549 wasn't aware of strictures
    12752 croak(Nullch) wasn't printing the contents
of ERRSV
    12811 [20011101.069] \stat('.') gives 'free unref
scalar' error
    12812 Slight modification of #12811
    13149 Integrate #13147 from mainline (fixes nit in
#10091)
    13261 Integrate #8340,#13260 from mainline
  Built under solaris
  Compiled at Apr  6 2002 14:45:34
  %ENV:
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /usr/perl5/5.6.1/lib/sun4-solaris-64int
    /usr/perl5/5.6.1/lib
    /usr/perl5/site_perl/5.6.1/sun4-solaris-64int
    /usr/perl5/site_perl/5.6.1
    /usr/perl5/site_perl
    /usr/perl5/vendor_perl/5.6.1/sun4-solaris-64int
    /usr/perl5/vendor_perl/5.6.1
    /usr/perl5/vendor_perl
    .

*** Packages of interest status:

Apache::Request: -
CGI            : -
LWP            : 5.800
mod_perl       : 1.9917, 1.9917


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 Nov  4
03:27:28 2004 GMT.

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


The last few lines of make test.

# Make test

Failed Test                     Status Wstat Total
Fail  Failed  List of Failed
--------------------------------------------------------------------------------
t/modperl/request_rec_tie_api.t                3    3
100.00%  1-3
t/protocol/pseudo_http.t                      13   11 
84.62%  2-8, 10-13
20 tests skipped.
Failed 2/216 test scripts, 99.07% okay. 14/3340
subtests failed, 99.58% okay.
[warning] server localhost:8529 shutdown
[  error] error running tests (please examine
t/logs/error_log)
[  error] oh darn, server dumped core 
[  error] for stacktrace, run: gdb
/usr/local/apache2/bin/httpd -core
/usr/local/src/mod_perl-1.99_17/t/core

# t/TEST -verbose modperl/request_rec_tie_api.t

Using /usr/local/src/mod_perl-1.99_17/blib
[   info] consider removing an old
/usr/local/src/mod_perl-1.99_17/t/core file before
running tests
[warning] root mode: changing the files ownership to
'nobody' (60001:60001)
[warning] testing whether 'nobody' is able to -rwx
/usr/local/src/mod_perl-1.99_17/t
"/usr/bin/perl"
-Mlib=/usr/local/src/mod_perl-1.99_17/Apache-Test/lib
-MApache::TestRun -e 'eval {
Apache::TestRun::run_root_fs_test(60001, 60001,
q[/usr/local/src/mod_perl-1.99_17/t]) }';


[warning] result: OK
[warning] the client side drops 'root' permissions and
becomes 'nobody'
/usr/local/apache2/bin/httpd  -d
/usr/local/src/mod_perl-1.99_17/t -f
/usr/local/src/mod_perl-1.99_17/t/conf/httpd.conf -D
APACHE2 
using Apache/2.0.52 (prefork MPM)

waiting 120 seconds for server to start: ...[Wed Nov
03 20:33:44 2004] [info] 26 Apache:: modules loaded
[Wed Nov 03 20:33:44 2004] [info] 7 APR:: modules
loaded
[Wed Nov 03 20:33:44 2004] [info] base server + 26
vhosts ready to run tests
............
waiting 120 seconds for server to start: ok (waited 14
secs)
server localhost:8529 started
server localhost:8530 listening (TestModules::proxy)
server localhost:8531 listening (TestModperl::merge)
server localhost:8532 listening
(TestModperl::perl_options)
server localhost:8533 listening
(TestModperl::setupenv)
server localhost:8534 listening
(TestFilter::in_str_msg)
server localhost:8535 listening (TestVhost::config)
server localhost:8536 listening (TestVhost::log)
server localhost:8537 listening (TestUser::rewrite)
server localhost:8538 listening
(TestProtocol::pseudo_http)
server localhost:8539 listening
(TestProtocol::echo_bbs2)
server localhost:8540 listening
(TestProtocol::echo_block)
server localhost:8541 listening
(TestProtocol::echo_timeout)
server localhost:8542 listening
(TestProtocol::echo_filter)
server localhost:8543 listening
(TestProtocol::echo_bbs)
server localhost:8544 listening
(TestProtocol::echo_nonblock)
server localhost:8545 listening
(TestPreConnection::note)
server localhost:8546 listening (TestHooks::trans)
server localhost:8547 listening (TestHooks::hookrun)
server localhost:8548 listening (TestHooks::startup)
server localhost:8549 listening
(TestHooks::stacked_handlers2)
server localhost:8550 listening (TestHooks::init)
server localhost:8551 listening
(TestFilter::in_bbs_inject_header)
server localhost:8552 listening
(TestFilter::both_str_con_add)
server localhost:8553 listening
(TestFilter::in_bbs_msg)
server localhost:8554 listening
(TestDirective::perlmodule)
server localhost:8555 listening
(TestDirective::perlrequire)
server localhost:8556 listening
(TestDirective::perlloadmodule3)
server localhost:8557 listening
(TestDirective::perlloadmodule4)
server localhost:8558 listening
(TestDirective::perlloadmodule5)
server localhost:8559 listening
(TestDirective::perlloadmodule6)
t/modperl/request_rec_tie_api.1..3
# Using Apache/Test.pm version 1.16
FAILED tests 1-3
        Failed 3/3 tests, 0.00% okay
Failed Test                     Status Wstat Total
Fail  Failed  List of Failed
--------------------------------------------------------------------------------
t/modperl/request_rec_tie_api.t                3    3
100.00%  1-3
Failed 1/1 test scripts, 0.00% okay. 3/3 subtests
failed, 0.00% okay.
[warning] server localhost:8529 shutdown
[  error] error running tests (please examine
t/logs/error_log)
[  error] oh rats, server dumped core 
[  error] for stacktrace, run: gdb
/usr/local/apache2/bin/httpd -core
/usr/local/src/mod_perl-1.99_17/t/core


Error Log from t/TEST -verbose
modperl/request_rec_tie_api.t

"error_log" 24 lines, 1939 characters 
[Wed Nov 03 20:33:45 2004] [info] Init: Initializing
OpenSSL library
[Wed Nov 03 20:33:45 2004] [info] Init: Seeding PRNG
with 0 bytes of entropy
[Wed Nov 03 20:33:45 2004] [info] Init: Generating
temporary RSA private keys (5
12/1024 bits)
[Wed Nov 03 20:33:49 2004] [info] Init: Generating
temporary DH parameters (512/
1024 bits)
[Wed Nov 03 20:33:49 2004] [warn] Init: Session Cache
is not configured [hint: S
SLSessionCache]
[Wed Nov 03 20:33:49 2004] [info] Init: Initializing
(virtual) servers for SSL
[Wed Nov 03 20:33:49 2004] [info] Server:
Apache/2.0.52, Interface: mod_ssl/2.0.
52, Library: OpenSSL/0.9.7b
END in modperl_extra.pl, pid=18922
[Wed Nov 03 20:33:53 2004] [info] Init: Initializing
OpenSSL library
[Wed Nov 03 20:33:53 2004] [info] Init: Seeding PRNG
with 0 bytes of entropy
[Wed Nov 03 20:33:53 2004] [info] Init: Generating
temporary RSA private keys (5
12/1024 bits)
[Wed Nov 03 20:33:56 2004] [info] Init: Generating
temporary DH parameters (512/
1024 bits)
[Wed Nov 03 20:33:56 2004] [info] Init: Initializing
(virtual) servers for SSL
[Wed Nov 03 20:33:56 2004] [info] Server:
Apache/2.0.52, Interface: mod_ssl/2.0.
52, Library: OpenSSL/0.9.7b
[Wed Nov 03 20:33:56 2004] [notice] Apache/2.0.52
(Unix) mod_perl/1.99_17 Perl/v
5.6.1 world domination series/2.0 mod_ssl/2.0.52
OpenSSL/0.9.7b PHP/4.3.2 config
ured -- resuming normal operations
[Wed Nov 03 20:33:56 2004] [info] Server built: Nov  1
2004 13:52:31
[Wed Nov 03 20:33:56 2004] [debug] prefork.c(955):
AcceptMutex: fcntl (default:
fcntl)
[Wed Nov 03 20:34:01 2004] [info] Child process
pid=18936 is exiting
END in modperl_extra.pl, pid=18936
[Wed Nov 03 20:34:01 2004] [info] Child process
pid=18951 is exiting
END in modperl_extra.pl, pid=18951
[Wed Nov 03 20:34:01 2004] [info] removed PID file
/usr/local/src/mod_perl-1.99_
17/t/logs/httpd.pid (pid=18929)
[Wed Nov 03 20:34:01 2004] [notice] caught SIGTERM,
shutting down
END in modperl_extra.pl, pid=18929





# t/TEST -verbose protocol/pseudo_http

Using /usr/local/src/mod_perl-1.99_17/blib
[   info] consider removing an old
/usr/local/src/mod_perl-1.99_17/t/core file before
running tests
[warning] root mode: changing the files ownership to
'nobody' (60001:60001)
[warning] testing whether 'nobody' is able to -rwx
/usr/local/src/mod_perl-1.99_17/t
"/usr/bin/perl"
-Mlib=/usr/local/src/mod_perl-1.99_17/Apache-Test/lib
-MApache::TestRun -e 'eval {
Apache::TestRun::run_root_fs_test(60001, 60001,
q[/usr/local/src/mod_perl-1.99_17/t]) }';


[warning] result: OK
[warning] the client side drops 'root' permissions and
becomes 'nobody'
/usr/local/apache2/bin/httpd  -d
/usr/local/src/mod_perl-1.99_17/t -f
/usr/local/src/mod_perl-1.99_17/t/conf/httpd.conf -D
APACHE2 
using Apache/2.0.52 (prefork MPM)

waiting 120 seconds for server to start: ...[Wed Nov
03 19:24:27 2004] [info] 26 Apache:: modules loaded
[Wed Nov 03 19:24:27 2004] [info] 7 APR:: modules
loaded
[Wed Nov 03 19:24:27 2004] [info] base server + 26
vhosts ready to run tests
.........
waiting 120 seconds for server to start: ok (waited 11
secs)
server localhost:8529 started
server localhost:8530 listening (TestModules::proxy)
server localhost:8531 listening (TestModperl::merge)
server localhost:8532 listening
(TestModperl::perl_options)
server localhost:8533 listening
(TestModperl::setupenv)
server localhost:8534 listening
(TestFilter::in_str_msg)
server localhost:8535 listening (TestVhost::config)
server localhost:8536 listening (TestVhost::log)
server localhost:8537 listening (TestUser::rewrite)
server localhost:8538 listening
(TestProtocol::pseudo_http)
server localhost:8539 listening
(TestProtocol::echo_bbs2)
server localhost:8540 listening
(TestProtocol::echo_block)
server localhost:8541 listening
(TestProtocol::echo_timeout)
server localhost:8542 listening
(TestProtocol::echo_filter)
server localhost:8543 listening
(TestProtocol::echo_bbs)
server localhost:8544 listening
(TestProtocol::echo_nonblock)
server localhost:8545 listening
(TestPreConnection::note)
server localhost:8546 listening (TestHooks::trans)
server localhost:8547 listening (TestHooks::hookrun)
server localhost:8548 listening (TestHooks::startup)
server localhost:8549 listening
(TestHooks::stacked_handlers2)
server localhost:8550 listening (TestHooks::init)
server localhost:8551 listening
(TestFilter::in_bbs_inject_header)
server localhost:8552 listening
(TestFilter::both_str_con_add)
server localhost:8553 listening
(TestFilter::in_bbs_msg)
server localhost:8554 listening
(TestDirective::perlmodule)
server localhost:8555 listening
(TestDirective::perlrequire)
server localhost:8556 listening
(TestDirective::perlloadmodule3)
server localhost:8557 listening
(TestDirective::perlloadmodule4)
server localhost:8558 listening
(TestDirective::perlloadmodule5)
server localhost:8559 listening
(TestDirective::perlloadmodule6)
t/protocol/pseudo_http.# connecting to localhost:8538
1..13
# Using Apache/Test.pm version 1.16
ok 1
# testing : greeting
# expected: HELO
# received: 
not ok 2
# Failed test 2 in t/protocol/pseudo_http.t at line 63
# send: HELO
# testing : login
# expected: Login:
# received: 
not ok 3
# Failed test 3 in t/protocol/pseudo_http.t at line 63
fail #2
# send: stas
# testing : good password
# expected: Password:
# received: 
not ok 4
# Failed test 4 in t/protocol/pseudo_http.t at line 63
fail #3
# send: foobar
# testing : banner
# expected: Welcome to TestProtocol::pseudo_http
# received: 
not ok 5
# Failed test 5 in t/protocol/pseudo_http.t at line 57
# testing : date
# expected: Available commands: date quit
# received: 
not ok 6
# Failed test 6 in t/protocol/pseudo_http.t at line 63
fail #4
# send: date
# testing : quit
# expected: (?-xism:The time is:)
# received: 
not ok 7
# Failed test 7 in t/protocol/pseudo_http.t at line 63
fail #5
# send: quit
# testing : end of transmission
# expected: Goodbye
# received: 
not ok 8
# Failed test 8 in t/protocol/pseudo_http.t at line 57
fail #2
ok 9
# testing : greeting
# expected: HELO
# received: 
not ok 10
# Failed test 10 in t/protocol/pseudo_http.t at line
63 fail #6
# send: HELO
# testing : login
# expected: Login:
# received: 
not ok 11
# Failed test 11 in t/protocol/pseudo_http.t at line
63 fail #7
# send: stas
# testing : wrong password
# expected: Password:
# received: 
not ok 12
# Failed test 12 in t/protocol/pseudo_http.t at line
63 fail #8
# send: foObaR
# testing : end of transmission
# expected: Access Denied
# received: 
not ok 13
# Failed test 13 in t/protocol/pseudo_http.t at line
57 fail #3
FAILED tests 2-8, 10-13
        Failed 11/13 tests, 15.38% okay
Failed Test              Status Wstat Total Fail 
Failed  List of Failed
--------------------------------------------------------------------------------
t/protocol/pseudo_http.t                      13   11 
84.62%  2-8, 10-13
Failed 1/1 test scripts, 0.00% okay. 11/13 subtests
failed, 15.38% okay.
[warning] server localhost:8529 shutdown
[  error] error running tests (please examine
t/logs/error_log)
[   info] an old core file has been found:
/usr/local/src/mod_perl-1.99_17/t/core


Error_log from  t/TEST -verbose protocol/pseudo_http 

"error_log" 28 lines, 2363 characters 
[Wed Nov 03 20:40:12 2004] [info] Init: Initializing
OpenSSL library
[Wed Nov 03 20:40:12 2004] [info] Init: Seeding PRNG
with 0 bytes of entropy
[Wed Nov 03 20:40:12 2004] [info] Init: Generating
temporary RSA private keys (5
12/1024 bits)
[Wed Nov 03 20:40:14 2004] [info] Init: Generating
temporary DH parameters (512/
1024 bits)
[Wed Nov 03 20:40:14 2004] [warn] Init: Session Cache
is not configured [hint: S
SLSessionCache]
[Wed Nov 03 20:40:14 2004] [info] Init: Initializing
(virtual) servers for SSL
[Wed Nov 03 20:40:14 2004] [info] Server:
Apache/2.0.52, Interface: mod_ssl/2.0.
52, Library: OpenSSL/0.9.7b
END in modperl_extra.pl, pid=19258
[Wed Nov 03 20:40:18 2004] [info] Init: Initializing
OpenSSL library
[Wed Nov 03 20:40:18 2004] [info] Init: Seeding PRNG
with 0 bytes of entropy
[Wed Nov 03 20:40:18 2004] [info] Init: Generating
temporary RSA private keys (5
12/1024 bits)
[Wed Nov 03 20:40:20 2004] [info] Init: Generating
temporary DH parameters (512/
1024 bits)
[Wed Nov 03 20:40:20 2004] [info] Init: Initializing
(virtual) servers for SSL
[Wed Nov 03 20:40:20 2004] [info] Server:
Apache/2.0.52, Interface: mod_ssl/2.0.
52, Library: OpenSSL/0.9.7b
[Wed Nov 03 20:40:20 2004] [notice] Apache/2.0.52
(Unix) mod_perl/1.99_17 Perl/v
5.6.1 world domination series/2.0 mod_ssl/2.0.52
OpenSSL/0.9.7b PHP/4.3.2 config
ured -- resuming normal operations
[Wed Nov 03 20:40:20 2004] [info] Server:
Apache/2.0.52, Interface: mod_ssl/2.0.
52, Library: OpenSSL/0.9.7b
[Wed Nov 03 20:40:20 2004] [notice] Apache/2.0.52
(Unix) mod_perl/1.99_17 Perl/v
5.6.1 world domination series/2.0 mod_ssl/2.0.52
OpenSSL/0.9.7b PHP/4.3.2 config
ured -- resuming normal operations
[Wed Nov 03 20:40:20 2004] [info] Server built: Nov  1
2004 13:52:31
[Wed Nov 03 20:40:20 2004] [debug] prefork.c(955):
AcceptMutex: fcntl (default:
fcntl)
[Wed Nov 03 20:40:24 2004] [error] Argument
"APR::SO_NONBLOCK" isn't numeric in
subroutine entry at
/usr/local/src/mod_perl-1.99_17/t/protocol/TestProtocol/pseu
do_http.pm line 33.\n
[Wed Nov 03 20:40:24 2004] [error] Argument
"APR::SO_NONBLOCK" isn't numeric in
subroutine entry at
/usr/local/src/mod_perl-1.99_17/t/protocol/TestProtocol/pseu
do_http.pm line 33.\n

*** The following error entry is expected and harmless
***
[Wed Nov 03 20:40:24 2004] [info] Child process
pid=19272 is exiting
[Wed Nov 03 20:40:24 2004] [info] Child process
pid=19273 is exiting
END in modperl_extra.pl, pid=19272
END in modperl_extra.pl, pid=19273
[Wed Nov 03 20:40:24 2004] [info] removed PID file
/usr/local/src/mod_perl-1.99_
17/t/logs/httpd.pid (pid=19265)
[Wed Nov 03 20:40:24 2004] [notice] caught SIGTERM,
shutting down
END in modperl_extra.pl, pid=19265


Thanks again for your help

Jeremy


		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.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] Solaris: protocol/pseudo_http failure

Posted by Mr jeremy pennington <je...@yahoo.com>.
For Reference Purposes:
This problem was fixed by upgrading to perl 5.8.5, I
did not try the pathes as I needed to upgrade because
of another problem.

--- Stas Bekman <st...@stason.org> wrote:

> Mr jeremy pennington wrote:
> > I am new to modperl and have been trying to get it
> > running for the past week but not having any luck.
> The
> > first time I run make test it errored out and said
> > unable to start the server, but I tried again
> later
> > and got past that and now I get the following
> errors.
> > I am running solaris 9, apache 2.0.52, mod_perl
> > 1.99_17, perl 5.6.1. I greatly appreciate any
> help,
> > ideas, suggestions, trys.
> [...]
> 
> thanks for the very detailed report, Jeremy.
> 
> I'm splitting this thread in two, since I believe
> these two failures are 
> unrelated. Let's deal here with protocol/pseudo_http
> 
> > # t/TEST -verbose protocol/pseudo_http
> 
> > # Using Apache/Test.pm version 1.16
> > ok 1
> > # testing : greeting
> > # expected: HELO
> > # received: 
> > not ok 2
> > # Failed test 2 in t/protocol/pseudo_http.t at
> line 63
> > # send: HELO
> > # testing : login
> > # expected: Login:
> > # received: 
> > not ok 3
> [...]
> >
>
--------------------------------------------------------------------------------
> > t/protocol/pseudo_http.t                      13  
> 11 
> > 84.62%  2-8, 10-13
> > Failed 1/1 test scripts, 0.00% okay. 11/13
> subtests
> > failed, 15.38% okay.
> > [warning] server localhost:8529 shutdown
> > [  error] error running tests (please examine
> > t/logs/error_log)
> > [   info] an old core file has been found:
> > /usr/local/src/mod_perl-1.99_17/t/core
> > 
> > 
> > Error_log from  t/TEST -verbose
> protocol/pseudo_http 
> [...]
> > [Wed Nov 03 20:40:24 2004] [error] Argument
> > "APR::SO_NONBLOCK" isn't numeric in
> > subroutine entry at
> >
>
/usr/local/src/mod_perl-1.99_17/t/protocol/TestProtocol/pseu
> > do_http.pm line 33.\n
> > [Wed Nov 03 20:40:24 2004] [error] Argument
> > "APR::SO_NONBLOCK" isn't numeric in
> > subroutine entry at
> >
>
/usr/local/src/mod_perl-1.99_17/t/protocol/TestProtocol/pseu
> > do_http.pm line 33.\n
> 
> That's strange since exactly the same code in the
> other tests under 
> t/protocol/TestProtocol doesn't fail.
> 
> Please tell us if there is any difference if you
> apply this patch:
> 
> Index: t/protocol/TestProtocol/pseudo_http.pm
>
===================================================================
> RCS file:
>
/home/cvs/modperl-2.0/t/protocol/TestProtocol/pseudo_http.pm,v
> retrieving revision 1.7
> diff -u -r1.7 pseudo_http.pm
> --- t/protocol/TestProtocol/pseudo_http.pm      18
> Aug 2004 07:44:38 -0000 
>      1.7
> +++ t/protocol/TestProtocol/pseudo_http.pm      4
> Nov 2004 04:09:07 -0000
> @@ -30,7 +30,8 @@
>       my $socket = $c->client_socket;
> 
>       if ($socket->opt_get(APR::SO_NONBLOCK)) {
> -        $socket->opt_set(APR::SO_NONBLOCK => 0);
> +        my $opt = APR::SO_NONBLOCK();
> +        $socket->opt_set($opt => 0);
>       }
> 
>       if ((my $rc = greet($c)) != Apache::OK) {
> 
> and reverting the above one, applying the following
> one (two different 
> attempts):
> 
> Index: t/protocol/TestProtocol/pseudo_http.pm
>
===================================================================
> RCS file:
>
/home/cvs/modperl-2.0/t/protocol/TestProtocol/pseudo_http.pm,v
> retrieving revision 1.7
> diff -u -r1.7 pseudo_http.pm
> --- t/protocol/TestProtocol/pseudo_http.pm      18
> Aug 2004 07:44:38 -0000 
>      1.7
> +++ t/protocol/TestProtocol/pseudo_http.pm      4
> Nov 2004 04:10:44 -0000
> @@ -30,7 +30,7 @@
>       my $socket = $c->client_socket;
> 
>       if ($socket->opt_get(APR::SO_NONBLOCK)) {
> -        $socket->opt_set(APR::SO_NONBLOCK => 0);
> +        $socket->opt_set(APR::SO_NONBLOCK, 0);
>       }
> 
>       if ((my $rc = greet($c)) != Apache::OK) {
> 
> -- 
>
__________________________________________________________________
> 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
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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] Solaris: protocol/pseudo_http failure

Posted by Stas Bekman <st...@stason.org>.
Mr jeremy pennington wrote:
> I am new to modperl and have been trying to get it
> running for the past week but not having any luck. The
> first time I run make test it errored out and said
> unable to start the server, but I tried again later
> and got past that and now I get the following errors.
> I am running solaris 9, apache 2.0.52, mod_perl
> 1.99_17, perl 5.6.1. I greatly appreciate any help,
> ideas, suggestions, trys.
[...]

thanks for the very detailed report, Jeremy.

I'm splitting this thread in two, since I believe these two failures are 
unrelated. Let's deal here with protocol/pseudo_http

> # t/TEST -verbose protocol/pseudo_http

> # Using Apache/Test.pm version 1.16
> ok 1
> # testing : greeting
> # expected: HELO
> # received: 
> not ok 2
> # Failed test 2 in t/protocol/pseudo_http.t at line 63
> # send: HELO
> # testing : login
> # expected: Login:
> # received: 
> not ok 3
[...]
> --------------------------------------------------------------------------------
> t/protocol/pseudo_http.t                      13   11 
> 84.62%  2-8, 10-13
> Failed 1/1 test scripts, 0.00% okay. 11/13 subtests
> failed, 15.38% okay.
> [warning] server localhost:8529 shutdown
> [  error] error running tests (please examine
> t/logs/error_log)
> [   info] an old core file has been found:
> /usr/local/src/mod_perl-1.99_17/t/core
> 
> 
> Error_log from  t/TEST -verbose protocol/pseudo_http 
[...]
> [Wed Nov 03 20:40:24 2004] [error] Argument
> "APR::SO_NONBLOCK" isn't numeric in
> subroutine entry at
> /usr/local/src/mod_perl-1.99_17/t/protocol/TestProtocol/pseu
> do_http.pm line 33.\n
> [Wed Nov 03 20:40:24 2004] [error] Argument
> "APR::SO_NONBLOCK" isn't numeric in
> subroutine entry at
> /usr/local/src/mod_perl-1.99_17/t/protocol/TestProtocol/pseu
> do_http.pm line 33.\n

That's strange since exactly the same code in the other tests under 
t/protocol/TestProtocol doesn't fail.

Please tell us if there is any difference if you apply this patch:

Index: t/protocol/TestProtocol/pseudo_http.pm
===================================================================
RCS file: /home/cvs/modperl-2.0/t/protocol/TestProtocol/pseudo_http.pm,v
retrieving revision 1.7
diff -u -r1.7 pseudo_http.pm
--- t/protocol/TestProtocol/pseudo_http.pm      18 Aug 2004 07:44:38 -0000 
     1.7
+++ t/protocol/TestProtocol/pseudo_http.pm      4 Nov 2004 04:09:07 -0000
@@ -30,7 +30,8 @@
      my $socket = $c->client_socket;

      if ($socket->opt_get(APR::SO_NONBLOCK)) {
-        $socket->opt_set(APR::SO_NONBLOCK => 0);
+        my $opt = APR::SO_NONBLOCK();
+        $socket->opt_set($opt => 0);
      }

      if ((my $rc = greet($c)) != Apache::OK) {

and reverting the above one, applying the following one (two different 
attempts):

Index: t/protocol/TestProtocol/pseudo_http.pm
===================================================================
RCS file: /home/cvs/modperl-2.0/t/protocol/TestProtocol/pseudo_http.pm,v
retrieving revision 1.7
diff -u -r1.7 pseudo_http.pm
--- t/protocol/TestProtocol/pseudo_http.pm      18 Aug 2004 07:44:38 -0000 
     1.7
+++ t/protocol/TestProtocol/pseudo_http.pm      4 Nov 2004 04:10:44 -0000
@@ -30,7 +30,7 @@
      my $socket = $c->client_socket;

      if ($socket->opt_get(APR::SO_NONBLOCK)) {
-        $socket->opt_set(APR::SO_NONBLOCK => 0);
+        $socket->opt_set(APR::SO_NONBLOCK, 0);
      }

      if ((my $rc = greet($c)) != Apache::OK) {

-- 
__________________________________________________________________
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] Solaris: modperl/request_rec_tie_api.t failure

Posted by Stas Bekman <st...@stason.org>.
Mr jeremy pennington wrote:
> I am new to modperl and have been trying to get it
> running for the past week but not having any luck. The
> first time I run make test it errored out and said
> unable to start the server, but I tried again later
> and got past that and now I get the following errors.
> I am running solaris 9, apache 2.0.52, mod_perl
> 1.99_17, perl 5.6.1. I greatly appreciate any help,
> ideas, suggestions, trys.

Here dealing with modperl/request_rec_tie_api.t failure

[...]
> *** /usr/perl5/5.6.1/bin/perl -V
> Summary of my perl5 (revision 5.0 version 6 subversion
> 1) configuration:
[...]
> Characteristics of this binary (from libperl): 
>   Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
>   Locally applied patches:
>      9676 Port the OpenBSD glob() security patch
>      9678 Addendum to #9676: some missing changes from
> OpenBSD glob.c
>      9679 Up $File::Glob::VERSION, add OpenBSD glob
> version note
>      9693 $VERSION and Version() on same line provokes
> CPAN.pm warning
>      9706 #7210 broke .packlist generation
>      9707 ExtUtils::Installed doesn't quote regex
> metacharacters in paths
>      9775 Typo in utf8.h
>      9950 Revert integration of #8254,#8255 in #8620
> (causes coredump)
>     10021 Insecure regexes
>     10091 $ref1 == $ref2 behaves unpredictably if not
> NV_PRESERVES_UV
>     10093 Incorrect line numbers in AutoSplit
>     10100 [20010514.027] PL_last_in_gv may not be GV
> if stale filehandle
>     10145 [20010515.004] Segfaults from premature GC
>     10203 Don't think about UTF8
>     10250 [20010422.005] perl -e '{s//${}/; //}'
> segfaults
>     10394 Leakage of file scope lexicals into
> predeclared subroutines
>     10404 eval.t was relying on pre-#10394 buggy
> behavior
>     10412 Rationalize locale handling to fix bugs
> uncovered by #10394
>     10422 Potential buffer overrun if the radix
> separator > 1 byte
>     10448 Lexicals outside eval weren't resolved
> correctly pre-#10394
>     10450 Optimize #10448 slightly
>     10543 Add LC_MESSAGES constant to POSIX module
>     10667 #10449 broke visibility of lexicals inside
> DB::DB()
>     10739 C<eval "/x$\r\n/x"> fails to compile
> correctly
>     10939 Proposed fix for Pod::Man
>     11169 Doc patch for Tie::Hash
>     11374 Make h2ph grok ccsymbols fo the form 1234L,
> 1234ULL etc
>     11427 t/harness wasn't picking up all the tests
>     11428 run/runenv.t needs fflushNULL sanity
>     11431 pod/*.t tests not picked up by t/TEST either
>     11510 eval 'format foo=' would loop indefinitely
>     11713 UTF8 wasn't printing for PVMGs
>     11716 UTF8 flag should be meaningful only when POK
>     11808 [20010831.002] Bug in Term::Cap on Solaris
> ansi terminal
>     11847 Typo in perl_clone() code causes local(*foo)
> breakage
>     12005 [20010912.007] substr reference core dump
>     12024 Fix local() precedence bug in #8311
>     12303 Fix 'local $!=0;undef*STDOUT;' segfault
>     12304 Pod::Html makes a poor guess at author
>     12350 Typo in IO::Seekable doc
>     12496 Carp::shortmess_heavy() doesn't notice
> trailing newline
>     12549 readline() doesn't work with 'our' variables
>     12550 #12549 wasn't aware of strictures
>     12752 croak(Nullch) wasn't printing the contents
> of ERRSV
>     12811 [20011101.069] \stat('.') gives 'free unref
> scalar' error
>     12812 Slight modification of #12811
>     13149 Integrate #13147 from mainline (fixes nit in
> #10091)
>     13261 Integrate #8340,#13260 from mainline

That could be your problem. Tons of unsanctioned by p5p locally applied 
patches. Any chance you could try a newer Perl? It's not clear if your 
perl is really 5.6.1 + patches. I'm afraid this is really 5.6.0 + patches, 
which is certainly unsupported, and will explain the reason for the failure.

> # t/TEST -verbose modperl/request_rec_tie_api.t
>
> Fail  Failed  List of Failed
> --------------------------------------------------------------------------------
> t/modperl/request_rec_tie_api.t                3    3
> 100.00%  1-3
> Failed 1/1 test scripts, 0.00% okay. 3/3 subtests
> failed, 0.00% okay.
> [warning] server localhost:8529 shutdown
> [  error] error running tests (please examine
> t/logs/error_log)
> [  error] oh rats, server dumped core 
> [  error] for stacktrace, run: gdb
> /usr/local/apache2/bin/httpd -core
> /usr/local/src/mod_perl-1.99_17/t/core

So either upgrade your perl and try again, or send us the backtrace of the 
core file:
http://perl.apache.org/docs/2.0/user/help/help.html#Resolving_Segmentation_Faults

(but I'd stronly suggest the Perl upgrade first)


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