You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Greg Freiter <gf...@colubris.com> on 2004/11/22 17:33:46 UTC
mp2: Make test fails...
Sorry, I forgot the subject...
_____
From: Greg Freiter
Sent: Monday, November 22, 2004 11:33 AM
To: 'modperl@perl.apache.org'
Subject:
-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:
Cannot get make test to work... I am not saying this is a bug, just
need some pointer as to what I am doing wrong...
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl
/alternative/dev/mod_perl-1.99_17/t/TEST
-bugreport -verbose=0
[warning] root mode: changing the files ownership to 'nobody' (99:99)
[warning] testing whether 'nobody' is able to -rwx
/alternative/dev/mod_perl-1.99_17/t
"/usr/bin/perl" -Mlib=/alternative/dev/mod_perl-1.99_17/Apache-Test/lib
-MApache::TestRun -e 'eval { Apache::TestRun::run_root_fs_test(99, 99,
q[/alternative/dev/mod_perl-1.99_17/t]) }';
[warning] result: OK
[warning] the client side drops 'root' permissions and becomes 'nobody'
/usr/sbin/httpd -d /alternative/dev/mod_perl-1.99_17/t -f
/alternative/dev/mod_perl-1.99_17/t/conf/httpd.conf -D APACHE2 -D
PERL_USEITHREADS
using Apache/2.0.52 (prefork MPM)
waiting 120 seconds for server to start: .[Sun Nov 21 16:23:06 2004]
[info] 26
Apache:: modules loaded
[Sun Nov 21 16:23:06 2004] [info] 7 APR:: modules loaded
[Sun Nov 21 16:23:06 2004] [info] base server + 26 vhosts ready to run
tests
[Sun Nov 21 16:23:06 2004] [error] Insecure directory in $ENV{PATH}
while
running with -T switch at
/alternative/dev/mod_perl-1.99_17/Apache-Test/lib/Apache/TestConfig.pm
line
1035.\nCompilation failed in require at
/alternative/dev/mod_perl-1.99_17/t/conf/modperl_startup.pl line
17.\n\t...propagated at
/alternative/dev/mod_perl-1.99_17/t/conf/modperl_startup.pl line
18.\nBEGIN
failed--compilation aborted at
/alternative/dev/mod_perl-1.99_17/t/conf/modperl_startup.pl line
20.\nCompilation failed in require at (eval 2) line 1.\n
[Sun Nov 21 16:23:06 2004] [error] Can't load Perl file:
/alternative/dev/mod_perl-1.99_17/t/conf/modperl_startup.pl for server
localhost.localdomain:8529, exiting...
[ error]
server has died with status 255 (t/logs/error_log wasn't created, start
the
server in the debug mode)
make: *** [run_tests] Error 143
2. Used Components and their Configuration:
*** mod_perl version 1.9917
*** using /alternative/dev/mod_perl-1.99_17/lib/Apache/BuildConfig.pm
*** Makefile.PL options:
MP_APR_LIB => aprext
MP_APXS => /usr/sbin/apxs
MP_COMPAT_1X => 1
MP_DEBUG => 1
MP_GENERATE_XS => 1
MP_INST_APACHE2 => 1
MP_LIBNAME => mod_perl
MP_TRACE => 1
MP_USE_DSO => 1
*** /usr/sbin/httpd -V
Server version: Apache/2.0.52
Server built: Nov 17 2004 07:29:26
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_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"
-D SUEXEC_BIN="/usr/bin/suexec"
-D DEFAULT_PIDLOG="/var/run/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="/var/run/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="/etc/httpd/conf/mime.types"
-D SERVER_CONFIG_FILE="/etc/httpd/conf/httpd.conf"
*** (apr|apu)-config linking info
-L/usr/lib -lapr -lrt -lm -lcrypt -lnsl -lpthread -ldl
-L/usr/lib -laprutil -lexpat
*** /usr/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
Platform:
osname=linux, osvers=2.4.21-1.1931.2.382.entsmp,
archname=i386-linux-thread-multi
uname='linux str'
config_args='-des -Doptimize=-O2 -g -pipe -march=i386 -mcpu=i686
-Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red
Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux
-Dvendorprefix=/usr -Dsiteprefix=/usr
-Dotherlibdirs=/usr/lib/perl5/5.8.0 -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'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef'
useithreads=define usemultiplicity=
useperlio= d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=un uselongdouble=
usemymalloc=, 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='',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING
-fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='3.2.2 20030222 (Red Hat Linux 3.2.2-5)',
gccosandvers=''
gccversion='3.2.2 200302'
intsize=r, longsize=r, ptrsize=5, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long'
k', ivsize=4'
ivtype='l, nvtype='double'
o_nonbl', nvsize=, Off_t='', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='gcc'
l', ldflags =' -L/u'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt -lutil
perllibs=
libc=/lib/libc-2.3.2.so, so=so, useshrplib=true, libperl=libper
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/i386-linux-thread-multi/CORE'
cccdlflags='-fPIC'
ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5', lddlflags='s
Unicode/Normalize XS/A'
Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS
USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
Locally applied patches:
MAINT18379
Built under linux
Compiled at Aug 13 2003 11:47:58
%ENV:
PERL5LIB="/root/cvs/mercury/common/lib/perl:/root/cvs/mercury/mercury/li
b/perl"
PERL_LWP_USE_HTTP_10="1"
@INC:
/root/cvs/mercury/common/lib/perl
/root/cvs/mercury/mercury/lib/perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/5.8.0
.
*** Packages of interest status:
Apache::Request: -
CGI : 2.89
LWP : 5.65, 5.68
mod_perl : 1.9907, 1.9917
3. This is the core dump trace: (if you get a core dump):
No core or error log.
This report was generated by ./REPORT on Sun Nov 21 20:44:11 2004 GMT.
-------------8<---------- End Bug Report --------------8<----------
Note: Complete the rest of the details and post this bug report to
modperl <at> perl.apache.org. To subscribe to the list send an empty
email to modperl-subscribe@perl.apache.org.
Re: mp2: Make test fails...
Posted by Stas Bekman <st...@stason.org>.
Greg Freiter wrote:
[...]
> waiting 120 seconds for server to start: .[Sun Nov 21 16:23:06 2004]
> [info] 26
>
> Apache:: modules loaded
>
> [Sun Nov 21 16:23:06 2004] [info] 7 APR:: modules loaded
>
> [Sun Nov 21 16:23:06 2004] [info] base server + 26 vhosts ready to run
> tests
>
> [Sun Nov 21 16:23:06 2004] [error] Insecure directory in $ENV{PATH}
> while
>
> running with -T switch at
>
> /alternative/dev/mod_perl-1.99_17/Apache-Test/lib/Apache/TestConfig.pm
> line
>
> 1035.
Greg, in file Apache-Test/lib/Apache/TestConfig.pm:
sub open_cmd {
my($self, $cmd) = @_;
# untaint some %ENV fields
local @ENV{ qw(IFS CDPATH ENV BASH_ENV) };
# Temporarly untaint PATH
(local $ENV{PATH}) = ( $ENV{PATH} =~ /(.*)/ );
# -T disallows relative directories in the PATH
$ENV{PATH} = join ':', grep !/^\./, split /:/, $ENV{PATH};
my $handle = Symbol::gensym();
open $handle, "$cmd|" or die "$cmd failed: $!";
return $handle;
}
please dump the value of $ENV{PATH} just before open() is called, run
'make test' again and post the printed value here (it should appear just
before the error).
e.g. add the print line, like so:
$ENV{PATH} = join ':', grep !/^\./, split /:/, $ENV{PATH};
print STDERR "PATH: $ENV{PATH}\n";
thanks.
--
__________________________________________________________________
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