Doug MacEachern wrote:
>
> hopefully today. i'm doing some more testing, there's a snapshot here if
> anybody wants to test:
> http://perl.apache.org/~dougm/mod_perl-1.99_01-dev.tar.gz
>
> please report test results and perl -V if you have a chance. thanks.
I am having trouble with current CVS of httpd (prefork) and mod_perl under bleedperl.
APACHE_USER= APACHE_GROUP= APACHE_PORT= APACHE=/usr/local/apache-2.0/bin/httpd APXS= \
/src/bleedperl/bin/perl -Iblib/arch/Apache2 -Iblib/lib/Apache2 \
t/TEST
setting ulimit to allow core files
ulimit -c unlimited; t/TEST
cannot build c-modules without apxs
/usr/local/apache-2.0/bin/httpd -d /src/modperl-2.0/t -f
/src/modperl-2.0/t/conf/httpd.conf -DAPACHE2 -DPERL_USEITHREADS
using Apache/2.0.36-dev (prefork MPM)
waiting for server to start: ok (waited 3 secs)
server localhost:8529 started
server localhost:8530 listening (TestDirective::perlmodule)
server localhost:8531 listening (TestDirective::perlrequire)
server localhost:8532 listening (TestProtocol::eliza)
server localhost:8533 listening (TestProtocol::echo)
server localhost:8534 listening (TestProtocol::echo_filter)
server localhost:8535 listening (TestFilter::input_msg)
the server is down, giving up after 63 secs
failed to start server! (please examine t/logs/error_log)
oh golly, server dumped core
for stacktrace, run: gdb /usr/local/apache-2.0/bin/httpd -core /src/modperl-2.0/t/core
make: *** [run_tests] Error 1
here's the gdb output:
Core was generated by `/usr/local/apache-2.0/bin/httpd -d /src/modperl-2.0/t -f
/src/modperl-2.0/t/con'.
Program terminated with signal 11, Segmentation fault.
...
#0 0x4027aeb6 in modperl_hash_tied_object (my_perl=0x82bcc68, classname=0x40428e3f
"APR::Table", tsv=0x82d970c)
at modperl_util.c:402
402 return (void *)MgObjIV(mg);
perl -V below.
BTW, it's probably just because I'm slow, but even though I knew mod_perl 2.0 was DSO
only
I forgot to build apache first (too used to mod_perl 1.3 doing it for me I guess).
thus I would suggest a patch similar to the following patch in INSTALL if you want to
get
simple minded folks like me started quickly.
--Geoff
Index: INSTALL
===================================================================
RCS file: /home/cvspublic/modperl-2.0/INSTALL,v
retrieving revision 1.5
diff -u -r1.5 INSTALL
--- INSTALL 7 Apr 2002 00:27:59 -0000 1.5
+++ INSTALL 8 Apr 2002 13:24:36 -0000
@@ -1,5 +1,11 @@
Simple install:
+% cd httpd-2.0
+% make distclean && ./buildconf
+% ./configure --prefix=/usr/local/apache-2.0 --with-mpm=prefork
+% make && make install
+
+% cd ../modperl-2.0
% perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2
% make && make test
% make install
Summary of my perl5 (revision 5.0 version 7 subversion 3 patch 15794) configuration:
Platform:
osname=linux, osvers=2.2.14-5.0, archname=i686-linux-thread-multi
uname='linux mainsheet.laserlink.net 2.2.14-5.0 #1 tue mar 7 21:07:39 est 2000 i686
unknown '
config_args='-des -Dusethreads -Dprefix=/src/bleedperl -Doptimize=-g -Dusedevel
-Dinstallusrbinperl -Uversiononly'
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 -DDEBUGGING -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-g',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing
-I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)',
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 =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lpthread -lc -lposix -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lpthread -lc -lposix -lcrypt -lutil
libc=/lib/libc-2.1.3.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
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
Locally applied patches:
DEVEL15771
Built under linux
Compiled at Apr 7 2002 22:04:55
@INC:
/src/bleedperl/lib/5.7.3/i686-linux-thread-multi
/src/bleedperl/lib/5.7.3
/src/bleedperl/lib/site_perl/5.7.3/i686-linux-thread-multi
/src/bleedperl/lib/site_perl/5.7.3
/src/bleedperl/lib/site_perl/5.7.2/i686-linux-thread-multi
/src/bleedperl/lib/site_perl/5.7.2
/src/bleedperl/lib/site_perl
.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]