You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Arnaud Blancher <Ar...@ungi.net> on 2004/03/09 11:22:59 UTC
bug report in mod_perl 1.99_13 installation
-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:
when i do the make test, i have this message
/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/installation-publishing/modules/unix/perl5.8/apache/mod_perl-1.99_13/t/TEST
-clean
APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT=
APACHE_TEST_USER= APACHE_TEST_APXS= \
/usr/bin/perl -Iblib/arch/Apache2 -Iblib/lib/Apache2 \
t/TEST -bugreport -verbose=0
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl
/home/installation-publishing/modules/unix/perl5.8/apache/mod_perl-1.99_13/t/TEST
-bugre port -verbose=0
[warning] root mode: changing the files ownership to 'nobody' (99:99)
[warning] testing whether 'nobody' is able to -rwx
/home/installation-publishing/modules/unix/perl5.8/apache/mod_perl-1.99_
13/t
/usr/bin/perl
-Mlib=/home/installation-publishing/modules/unix/perl5.8/apache/mod_perl-1.99_13/Apache-Test/lib
-MApache::Te stRun -e 'eval { Apache::TestRun::run_root_fs_test(99, 99,
q[/home/installation-publishing/modules/unix/perl5.8/apache/mod_
perl-1.99_13/t]) }';
[warning] result: OK
/usr/local/httpd/prefork/bin/httpd -d
/home/installation-publishing/modules/unix/perl5.8/apache/mod_perl-1.99_13/t
-f /home
/installation-publishing/modules/unix/perl5.8/apache/mod_perl-1.99_13/t/conf/httpd.conf
-D APACHE2 -D PERL_USEITHREADS
using Apache/2.0.48 (prefork MPM)
waiting 120 seconds for server to start: ..[Tue Mar 09 10:54:52 2004]
[info] 27 Apache:: modules loaded
[Tue Mar 09 10:54:52 2004] [info] 5 APR:: modules loaded
[Tue Mar 09 10:54:52 2004] [info] base server + 16 vhosts ready to run tests
...
waiting 120 seconds for server to start: ok (waited 3 secs)
server ungi3.ungi.net:8529 started
server ungi3.ungi.net:8530 listening (TestModperl::merge)
server ungi3.ungi.net:8531 listening (TestModperl::perl_options)
server ungi3.ungi.net:8532 listening (TestModperl::setupenv)
server ungi3.ungi.net:8533 listening (TestVhost::config)
server ungi3.ungi.net:8534 listening (TestProtocol::echo_filter)
server ungi3.ungi.net:8535 listening (TestProtocol::echo)
server ungi3.ungi.net:8536 listening (TestPreConnection::note)
server ungi3.ungi.net:8537 listening (TestHooks::stacked_handlers2)
server ungi3.ungi.net:8538 listening (TestHooks::startup)
server ungi3.ungi.net:8539 listening (TestFilter::in_bbs_inject_header)
server ungi3.ungi.net:8540 listening (TestFilter::in_str_msg)
server ungi3.ungi.net:8541 listening (TestFilter::both_str_con_add)
server ungi3.ungi.net:8542 listening (TestFilter::in_bbs_msg)
server ungi3.ungi.net:8543 listening (TestDirective::perlmodule)
server ungi3.ungi.net:8544 listening (TestDirective::perlrequire)
server ungi3.ungi.net:8545 listening (TestPerl::ithreads)
server ungi3.ungi.net:8546 listening (TestDirective::perlloadmodule4)
server ungi3.ungi.net:8547 listening (TestDirective::perlloadmodule5)
server ungi3.ungi.net:8548 listening (TestDirective::perlloadmodule3)
server ungi3.ungi.net:8549 listening (TestDirective::perlloadmodule6)
t/apache/add_config.....................ok
t/apache/cgihandler.....................ok
t/apache/conftree.......................ok
t/apache/constants......................ok
t/apache/discard_rbody..................ok
t/apache/post...........................ok
t/apache/read...........................ok
t/apache/scanhdrs.......................ok
t/apache/scanhdrs2......................ok
t/apache/send_cgi_header................ok
t/apache/subprocess.....................ok
t/apache/util...........................ok
t/apache/write..........................ok
t/api/access............................ok
t/api/aplog.............................ok
t/api/conn_rec..........................ok
t/api/internal_redirect.................ok
t/api/lookup_uri........................ok
t/api/lookup_uri2.......................ok
t/api/module............................ok
t/api/query.............................ok
t/api/r_subclass........................ok
t/api/request_rec.......................ok
t/api/response..........................ok
t/api/rflush............................ok
t/api/rutil.............................ok
t/api/sendfile..........................ok
t/api/server_const......................ok
t/api/server_rec........................ok
t/api/server_util.......................ok
t/api/show..............................ok
t/api/slurp_filename....................ok
t/api/uri...............................ok
t/apr-ext/uuid..........................ok
t/apr/base64............................ok
t/apr/brigade...........................ok
t/apr/constants.........................ok
t/apr/date..............................ok
t/apr/finfo.............................ok
t/apr/flatten...........................ok
t/apr/netlib............................ok
t/apr/os................................ok
t/apr/perlio............................ok
t/apr/pool..............................ok
t/apr/socket............................ok
t/apr/string............................ok
t/apr/table.............................ok
t/apr/threadmutex.......................ok
t/apr/util..............................ok
t/apr/uuid..............................ok
t/compat/apache.........................ok
t/compat/apache_file....................ok
t/compat/apache_table...................ok
t/compat/apache_uri.....................ok
t/compat/apache_util....................ok
t/compat/conn_authen....................ok
t/compat/conn_rec.......................ok
t/compat/request........................ok
t/compat/request_body...................ok
t/compat/send_fd........................ok
t/directive/env.........................ok
t/directive/perl........................ok
t/directive/perldo......................ok
t/directive/perlloadmodule..............ok
t/directive/perlloadmodule2.............ok
t/directive/perlloadmodule3.............ok
t/directive/perlloadmodule4.............ok
t/directive/perlloadmodule5.............ok
t/directive/perlloadmodule6.............ok
t/directive/perlmodule..................ok
t/directive/perlrequire.................ok
t/directive/pod.........................ok
t/directive/setupenv....................ok
t/error/api.............................ok
t/error/runtime.........................ok
t/error/syntax..........................ok
t/filter/both_str_con_add...............ok
t/filter/both_str_req_add...............ok
t/filter/both_str_req_mix...............skipped
all skipped: cannot find module 'deflate'
t/filter/both_str_req_proxy.............skipped
all skipped: cannot find module 'proxy'
t/filter/in_autoload....................ok
t/filter/in_bbs_body....................ok
t/filter/in_bbs_consume.................ok
t/filter/in_bbs_inject_header...........ok
t/filter/in_bbs_msg.....................ok
t/filter/in_bbs_underrun................ok
t/filter/in_error.......................ok
t/filter/in_init_basic..................ok
t/filter/in_str_consume.................ok
t/filter/in_str_declined................ok
t/filter/in_str_lc......................ok
t/filter/in_str_msg.....................ok
t/filter/in_str_sandwich................ok
t/filter/out_bbs_basic..................ok
t/filter/out_bbs_ctx....................ok
t/filter/out_init_basic.................ok
t/filter/out_str_api....................ok
t/filter/out_str_ctx....................ok
t/filter/out_str_declined...............ok
t/filter/out_str_lc.....................ok
t/filter/out_str_remove.................ok
t/filter/out_str_req_eos................ok
t/filter/out_str_req_mix................ok
t/filter/out_str_reverse................ok
t/filter/out_str_subreq_default.........ok
t/filter/out_str_subreq_modperl.........ok
t/hooks/access..........................ok
t/hooks/authen..........................ok
t/hooks/authz...........................ok
t/hooks/cleanup.........................ok 1/2# Failed test 2 in
t/hooks/cleanup.t at line 40
t/hooks/cleanup.........................FAILED test 2
Failed 1/2 tests, 50.00% okay
t/hooks/cleanup2........................NOK 1# Failed test 1 in
t/hooks/cleanup2.t at line 28
t/hooks/cleanup2........................FAILED test 1
Failed 1/2 tests, 50.00% okay
t/hooks/fixup...........................ok
t/hooks/headerparser....................ok
t/hooks/init............................ok
t/hooks/push_handlers...................ok
t/hooks/push_handlers_blessed...........ok
t/hooks/push_handlers_same_phase........ok
t/hooks/set_handlers....................ok
t/hooks/stacked_handlers................ok
t/hooks/stacked_handlers2...............ok
t/hooks/startup.........................ok
t/hooks/trans...........................ok
t/modperl/cookie........................ok
t/modperl/cookie2.......................ok
t/modperl/current_callback..............ok
t/modperl/dir_config....................ok
t/modperl/endav.........................ok
t/modperl/env...........................ok
t/modperl/exit..........................ok
t/modperl/getc..........................ok
t/modperl/io_nested_with_closed_stds....ok
t/modperl/io_with_closed_stds...........ok
t/modperl/merge.........................ok
t/modperl/merge2........................ok
t/modperl/merge3........................ok
t/modperl/method........................ok
t/modperl/methodname....................ok
t/modperl/methodobj.....................ok
t/modperl/perl..........................ok
t/modperl/perl_options..................ok
t/modperl/pnotes........................ok
t/modperl/post_utf8.....................ok
t/modperl/print.........................ok
t/modperl/print_utf8....................ok
t/modperl/print_utf8_2..................ok
t/modperl/printf........................ok
t/modperl/readline......................ok
t/modperl/request_rec_perlio_api........ok
t/modperl/request_rec_tie_api...........skipped
all skipped: perl 5.008003: PerlIO is used instead of TIEd IO
t/modperl/sameinterp....................ok
t/modperl/setauth.......................ok
t/modperl/setupenv......................ok
t/modperl/status........................ok
t/modperl/subenv........................ok
t/modperl/taint.........................ok
t/modules/apache_status.................ok
t/modules/cgi...........................ok
t/modules/cgi2..........................ok
t/modules/cgipost.......................ok
t/modules/cgipost2......................ok
t/modules/cgiupload.....................ok
t/modules/cgiupload2....................ok
t/modules/include.......................ok
t/modules/include2......................ok
t/modules/include_subreq................ok
t/modules/proxy.........................skipped
all skipped: cannot find module 'proxy'
t/perl/api..............................ok
t/perl/hash_attack......................ok
t/perl/ithreads.........................ok
t/perl/ithreads2........................ok
t/preconnection/note....................ok
t/protocol/echo.........................ok
t/protocol/echo_filter..................ok
t/vhost/config..........................ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/hooks/cleanup.t 2 1 50.00% 2
t/hooks/cleanup2.t 2 1 50.00% 1
4 tests skipped.
[warning] server ungi3.ungi.net:8529 shutdown
[ error] error running tests (please examine t/logs/error_log)
+--------------------------------------------------------+
| Please file a bug report: http://perl.apache.org/bugs/ |
+--------------------------------------------------------+
make: *** [run_tests] Erreur 1
2. Used Components and their Configuration:
*** mod_perl version 1.9913
*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
MP_AP_PREFIX => /usr/local/httpd/prefork
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/httpd/prefork/bin/httpd -V
Server version: Apache/2.0.48
Server built: Mar 9 2004 10:47:35
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_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="/usr/local/httpd/prefork"
-D SUEXEC_BIN="/usr/local/httpd/prefork/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 3) configuration:
Platform:
osname=linux, osvers=2.4.21-9.elsmp, archname=i386-linux-thread-multi
uname='linux bugs.devel.redhat.com 2.4.21-9.elsmp #1 smp thu jan 8
17:08:56 est 2004 i686 i686 i386 gnulinux '
config_args='-des -Doptimize=-O2 -g -pipe -march=i386 -mcpu=i686
-Dversion=5.8.3 -Dmyhostname=localhost -Dperladmin=root@localhost
-Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr
-Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib
-Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun
-Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio
-Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less
-isr -Dinc_version_list=5.8.2 5.8.1 5.8.0'
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='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-DDEBUGGING -fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2 -g -pipe -march=i386 -mcpu=i686',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING
-fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='3.3.2 20031218 (Red Hat Linux 3.3.2-5)',
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='gcc', ldflags =' -L/usr/local/lib'
libpth=/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.2.so, 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.3/i386-linux-thread-multi/CORE'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS
USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
Built under linux
Compiled at Feb 25 2004 13:30:53
%ENV:
PERL_LWP_USE_HTTP_10="1"
@INC:
/usr/lib/perl5/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/5.8.3
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3
/usr/lib/perl5/vendor_perl/5.8.2
/usr/lib/perl5/vendor_perl/5.8.1
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl
.
*** Packages of interest status:
Apache::Request: -
CGI : 3.01
LWP : 5.65
mod_perl : 1.9912, 1.9912
3. This is the core dump trace: (if you get a core dump):
[CORE TRACE COMES HERE]
This report was generated by
/home/installation-publishing/modules/unix/perl5.8/apache/mod_perl-1.99_13/t/REPORT
on Tue Mar 9 10:08:39 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.
--
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: bug report in mod_perl 1.99_13 installation
Posted by Daniel Risacher <ma...@alum.mit.edu>.
I get a clean build from CVS now.
--
"The blues are multicolored." -- Dave Lambert
Daniel Risacher magnus@alum.mit.edu
--
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: bug report in mod_perl 1.99_13 installation
Posted by Stas Bekman <st...@stason.org>.
No need for any extra info as I can see all these errors with a fresh package
run under root:
t/directive/perl.t 8 4 50.00% 2-3 6-7
t/directive/perldo.t 14 2 14.29% 11 14
t/hooks/cleanup.t 2 1 50.00% 2
t/hooks/cleanup2.t 2 1 50.00% 1
t/modules/include.t 6 2 33.33% 4-5
t/modules/include2.t 4 1 25.00% 4
That will be fixed in the next release (or cvs shortly).
For now please build and run the test suite as a non-root user, and only 'make
install' as root.
We will add to the RELEASE procedures a step to test the fresh release as
'root'. We didn't see the problem because some of the directories created at
run-time weren't deleted on 'make clean'. I'll work on cleaning that up.
__________________________________________________________________
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: bug report in mod_perl 1.99_13 installation
Posted by Stas Bekman <st...@stason.org>.
Daniel Risacher wrote:
> I get these errors with yesterday's CVS (some of which are the same
> that Arnaud saw):
>
> t/modules/include.......................ok 2/6# Failed test 4 in t/modules/include.t at line 32 fail #2
> # Failed test 5 in t/modules/include.t at line 32 fail #3
> t/modules/include.......................FAILED tests 4-5
> Failed 2/6 tests, 66.67% okay
> t/modules/include2......................NOK 1# Failed test 1 in t/modules/include2.t at line 23
> t/modules/include2......................ok 2/4# Failed test 3 in t/modules/include2.t at line 30
> # Failed test 4 in t/modules/include2.t at line 30 fail #2
> t/modules/include2......................FAILED tests 1, 3-4
> Failed 3/4 tests, 25.00% okay
>
> Failed Test Stat Wstat Total Fail Failed List of Failed
> -------------------------------------------------------------------------------
> t/hooks/cleanup.t 2 1 50.00% 2
> t/hooks/cleanup2.t 2 1 50.00% 1
> t/modules/include.t 6 2 33.33% 4-5
> t/modules/include2.t 4 3 75.00% 1 3-4
> 6 tests skipped.
We need to see a complete report. It's hard to miss this banner:
+--------------------------------------------------------+
| Please file a bug report: http://perl.apache.org/bugs/ |
+--------------------------------------------------------+
which explains how the bugreport should be submitted.
Were you running as root? Can we see the errors from t/logs/error_log?
__________________________________________________________________
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: bug report in mod_perl 1.99_13 installation
Posted by Daniel Risacher <ma...@alum.mit.edu>.
I get these errors with yesterday's CVS (some of which are the same
that Arnaud saw):
t/modules/include.......................ok 2/6# Failed test 4 in t/modules/include.t at line 32 fail #2
# Failed test 5 in t/modules/include.t at line 32 fail #3
t/modules/include.......................FAILED tests 4-5
Failed 2/6 tests, 66.67% okay
t/modules/include2......................NOK 1# Failed test 1 in t/modules/include2.t at line 23
t/modules/include2......................ok 2/4# Failed test 3 in t/modules/include2.t at line 30
# Failed test 4 in t/modules/include2.t at line 30 fail #2
t/modules/include2......................FAILED tests 1, 3-4
Failed 3/4 tests, 25.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/hooks/cleanup.t 2 1 50.00% 2
t/hooks/cleanup2.t 2 1 50.00% 1
t/modules/include.t 6 2 33.33% 4-5
t/modules/include2.t 4 3 75.00% 1 3-4
6 tests skipped.
--
"The blues are multicolored." -- Dave Lambert
Daniel Risacher magnus@alum.mit.edu
--
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: bug report in mod_perl 1.99_13 installation
Posted by Stas Bekman <st...@stason.org>.
Stas Bekman wrote:
> Enrico Sorcinelli wrote:
>
>> On Tue, 09 Mar 2004 11:22:59 +0100
>> Arnaud Blancher <Ar...@ungi.net> wrote:
>>
>>
>>> t/hooks/cleanup.........................ok 1/2# Failed test 2 in
>>> t/hooks/cleanup.t at line 40
>>> t/hooks/cleanup.........................FAILED test 2
>>> Failed 1/2 tests, 50.00% okay
>>> t/hooks/cleanup2........................NOK 1# Failed test 1 in
>>> t/hooks/cleanup2.t at line 28
>>> t/hooks/cleanup2........................FAILED test 1
>>
>>
>>
>> Me too, today, I've had these errors first time I launched tests, but
>> when I
>> retried second time with:
>>
>> t/TEST -verbose t/hooks/cleanup t/hooks/cleanup2
>> the tests passed (then after mp installation, all my apps work fine).
>>
>> Curiously, it seems that only first time I run tests I've errors (I've
>> reproduced this several times by ricompiling mod_perl from scratch).
>>
>> BTW, my error_log, _only_ first time, says:
>>
>> [Tue Mar 09 13:12:21 2004] [error] [client 127.0.0.1] can't open
>> /usr/local/src/mod_perl-1.99_13/t/htdocs/hooks/cleanup: Permission
>> denied at
>> /usr/local/src/mod_perl-1.99_13/Apache-Test/lib/Apache/TestUtil.pm
>> line 96.
>>
>> [Tue Mar 09 13:12:27 2004] [error] [client 127.0.0.1] can't open
>> /usr/local/src/mod_perl-1.99_13/t/htdocs/hooks/cleanup2: Permission
>> denied at
>> /usr/local/src/mod_perl-1.99_13/Apache-Test/lib/Apache/TestUtil.pm
>> line 96.
>
>
> it's because Apache-Test chown's all files before it starts the server.
> In case of cleanup tests, a directory was created on the client side as
> root so the server side running as nobody couldn't read/write it. When
> you run it second time Apache-Test has chowned that newly created
> directory and the test has passed. tricky. I'm trying to mend those
> problems.
>
> the other failed tests were due to the modperl-1.99_13 directory
> relocation to a new place. Some Apache-Test config variables, were still
> pointing at the previous location. I'll try to fix that too.
I think the following relatively simple solution fixes all these and future
problems when running under root. It'll be in cvs shortly:
Index: Apache-Test/lib/Apache/TestRun.pm
===================================================================
RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestRun.pm,v
retrieving revision 1.156
diff -u -r1.156 TestRun.pm
--- Apache-Test/lib/Apache/TestRun.pm 4 Mar 2004 05:51:31 -0000 1.156
+++ Apache-Test/lib/Apache/TestRun.pm 9 Mar 2004 20:37:30 -0000
@@ -881,6 +881,7 @@
$self->check_perms($user, $uid, $gid);
+ $self->become_nonroot($user, $uid, $gid);
}
}
@@ -986,6 +987,22 @@
skip_test_suite();
exit_perl 0;
}
+}
+
+sub become_nonroot {
+ my ($self, $user, $uid, $gid) = @_;
+
+ warning "the client side drops 'root' permissions and becomes '$user'";
+
+ # first must change gid and egid ("$gid $gid" for an empty
+ # setgroups() call as explained in perlvar.pod)
+ my $groups = "$gid $gid";
+ $( = $) = $groups;
+ die "failed to change gid to $gid" unless $( eq $groups && $) eq $groups;
+
+ # only now can change uid and euid
+ $< = $> = $uid+0;
+ die "failed to change uid to $uid" unless $< == $uid && $> == $uid;
}
sub run_request {
__________________________________________________________________
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: bug report in mod_perl 1.99_13 installation
Posted by Stas Bekman <st...@stason.org>.
Enrico Sorcinelli wrote:
> On Tue, 09 Mar 2004 11:22:59 +0100
> Arnaud Blancher <Ar...@ungi.net> wrote:
>
>
>>t/hooks/cleanup.........................ok 1/2# Failed test 2 in
>>t/hooks/cleanup.t at line 40
>>t/hooks/cleanup.........................FAILED test 2
>> Failed 1/2 tests, 50.00% okay
>>t/hooks/cleanup2........................NOK 1# Failed test 1 in
>>t/hooks/cleanup2.t at line 28
>>t/hooks/cleanup2........................FAILED test 1
>
>
> Me too, today, I've had these errors first time I launched tests, but when I
> retried second time with:
>
> t/TEST -verbose t/hooks/cleanup t/hooks/cleanup2
>
> the tests passed (then after mp installation, all my apps work fine).
>
> Curiously, it seems that only first time I run tests I've errors (I've
> reproduced this several times by ricompiling mod_perl from scratch).
>
> BTW, my error_log, _only_ first time, says:
>
> [Tue Mar 09 13:12:21 2004] [error] [client 127.0.0.1] can't open /usr/local/src/mod_perl-1.99_13/t/htdocs/hooks/cleanup: Permission denied at
> /usr/local/src/mod_perl-1.99_13/Apache-Test/lib/Apache/TestUtil.pm line 96.
>
> [Tue Mar 09 13:12:27 2004] [error] [client 127.0.0.1] can't open /usr/local/src/mod_perl-1.99_13/t/htdocs/hooks/cleanup2: Permission denied at
> /usr/local/src/mod_perl-1.99_13/Apache-Test/lib/Apache/TestUtil.pm line 96.
it's because Apache-Test chown's all files before it starts the server. In
case of cleanup tests, a directory was created on the client side as root so
the server side running as nobody couldn't read/write it. When you run it
second time Apache-Test has chowned that newly created directory and the test
has passed. tricky. I'm trying to mend those problems.
the other failed tests were due to the modperl-1.99_13 directory relocation to
a new place. Some Apache-Test config variables, were still pointing at the
previous location. I'll try to fix that too.
__________________________________________________________________
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: bug report in mod_perl 1.99_13 installation
Posted by Enrico Sorcinelli <e....@pisa.iol.it>.
On Tue, 09 Mar 2004 11:22:59 +0100
Arnaud Blancher <Ar...@ungi.net> wrote:
> t/hooks/cleanup.........................ok 1/2# Failed test 2 in
> t/hooks/cleanup.t at line 40
> t/hooks/cleanup.........................FAILED test 2
> Failed 1/2 tests, 50.00% okay
> t/hooks/cleanup2........................NOK 1# Failed test 1 in
> t/hooks/cleanup2.t at line 28
> t/hooks/cleanup2........................FAILED test 1
Me too, today, I've had these errors first time I launched tests, but when I
retried second time with:
t/TEST -verbose t/hooks/cleanup t/hooks/cleanup2
the tests passed (then after mp installation, all my apps work fine).
Curiously, it seems that only first time I run tests I've errors (I've
reproduced this several times by ricompiling mod_perl from scratch).
BTW, my error_log, _only_ first time, says:
[Tue Mar 09 13:12:21 2004] [error] [client 127.0.0.1] can't open /usr/local/src/mod_perl-1.99_13/t/htdocs/hooks/cleanup: Permission denied at
/usr/local/src/mod_perl-1.99_13/Apache-Test/lib/Apache/TestUtil.pm line 96.
[Tue Mar 09 13:12:27 2004] [error] [client 127.0.0.1] can't open /usr/local/src/mod_perl-1.99_13/t/htdocs/hooks/cleanup2: Permission denied at
/usr/local/src/mod_perl-1.99_13/Apache-Test/lib/Apache/TestUtil.pm line 96.
by
- Enrico
--
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