RE: Make test hangs on httpdconf
On Thu, 8 Mar 2001, John Walker wrote: > > -Original Message- > > From: Stas Bekman [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, March 06, 2001 10:08 AM > > To: John Walker > > Cc: '[EMAIL PROTECTED]' > > Subject: RE: Make test hangs on httpdconf > > > > > > > Actually, it seems I've screwed things up worse than that. > [...] > > > try to run the test under strace > > % strace perl t/TEST ... > [...] > > Alternatively, you can attach to the hanging process > > fails on the same test still and I've reaquired the source, and done the > simplest of build from you guide. (And there aren't any errors in the > build.) > > I've attached a txt file containing the output of strace -p. It doesn't mean > much to me, but perhaps you will see something meaningful. One line did > strike me as odd, but I got it again even after downloading a new tarball. > (No the file is not there...why do we test for it?) > > open("/usr/src/mod_perl-1.25/t/.htaccess", O_RDONLY) = -1 ENOENT (No such > file or directory) That's absolutely normal. See: http://perl.apache.org/guide/performance.html#Reducing_the_Number_of_stat_Ca > In the mean time, I have done a few other things to try to resolve the > problem. I am using Debian linux for the first time, and since I am familiar > with CPAN module shell, I uninstalled all the .deb perl files (except the > required base package) and then reinstalled everything through CPAN. CPAN > tells me (cpan> r) that I should upgrade Test::Harness, but when I try this > also fails. I don't know if this is related, but the name coincidence > strikes me as odd. > > What could underly both of these and cause my problems? (I think my gcc > envirnment is pretty good... I was able to build a new 2.4 kernel with it > anyway...) Hmm, I've compared the trace generated on my machine during the: % strace perl t/TEST modules/httpdconf and it's very different. Are you running the same test? What perl/apache/linux kernel/gcc/ versions are you using? I'm sure thing didn't try it on kernel 2.4 yet. I prefer to wait a little before all the bugs will be gleaned out. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://logilune.com/ http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
RE: Make test hangs on httpdconf
> -Original Message- > From: Stas Bekman [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 06, 2001 10:08 AM > To: John Walker > Cc: '[EMAIL PROTECTED]' > Subject: RE: Make test hangs on httpdconf > > > > Actually, it seems I've screwed things up worse than that. [...] > try to run the test under strace > % strace perl t/TEST ... [...] > Alternatively, you can attach to the hanging process fails on the same test still and I've reaquired the source, and done the simplest of build from you guide. (And there aren't any errors in the build.) I've attached a txt file containing the output of strace -p. It doesn't mean much to me, but perhaps you will see something meaningful. One line did strike me as odd, but I got it again even after downloading a new tarball. (No the file is not there...why do we test for it?) open("/usr/src/mod_perl-1.25/t/.htaccess", O_RDONLY) = -1 ENOENT (No such file or directory) In the mean time, I have done a few other things to try to resolve the problem. I am using Debian linux for the first time, and since I am familiar with CPAN module shell, I uninstalled all the .deb perl files (except the required base package) and then reinstalled everything through CPAN. CPAN tells me (cpan> r) that I should upgrade Test::Harness, but when I try this also fails. I don't know if this is related, but the name coincidence strikes me as odd. What could underly both of these and cause my problems? (I think my gcc envirnment is pretty good... I was able to build a new 2.4 kernel with it anyway...) Thanks for the help, John From: root [[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 2:42 PM To: John Walker accept(16, {sin_family=AF_INET, sin_port=htons(32845), sin_addr=inet_addr("127.0.0.1")}}, [16]) = 3 rt_sigaction(SIGUSR1, {SIG_IGN}, {0x809f294, [], SA_INTERRUPT|0x400}, 8) = 0 getsockname(3, {sin_family=AF_INET, sin_port=htons(8529), sin_addr=inet_addr("127.0.0.1")}}, [16]) = 0 setsockopt(3, IPPROTO_TCP1, [1], 4) = 0 alarm(300) = 0 read(3, "GET /test.html HTTP/1.0\r\nHost: l"..., 4096) = 79 rt_sigaction(SIGUSR1, {SIG_IGN}, {SIG_IGN}, 8) = 0 time(NULL) = 984080384 alarm(300) = 300 alarm(0)= 300 rt_sigaction(SIGALRM, NULL, {0x809def4, [], SA_RESTART|0x400}, 8) = 0 dup2(15, 2) = 2 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 stat("/usr/src/mod_perl-1.25/t/docs/test.html", {st_mode=S_IFREG|0644, st_size=566, ...}) = 0 open("/usr/src/mod_perl-1.25/t/.htaccess", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/src/mod_perl-1.25/t/docs/.htaccess", O_RDONLY) = 4 fstat(4, {st_mode=S_IFREG|0666, st_size=1, ...}) = 0 fstat(4, {st_mode=S_IFREG|0666, st_size=1, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40015000 read(4, " ", 4096) = 1 read(4, "", 4096) = 0 read(4, "", 4096) = 0 close(4)= 0 munmap(0x40015000, 4096)= 0 open("/usr/src/mod_perl-1.25/t/docs/test.html", O_RDONLY) = 4 old_mmap(NULL, 566, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40015000 alarm(300) = 0 alarm(0)= 300 alarm(300) = 0 alarm(300) = 300 alarm(0)= 300 close(4)= 0 select(4, [3], NULL, NULL, {0, 0}) = 0 (Timeout) write(3, "HTTP/1.1 200 OK\r\nDate: Thu, 08 M"..., 839) = 839 alarm(30) = 0 shutdown(3, 1 /* send */) = 0 select(4, [3], NULL, NULL, {2, 0}) = 1 (in [3], left {2, 0}) read(3, "", 512)= 0 close(3)= 0 alarm(0)= 30 rt_sigaction(SIGUSR1, {0x809f294, [], SA_INTERRUPT|0x400}, {SIG_IGN}, 8) = 0 alarm(0)= 0 munmap(0x40015000, 566) = 0 rt_sigaction(SIGALRM, {0x809def4, [], SA_RESTART|0x400}, {0x809def4, [], SA_RESTART|0x400}, 8) = 0 accept(16, {sin_family=AF_INET, sin_port=htons(32846), sin_addr=inet_addr("127.0.0.1")}}, [16]) = 3 rt_sigaction(SIGUSR1, {SIG_IGN}, {0x809f294, [], SA_INTERRUPT|0x400}, 8) = 0 getsockname(3, {sin_family=AF_INET, sin_port=htons(8529), sin_addr=inet_addr("127.0.0.1")}}, [16]) = 0 setsockopt(3, IPPROTO_TCP1, [1], 4) = 0 alarm(300) = 0 read(3, "GET /test.html HTTP/1.0\r\nHost: l"..., 4096) = 79 rt_sigaction(SIGUSR1, {SIG_IGN}, {SIG_IGN}, 8) = 0 time(NULL) = 984080384 alarm(300)
RE: Make test hangs on httpdconf
> Actually, it seems I've screwed things up worse than that. I hadn't tried > this previously, but the test still hangs at this point. I have left it > going for 20 minutes before killing, just to be on the safe side. The above > suggestion produces the same results. I have included some listings on > ap_mmn.h and I also noted the output of netstat -aen seemed a bit odd to me. > Why is the server listening on 0.0.0.0 ? Is this normal? I also get some odd I see the same, so I guess it is. The test suite listens to 127.0.0.1, but I see 0.0.0.0 as well. > results in ps... but that could be cause I never looked while testing > before... Please note that the test does not fail, it simply goes to the > httpdconf test and stalls or hangs. Sorry for the imprecise language. I must > cancel the command (with ^C) to get back to a shell prompt. try to run the test under strace % strace perl t/TEST ... it will tell you where it hangs Alternatively, you can attach to the hanging process See http://perl.apache.org/guide/debug.html for more information. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://logilune.com/ http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
RE: Make test hangs on httpdconf
> -Original Message- > From: Stas Bekman [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 05, 2001 11:28 PM > To: John Walker > Cc: '[EMAIL PROTECTED]' > Subject: Re: Make test hangs on httpdconf > > > On Mon, 5 Mar 2001, John Walker wrote: > > > Apache 1.3.19 / Mod_perl-1.25 on Linux 2.2 (debian) > > [...] > > tests stall at httpdconf. I'm baffeled by the errors logs. [...] > > As explained at: > http://perl.apache.org/guide/install.html#Built_Server_Testing _make_test_ You should do: % cd mod_perl-1.25 % make start_httpd % perl t/TEST -v modules/httpdconf % make kill_httpd then you will see more verbose output. Stas, Actually, it seems I've screwed things up worse than that. I hadn't tried this previously, but the test still hangs at this point. I have left it going for 20 minutes before killing, just to be on the safe side. The above suggestion produces the same results. I have included some listings on ap_mmn.h and I also noted the output of netstat -aen seemed a bit odd to me. Why is the server listening on 0.0.0.0 ? Is this normal? I also get some odd results in ps... but that could be cause I never looked while testing before... Please note that the test does not fail, it simply goes to the httpdconf test and stalls or hangs. Sorry for the imprecise language. I must cancel the command (with ^C) to get back to a shell prompt. thanks a million (as usual ), John netstat output: tcp0 0 0.0.0.0:85290.0.0.0:* LISTEN ps output: john 7050 0.0 2.6 7876 6716 pts/0S07:29 0:00 ../apache_1.3.19/src/httpd -f /usr/src/mod_perl-1.25/t/conf/htt root 7059 0.0 1.5 5032 4036 pts/0S07:31 0:00 perl t/TEST -v modules/httpdconf root 7060 0.0 1.2 4260 3228 pts/0S07:31 0:00 perl -w modules/httpdconf.t ls -al `find / -name ap_mmn.h` (sorta) -r--r--r--1 root root13296 Jan 15 12:04 /usr/src/mod_perl-1.25/blib/arch/auto/Apache/include/include/ap_mmn.h -rw-r--r--1 1086 108613296 Jan 15 12:04 /usr/src/apache_1.3.19/src/include/ap_mmn.h tail t/logs/error_log Subroutine handler redefined at /usr/src/mod_perl-1.25/t//docs/stacked.pl line 6. Subroutine one redefined at /usr/src/mod_perl-1.25/t//docs/stacked.pl line 14. Subroutine two redefined at /usr/src/mod_perl-1.25/t//docs/stacked.pl line 25. Subroutine three redefined at /usr/src/mod_perl-1.25/t//docs/stacked.pl line 31. Subroutine four redefined at /usr/src/mod_perl-1.25/t//docs/stacked.pl line 37. [Tue Mar 6 07:29:59 2001] [warn] pid file /usr/src/mod_perl-1.25/t/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? Constant subroutine XHTML_DTD redefined at /usr/lib/perl5/5.005/constant.pm line 175. [notice] Destruction->DESTROY called for $global_object [Tue Mar 6 07:30:00 2001] [warn] [notice] child_init for process 7050, report any problems to [no address given]
Re: Make test hangs on httpdconf
On Mon, 5 Mar 2001, John Walker wrote: > Apache 1.3.19 / Mod_perl-1.25 on Linux 2.2 (debian) > > I have been following the guide, and I wasn't too successful with the CPAN > method, so I tried the "A Summary of a Basic mod_perl Installation" method. > I didn't notice any error during the configuration or the make step. The > tests stall at httpdconf. I'm baffeled by the errors logs. I have included > the last few lines of the tests and the tail on the error log. What might > cause this? > > Thanks in advance, > John > > cp t/conf/mod_perl_srm.conf t/conf/srm.conf > ../apache_1.3.19/src/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t & > httpd listening on port 8529 > will write error_log to: t/logs/error_log > letting apache warm up...\c > done > /usr/bin/perl t/TEST 0 > modules/actions.ok > modules/cgi.ok > modules/constants...ok > modules/cookie..skipping test on this platform > modules/fileok > modules/httpdconf... As explained at: http://perl.apache.org/guide/install.html#Built_Server_Testing_make_test_ You should do: % cd mod_perl-1.25 % make start_httpd % perl t/TEST -v modules/httpdconf % make kill_httpd then you will see more verbose output. Hope this helps... _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://logilune.com/ http://singlesheaven.com http://perl.apache.org http://perlmonth.com/