Re: [mp2] Problem with custom config in Location

[prev] [thread] [next] [Date index for 2005/05/20]

From: Herve Guillemet
Subject: Re: [mp2] Problem with custom config in Location
Date: 07:57 on 20 May 2005

On Thu, 19 May 2005, Stas Bekman wrote:

> Herve Guillemet wrote:
>> 
>> 1. Problem Description:
>> 
>> A custom apache config directive defined in a <Location> together with
>> a PerlResponseHandler makes the request handling crash.
>
> Herve, have you considered to check the error_log before reporting a problem? 
> Your code is improperly written and the error_log should have told you that. 
> In the future please check that file first. Thank you.
>
> Please find an attached tarball with a testing setup that works.

Hi Stas,

I have indeed forgotten to mention that there was absolutely nothing in 
the error_log, nor in the access_log, about the crashed request.

Thanks for your answer and the testing setup . But this still does not 
work in my environment. No core generated.

make test
/opt/xi3/bin/perl -Iblib/arch -Iblib/lib t/TEST  -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /opt/xi3/bin/perl 
/home/hg/bug-reporting-skeleton-mp2/t/TEST -clean
APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER= 
APACHE_TEST_APXS= /opt/xi3/bin/perl -Iblib/arch -Iblib/lib \
t/TEST  -bugreport -verbose=0
[warning] setting ulimit to allow core files
ulimit -c unlimited; /opt/xi3/bin/perl 
/home/hg/bug-reporting-skeleton-mp2/t/TEST -bugreport -verbose=0
/opt/xi3/bin/httpd  -d /home/hg/bug-reporting-skeleton-mp2/t -f 
/home/hg/bug-reporting-skeleton-mp2/t/conf/httpd.conf -D APACHE2 -D 
PERL_USEITHREADS
using Apache/2.0.54 (worker MPM)

waiting 60 seconds for server to start: ..
waiting 60 seconds for server to start: ok (waited 1 secs)
server localhost:8529 started
t/bug....skipped
         all skipped: no reason given
All tests successful, 1 test skipped.
Files=1, Tests=0,  0 wallclock secs ( 0.32 cusr +  0.01 csys =  0.33 CPU)
[warning] server localhost:8529 shutdown

% cat t/logs/error_log
[Fri May 20 09:55:16 2005] [info] mod_unique_id: using ip addr 10.0.0.6
[Fri May 20 09:55:17 2005] [notice] Digest: generating secret for digest 
authentication ...
[Fri May 20 09:55:17 2005] [notice] Digest: done
[Fri May 20 09:55:17 2005] [info] mod_unique_id: using ip addr 10.0.0.6
[Fri May 20 09:55:18 2005] [notice] Apache/2.0.54 (Unix) DAV/2 
mod_perl/1.999.23 Perl/v5.8.6 configured -- resuming normal operations
[Fri May 20 09:55:18 2005] [info] Server built: May  1 2005 13:33:18
[Fri May 20 09:55:18 2005] [debug] worker.c(1650): AcceptMutex: sysvsem 
(default: sysvsem)
[Fri May 20 09:55:18 2005] [info] removed PID file 
/home/hg/bug-reporting-skeleton-mp2/t/logs/httpd.pid (pid=1746)
[Fri May 20 09:55:18 2005] [notice] caught SIGTERM, shutting down
hg@acer:~/bug-reporting-skeleton-mp2 % cat t/logs/error_log
[Fri May 20 09:55:16 2005] [info] mod_unique_id: using ip addr 10.0.0.6
[Fri May 20 09:55:17 2005] [notice] Digest: generating secret for digest 
authentication ...
[Fri May 20 09:55:17 2005] [notice] Digest: done
[Fri May 20 09:55:17 2005] [info] mod_unique_id: using ip addr 10.0.0.6
[Fri May 20 09:55:18 2005] [notice] Apache/2.0.54 (Unix) DAV/2 
mod_perl/1.999.23 Perl/v5.8.6 configured -- resuming normal operations
[Fri May 20 09:55:18 2005] [info] Server built: May  1 2005 13:33:18
[Fri May 20 09:55:18 2005] [debug] worker.c(1650): AcceptMutex: sysvsem 
(default: sysvsem)
[Fri May 20 09:55:18 2005] [info] removed PID file 
/home/hg/bug-reporting-skeleton-mp2/t/logs/httpd.pid (pid=1746)
[Fri May 20 09:55:18 2005] [notice] caught SIGTERM, shutting down


cat t/logs/access_log
127.0.0.1 - - [20/May/2005:09:55:18 +0200] "GET /index.html HTTP/1.0" 200 828


(message missing)

[mp2] Problem with custom config in Location
Herve Guillemet 19:41 on 19 May 2005

Re: [mp2] Problem with custom config in Location
Herve Guillemet 07:57 on 20 May 2005

Re: [mp2] Problem with custom config in Location
Herve Guillemet 16:09 on 20 May 2005

Re: [mp2] Problem with custom config in Location
Herve Guillemet 23:16 on 20 May 2005

Re: [mp2] Problem with custom config in Location
Herve Guillemet 13:52 on 21 May 2005

Re: [mp2] Problem with custom config in Location
Herve Guillemet 20:30 on 21 May 2005

Generated at 15:53 on 25 May 2005 by mariachi v0.52