Re: [mp2] make test fails to start httpd

2003-06-05 Thread Dave

I am having the exact same test failure results on openbsd, and the
archives show that some people have had similar problems, with no
resolution that I have seen.

what happens if you manually run

/usr/local/apache2/bin/httpd -X -d ./t -f cont/httpd.conf

from within the toplevel mod_perl-1.99_09 directory?  the -X tells apache
to run as a single process, no forking.  the problem on openbsd is that
the fork'd child processes are getting segfaults somewhere in libperl.so,
but the parent process is doing its thing (fork'ing children) and
returning successfully.  I didn't post a bug report here because I think
its a problem with perl on openbsd.  Could this be a mod_perl problem?
the segfaults are due to attempts to access mem 0xabababab which is a
special value that perl uses (with the Poison macro) to try to make
catching segfaults easier.  I'm kinda stuck.

Dave

Eric Schwartz wrote:
 *** setting ulimit to allow core files
 ulimit -c unlimited; t/TEST -verbose=0
 /usr/local/apache2/bin/httpd  -d /usr/local/src/mod_perl-1.99_09/t -f
 /usr/local/src/mod_perl-1.99_09/t/conf/httpd.conf -DAPACHE2
 using Apache/2.0.46 (prefork MPM)

 waiting for server to start: ..[Wed Jun 04 00:11:21 2003] [info] 19
 Apache:: modules loaded
 [Wed Jun 04 00:11:21 2003] [info] 3 APR:: modules loaded
 [Wed Jun 04 00:11:21 2003] [info] base server + 8 vhosts ready to run
 tests
 
 waiting for server to start: giving up after 61 secs
 !!! server failed to start! (please examine t/logs/error_log)
 make: *** [run_tests] Error 1


Re: [mp2] make test fails to start httpd

2003-06-05 Thread Ged Haywood
Hi there,

On Wed, 4 Jun 2003, Dave wrote:

 I am having the exact same test failure results on openbsd

Did you build the Perl on that machine?

If not, it might be worth a shot.

73,
Ged.



Re: [mp2] make test fails to start httpd

2003-06-05 Thread Dave


Ged Haywood wrote:
 On Wed, 4 Jun 2003, Dave wrote:

  I am having the exact same test failure results on openbsd

 Did you build the Perl on that machine?

 If not, it might be worth a shot.

yes I did, I recompiled with debugging, and which causes the segfault to
occur in different function from the non-debugging build.

Dave


Re: [mp2] make test fails to start httpd

2003-06-05 Thread Stas Bekman
Dave wrote:
I am having the exact same test failure results on openbsd, and the
archives show that some people have had similar problems, with no
resolution that I have seen.
sure, and it was the same problem with aix earlier. The problem is with DSO 
loading and it's a different problem on each platform, though it inhibits 
itself in the same way to user's eye ;)

what happens if you manually run

/usr/local/apache2/bin/httpd -X -d ./t -f cont/httpd.conf

from within the toplevel mod_perl-1.99_09 directory?  the -X tells apache
to run as a single process, no forking.  the problem on openbsd is that
the fork'd child processes are getting segfaults somewhere in libperl.so,
but the parent process is doing its thing (fork'ing children) and
returning successfully.  I didn't post a bug report here because I think
its a problem with perl on openbsd.  Could this be a mod_perl problem?
the segfaults are due to attempts to access mem 0xabababab which is a
special value that perl uses (with the Poison macro) to try to make
catching segfaults easier.  I'm kinda stuck.
You don't tell which version of OpenBSD you are on. Philippe and I have spent 
a lot of time trying to make it working on OpenBSD 2.9, but weren't 
successful. I couldn't even run mod_perl 1, DSO with customly built perl. 
Using the system 5.6.0 perl was good for making mod_perl 1 DSO working, but 
it's of no use to mod_perl 2.0. The problem is that system 5.6.0 perl was 
customly build and I wasn't able to produce a similar version for 5.6.1 or 
higher and OpenBSD 2.9 is no longer supported, so 5.6.0 is the best you can get.

FWIW, Philippe reported having no problems running mod_perl 2.0 on OpenBSD 3.3 
(though I think you need to use current cvs for that).

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: [mp2] make test fails to start httpd

2003-06-05 Thread Eric Schwartz
On Wednesday, Jun 4, 2003, at 11:52 America/Denver, Dave wrote:
I am having the exact same test failure results on openbsd, and the
archives show that some people have had similar problems, with no
resolution that I have seen.
what happens if you manually run

/usr/local/apache2/bin/httpd -X -d ./t -f cont/httpd.conf

from within the toplevel mod_perl-1.99_09 directory?
It segfaults, just as you suspected.  The trace appears to be in 
libperl.so as well:

(gdb) bt
#0  0x005de974 in Perl_hv_store_flags ()
#1  0x005e1274 in Perl_hv_fetch ()
#2  0x0058e300 in Perl_gv_fetchpv ()
#3  0x005a1d24 in S_pending_ident ()
#4  0x00592418 in Perl_yylex ()
#5  0x005ad3d4 in Perl_yyparse ()
#6  0x00614f4c in S_doeval ()
#7  0x00616550 in Perl_pp_require ()
#8  0x005e49a8 in Perl_runops_standard ()
#9  0x00588910 in Perl_call_sv ()
#10 0x0058c448 in S_call_list_body ()
#11 0x0058bfcc in Perl_call_list ()
#12 0x005b9fb8 in Perl_newATTRSUB ()
#13 0x005b4e5c in Perl_utilize ()
#14 0x005ae000 in Perl_yyparse ()
#15 0x00614f4c in S_doeval ()
#16 0x00616550 in Perl_pp_require ()
#17 0x005e49a8 in Perl_runops_standard ()
#18 0x00588910 in Perl_call_sv ()
#19 0x0058c448 in S_call_list_body ()
#20 0x0058bfcc in Perl_call_list ()
#21 0x005b9fb8 in Perl_newATTRSUB ()
#22 0x005b4e5c in Perl_utilize ()
#23 0x005ae000 in Perl_yyparse ()
#24 0x00614f4c in S_doeval ()
#25 0x00616550 in Perl_pp_require ()
#26 0x005e49a8 in Perl_runops_standard ()
#27 0x00588910 in Perl_call_sv ()
#28 0x0058c448 in S_call_list_body ()
#29 0x0058bfcc in Perl_call_list ()
#30 0x005b9fb8 in Perl_newATTRSUB ()
#31 0x005b4e5c in Perl_utilize ()
#32 0x005ae000 in Perl_yyparse ()
#33 0x00614f4c in S_doeval ()
#34 0x00616550 in Perl_pp_require ()
#35 0x005e49a8 in Perl_runops_standard ()
#36 0x00588e2c in Perl_eval_sv ()
#37 0x0058916c in Perl_require_pv ()
#38 0x00458a1c in modperl_require_file ()
#39 0x004549fc in modperl_config_apply_PerlRequire ()
#40 0x00452864 in modperl_startup ()
#41 0x00452eb8 in modperl_hook_init ()
#42 0x00455bbc in modperl_cmd_load_module ()
#43 0x000363a4 in invoke_cmd (cmd=0x46a9dc, parms=0xbb30, 
mconfig=0x343708, args=0x34e220 TestDirective::perlloadmodule) at 
config.c:828
#44 0x00036a64 in ap_walk_config_sub (current=0x34e200, 
parms=0xbb30, section_vector=0x3020a8) at config.c:1082
#45 0x00036b04 in ap_walk_config (current=0x34e200, parms=0xbb30, 
section_vector=0x3020a8) at config.c:1121
#46 0x00037678 in ap_process_config_tree (s=0x300c58, 
conftree=0x3439c8, p=0x2fe548, ptemp=0x33e058) at config.c:1594
#47 0x00023f98 in main (argc=6, argv=0xbccc) at main.c:638
#48 0x28bc in _start (argc=6, argv=0xbccc, envp=0xbce8) at 
/SourceCache/Csu/Csu-45/crt.c:267
#49 0x273c in start ()

