Re: [mp2] make test fails to start httpd
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
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
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
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
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
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
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
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
Re: [mp2] make test fails to start httpd
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