You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by William Fulmer <WF...@northampton.edu> on 2005/08/23 15:41:35 UTC
'make test' fails for mp2 under HP-UX
Sorry, the subject on my first post probably obscured the fact that this
was a new problem post.
-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:
make test fails on t/modperl/request_rec_tie_api.t .
# Running under perl version 5.006002 for hpux
# Current time local: Mon Aug 22 16:22:54 2005
# Current time GMT: Mon Aug 22 20:22:54 2005
# Using Test.pm version 1.24
# Using Apache/Test.pm version 1.25
FAILED before any test output arrived
Failed Test Stat Wstat Total Fail Failed List of
Failed
-------------------------------------------------------------------------------
t/modperl/request_rec_tie_api.t ?? ?? % ??
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 crap, server dumped core
I've tinkered around with request_rec_tie_api.pm and the line it dies
on looks innocent enough:
my $fileno = fileno STDOUT;
fileno on STDERR or STDIN return the expected results. The same code
under plain perl works fine.
If I change the line to:
my $fileno = 1;
just to get past the problem everything works fine.
2. Used Components and their Configuration:
*** mod_perl version 2.000001
*** using
/opt/local/wrfopt/build/mod_perl-2.0.1/lib/Apache2/BuildConfig.pm
*** Makefile.PL options:
MP_APR_LIB => aprext
MP_APXS => /usr/opt/httpd-2.0.54/bin/apxs
MP_CCOPTS => -I/usr/opt/mod_perl-2.0.1/include
-I/opt/default/include +z +DA1.1
MP_COMPAT_1X => 1
MP_DEBUG => 1
MP_GENERATE_XS => 1
MP_LIBNAME => mod_perl
MP_TRACE => 1
MP_USE_DSO => 1
*** /usr/opt/httpd-2.0.54/bin/httpd -V
Server version: Apache/2.0.54
Server built: Aug 22 2005 15:11:53
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 APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/usr/opt/httpd-2.0.54"
-D SUEXEC_BIN="/usr/opt/httpd-2.0.54/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/opt/httpd-2.0.54/lib -laprutil-0 -lc -ldb-4.3 -lexpat -liconv
-L/usr/opt/httpd-2.0.54/lib -lapr-0 -lm -lnsl -lpthread -ldld
*** /usr/opt/perl-5.6.2/bin/perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 2)
configuration:
Platform:
osname=hpux, osvers=11.11, archname=PA-RISC1.1
uname='hp-ux cars-l b.11.11 u 9000800 134921527 unlimited-user
license '
config_args='-O -Ubincompat5005 -Uuselargefiles -Uuseithreads
-Darchname=PA-RISC1.1 -Accflags=+z -Accflags=-DPERL_POLLUTE
-Accflags=+DA1.1 -Dcccdlflags=+z -Dprefix=/usr/opt/perl-5.6.2
-Doptimize=-g -Dloclibpth=/usr/opt/perl-5.6.2/lib /lib /usr/lib
/usr/ccs/lib /usr/opt/libiconv-1.9.1/lib /usr/opt/readline-5.0/lib
/usr/opt/openssl-0.9.8/lib /usr/opt/ncurses-5.4/lib
/usr/opt/gettext-0.12.1/lib /usr/opt/jpeg.v6b/lib /opt/informix/lib
/usr/opt/zlib-1.2.3/lib /usr/opt/db-4.3.27/lib /usr/opt/expat-1.95.8/lib
/usr/opt/gzip-1.2.4/lib /usr/opt/freetds-0.63RC10/lib
/usr/opt/libpng-1.2.8/lib /usr/opt/bzip2-1.0.2/lib
/usr/opt/gdbm-1.8.3/lib /usr/opt/freetype-2.1.7/lib
/usr/opt/gd-2.0.15/lib /usr/opt/tiff-3.7.1/lib
-Dlocincpth=/usr/opt/perl-5.6.2/include /include /usr/include
/usr/ccs/include /usr/opt/libiconv-1.9.1/include
/usr/opt/readline-5.0/include /usr/opt/openssl-0.9.8/include
/usr/opt/ncurses-5.4/include /usr/opt/gettext-0.12.1/include
/usr/opt/jpeg.v6b/include /opt/informix/incl /usr/opt/zlib-1.2.3/include
/usr/opt/db-4.3.27/include /usr/opt/expat-1.95.8/include
/usr/opt/gzip-1.2.4/include /usr/opt/freetds-0.63RC10/include
/usr/opt/libpng-1.2.8/include /usr/opt/bzip2-1.0.2/include
/usr/opt/gdbm-1.8.3/include /usr/opt/freetype-2.1.7/include
/usr/opt/gd-2.0.15/include /usr/opt/tiff-3.7.1/include
-Dcc=/opt/ansic/bin/cc -Dlibs= -lnm -lndbm -lgdbm -ldb -lmalloc -ldld
-lm -lcrypt -lsec -lpthread -lc -lcl -lCsup -e -s -d'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc='/opt/ansic/bin/cc', ccflags ='-Ae -D_HPUX_SOURCE
-Wl,+vnocompatwarnings +z -DPERL_POLLUTE +DA1.1 -DDEBUGGING
-I/usr/opt/libiconv-1.9.1/include -I/usr/opt/readline-5.0/include
-I/usr/opt/openssl-0.9.8/include -I/usr/opt/ncurses-5.4/include
-I/usr/opt/gettext-0.12.1/include -I/usr/opt/jpeg.v6b/include
-I/opt/informix/incl -I/usr/opt/zlib-1.2.3/include
-I/usr/opt/db-4.3.27/include -I/usr/opt/expat-1.95.8/include
-I/usr/opt/freetds-0.63RC10/include -I/usr/opt/libpng-1.2.8/include
-I/usr/opt/bzip2-1.0.2/include -I/usr/opt/gdbm-1.8.3/include
-I/usr/opt/freetype-2.1.7/include -I/usr/opt/gd-2.0.15/include
-I/usr/opt/tiff-3.7.1/include',
optimize='-g',
cppflags='-Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +z
-DPERL_POLLUTE +DA1.1 -DDEBUGGING -I/usr/opt/libiconv-1.9.1/include
-I/usr/opt/readline-5.0/include -I/usr/opt/openssl-0.9.8/include
-I/usr/opt/ncurses-5.4/include -I/usr/opt/gettext-0.12.1/include
-I/usr/opt/jpeg.v6b/include -I/opt/informix/incl
-I/usr/opt/zlib-1.2.3/include -I/usr/opt/db-4.3.27/include
-I/usr/opt/expat-1.95.8/include -I/usr/opt/freetds-0.63RC10/include
-I/usr/opt/libpng-1.2.8/include -I/usr/opt/bzip2-1.0.2/include
-I/usr/opt/gdbm-1.8.3/include -I/usr/opt/freetype-2.1.7/include
-I/usr/opt/gd-2.0.15/include -I/usr/opt/tiff-3.7.1/include'
ccversion='B.11.11.29484.GP', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define,
longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=4
alignbytes=8, usemymalloc=n, prototype=define
Linker and Libraries:
ld='/usr/bin/ld', ldflags =' -L/usr/opt/perl-5.6.2/lib -L/lib
-L/usr/lib -L/usr/ccs/lib -L/usr/opt/libiconv-1.9.1/lib
-L/usr/opt/readline-5.0/lib -L/usr/opt/openssl-0.9.8/lib
-L/usr/opt/ncurses-5.4/lib -L/usr/opt/gettext-0.12.1/lib
-L/usr/opt/jpeg.v6b/lib -L/opt/informix/lib -L/usr/opt/zlib-1.2.3/lib
-L/usr/opt/db-4.3.27/lib -L/usr/opt/expat-1.95.8/lib
-L/usr/opt/gzip-1.2.4/lib -L/usr/opt/freetds-0.63RC10/lib
-L/usr/opt/libpng-1.2.8/lib -L/usr/opt/bzip2-1.0.2/lib
-L/usr/opt/gdbm-1.8.3/lib -L/usr/opt/freetype-2.1.7/lib
-L/usr/opt/gd-2.0.15/lib -L/usr/opt/tiff-3.7.1/lib'
libpth=/usr/opt/perl-5.6.2/lib /lib /usr/lib /usr/ccs/lib
/usr/opt/libiconv-1.9.1/lib /usr/opt/readline-5.0/lib
/usr/opt/openssl-0.9.8/lib /usr/opt/ncurses-5.4/lib
/usr/opt/gettext-0.12.1/lib /usr/opt/jpeg.v6b/lib /opt/informix/lib
/usr/opt/zlib-1.2.3/lib /usr/opt/db-4.3.27/lib /usr/opt/expat-1.95.8/lib
/usr/opt/gzip-1.2.4/lib /usr/opt/freetds-0.63RC10/lib
/usr/opt/libpng-1.2.8/lib /usr/opt/bzip2-1.0.2/lib
/usr/opt/gdbm-1.8.3/lib /usr/opt/freetype-2.1.7/lib
/usr/opt/gd-2.0.15/lib /usr/opt/tiff-3.7.1/lib /usr/local/lib
libs=-lnm -lndbm -lgdbm -ldb -lmalloc -ldld -lm -lcrypt -lsec
-lpthread -lc -lcl -lCsup
perllibs=-lnm -lmalloc -ldld -lm -lcrypt -lsec -lpthread -lc -lcl
-lCsup
libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-B,deferred '
cccdlflags='+z', lddlflags='-b +vnocompatwarnings
-L/usr/opt/perl-5.6.2/lib -L/lib -L/usr/lib -L/usr/ccs/lib
-L/usr/opt/libiconv-1.9.1/lib -L/usr/opt/readline-5.0/lib
-L/usr/opt/openssl-0.9.8/lib -L/usr/opt/ncurses-5.4/lib
-L/usr/opt/gettext-0.12.1/lib -L/usr/opt/jpeg.v6b/lib
-L/opt/informix/lib -L/usr/opt/zlib-1.2.3/lib -L/usr/opt/db-4.3.27/lib
-L/usr/opt/expat-1.95.8/lib -L/usr/opt/gzip-1.2.4/lib
-L/usr/opt/freetds-0.63RC10/lib -L/usr/opt/libpng-1.2.8/lib
-L/usr/opt/bzip2-1.0.2/lib -L/usr/opt/gdbm-1.8.3/lib
-L/usr/opt/freetype-2.1.7/lib -L/usr/opt/gd-2.0.15/lib
-L/usr/opt/tiff-3.7.1/lib'
Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING
Built under hpux
Compiled at Aug 4 2005 11:50:25
%ENV:
PERL_LWP_USE_HTTP_10="1"
@INC:
/usr/opt/perl-5.6.2/lib/5.6.2/PA-RISC1.1
/usr/opt/perl-5.6.2/lib/5.6.2
/usr/opt/perl-5.6.2/lib/site_perl/5.6.2/PA-RISC1.1
/usr/opt/perl-5.6.2/lib/site_perl/5.6.2
/usr/opt/perl-5.6.2/lib/site_perl
.
*** Packages of interest status:
Apache2 : -
Apache2::Request : -
CGI : 3.11
ExtUtils::MakeMaker: 6.17
LWP : 5.803
mod_perl : -
mod_perl2 : -
3. This is the core dump trace: (if you get a core dump):
gdb /usr/opt/httpd-2.0.54/bin/httpd -core
/opt/local/wrfopt/build/mod_perl-2.0.1/t/core
Yeilds:
HP gdb 3.2 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 3.2 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions
to
change it and/or distribute copies. Type "show warranty" for
warranty/support.
..
Core was generated by `httpd'.
Program terminated with signal 11, Segmentation fault.
warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the
program.
#0 0xc4d0df78 in kill+0x10 () from /usr/lib/libc.2
Hope this means more to someone on the list than it did to me.
This report was generated by t/REPORT on Mon Aug 22 20:25:21 2005 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.
Any thoughts?
---
Will Fulmer