-=Eric



Re: [mp2] make test fails to start httpd

2003-06-05 Thread Stas Bekman
Eric Schwartz wrote:
On Wednesday, Jun 4, 2003, at 11:52 America/Denver, Dave wrote:

I am having the exact same test failure results on openbsd, and the
archives show that some people have had similar problems, with no
resolution that I have seen.
what happens if you manually run

/usr/local/apache2/bin/httpd -X -d ./t -f cont/httpd.conf

from within the toplevel mod_perl-1.99_09 directory?


It segfaults, just as you suspected.  The trace appears to be in 
libperl.so as well:

(gdb) bt
#0  0x005de974 in Perl_hv_store_flags ()
#1  0x005e1274 in Perl_hv_fetch ()
#2  0x0058e300 in Perl_gv_fetchpv ()
#3  0x005a1d24 in S_pending_ident ()
#4  0x00592418 in Perl_yylex ()
#5  0x005ad3d4 in Perl_yyparse ()
I remember seeing the same trace on OpenBSD 2.9. BTW, Eric have you tried 
building mod_perl 1.0 as DSO on that setup? I had exactly the same problems 
with it as with mod_perl 2.0.



__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: [mp2] make test fails to start httpd

2003-06-05 Thread Dave

Stas Bekman wrote:
 You don't tell which version of OpenBSD you are on.

sorry, openbsd 3.3 with perl 5.8.0

 FWIW, Philippe reported having no problems running mod_perl 2.0 on OpenBSD 3.3
 (though I think you need to use current cvs for that).

thats good, I guess I'll try the code from cvs.
Dave


Re: [mp2] make test fails to start httpd

2003-06-05 Thread Stas Bekman
Dave wrote:
Stas Bekman wrote:

You don't tell which version of OpenBSD you are on.


sorry, openbsd 3.3 with perl 5.8.0


FWIW, Philippe reported having no problems running mod_perl 2.0 on OpenBSD 3.3
(though I think you need to use current cvs for that).


thats good, I guess I'll try the code from cvs.
Actually I can't see it in the Changes, perhaps it wasn't committed. Philippe? 
Remember that patch you sent me to do IPV6 in Apache::Test on OpenBSD?

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


[mp2] make test fails to start httpd

2003-06-04 Thread Eric Schwartz
1. Problem Description:

  'make' test fails to start httpd:

$ make test
cd src/modules/perl  make -f Makefile.modperl
make[1]: Nothing to be done for `all'.
/usr/local/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -clean
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST -clean
APACHE_USER= APACHE_GROUP= APACHE_PORT= APACHE= APXS= \
/usr/local/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -verbose=0
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST -verbose=0
/usr/local/apache2/bin/httpd  -d /usr/local/src/mod_perl-1.99_09/t -f 
/usr/local/src/mod_perl-1.99_09/t/conf/httpd.conf -DAPACHE2
using Apache/2.0.46 (prefork MPM)

waiting for server to start: ..[Wed Jun 04 00:11:21 2003] [info] 19 
Apache:: modules loaded
[Wed Jun 04 00:11:21 2003] [info] 3 APR:: modules loaded
[Wed Jun 04 00:11:21 2003] [info] base server + 8 vhosts ready to run 
tests

waiting for server to start: giving up after 61 secs
!!! server failed to start! (please examine t/logs/error_log)
make: *** [run_tests] Error 1

So I examine t/logs/error_log as it suggests:

$ cat t/logs/error_log
END in modperl_extra.pl, pid=19220
modperl_extra.pl doesn't yield any obvious other places to look for 
help, so I'm stumped.

2. Used Components and their Configuration:

*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
  MP_AP_PREFIX   = /usr/local/apache2
  MP_COMPAT_1X   = 1
  MP_GENERATE_XS = 1
  MP_LIBNAME = mod_perl
  MP_USE_DSO = 1
  MP_USE_STATIC  = 1
*** /usr/local/apache2/bin/httpd -V
Server version: Apache/2.0.46
Server built:   Jun  3 2003 23:00:54
Server's Module Magic Number: 20020903:3
Architecture:   32-bit
Server compiled with
 -D APACHE_MPM_DIR=server/mpm/prefork
 -D APR_HAS_MMAP
 -D APR_USE_POSIXSEM_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
*** /usr/local/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
osname=darwin, osvers=6.6, archname=darwin
uname='darwin eric-schwartzs-computer.local. 6.6 darwin kernel 
version 6.6: thu may 1 21:48:54 pdt 2003; 
root:xnuxnu-344.34.obj~1release_ppc power macintosh powerpc '
config_args='-de -Dprefix=/usr [EMAIL PROTECTED] 
[EMAIL PROTECTED]'
hint=previous, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef 
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
  Compiler:
cc='cc', ccflags ='-pipe -fno-common -no-cpp-precomp 
-fno-strict-aliasing',
optimize='-O3',
cppflags='-no-cpp-precomp -pipe -fno-common -no-cpp-precomp 
-fno-strict-aliasing -pipe -fno-common -no-cpp-precomp 
-fno-strict-aliasing'
ccversion='', gccversion='3.1 20020420 (prerelease)', 
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
alignbytes=8, prototype=define
  Linker and Libraries:
ld='cc', ldflags =' -flat_namespace'
libpth=/usr/lib
libs=-lm -lc
perllibs=-lm -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, 
libperl=libperl.dylib
gnulibc_version=''
  Dynamic Linking:
dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -flat_namespace -bundle -undefined 
suppress'

Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under darwin
  Compiled at Jun  1 2003 13:20:13
  %ENV:
PERL5LIB=/sw/lib/perl5
PERL_LWP_USE_HTTP_10=1
  @INC:
/sw/lib/perl5/darwin
/sw/lib/perl5
/Library/Perl/darwin
/Library/Perl
/Library/Perl/darwin
/Library/Perl
/Library/Perl
/Network/Library/Perl/darwin
/Network/Library/Perl
/Network/Library/Perl
.
This report was generated by -e on Wed Jun  4 06:10:09 2003 GMT.



Re: [mp2] make test fails to start httpd

2003-06-04 Thread Stas Bekman
Eric Schwartz wrote:
1. Problem Description:

  'make' test fails to start httpd:
[...]
waiting for server to start: giving up after 61 secs
!!! server failed to start! (please examine t/logs/error_log)
[...]
*** /usr/local/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
osname=darwin, osvers=6.6, archname=darwin
I don't think it was ever successfully built on darwin. I suppose that the 
build process may need some tweaking, so somebody with darwin machine and 
darwin-specific DSO knowledge can take care of this and produce the needed 
patches which we gladly accept.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com