Re: [mp2] segfaulting apache in ap_pcw_walk_files_config

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

From: Philippe M. Chiasson
Subject: Re: [mp2] segfaulting apache in ap_pcw_walk_files_config
Date: 04:52 on 25 May 2005
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigB191804C5C9764980640CC69
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Flavio Curti wrote:
> Hi Philippe & List
> 
> (Sorry for not looking in the archives good enough!)
> 
> On 5/24/05, Philippe M. Chiasson <gozer@xxxxxxxxx.xxx> wrote:
> 
>>Flavio Curti wrote:
>>
>>>I have a problem running mod_perl-2.0.0 (and the latest devel snapshot too):
>>
>>It would be quite helpfull if you could just get me:
>>(gdb) print *dconf
>>(gdb) print *(dconf->sec_file)
> 
> [...]

Thanks for the dumps.

>>>In order to isolate the problem further I changed line 118 of modperl_pcw.c from
>>>  if (dir_cb) {
>>>to
>>>  if (dir_cb && 0) {
>>>and mod-perl2 started working! So there seems to be a problem with
>>>reading configuration files/directories somehow.
>>
>>Do you mean that the test suite passed _all_ it's tests or that the server
>>simply started up ? Because that patch would disable quite a few important
>>things.
> 
> Well, yeah it simply didn't segfault anymore. From running make test
> it seemed that many
> tests failed so I didn't bother running it through.

Okay, makes sense.

>>Can you also try this patch ?
> 
> Okay, I applied this patch to the 2.0 Version. Apache no longer
> segfaults but 201 out of 229 test scripts fail:
> Failed 201/229 test scripts, 12.23% okay. 377/684 subtests failed, 44.88% okay.
> Judging from the error_log it's because the apache-childs segfault. I
> have attached with gdb to the running test apache, and when accessing
> http://localhost:8531/TestUser__rewrite_real the child segfaults:
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1212529568 (LWP 23182)]
> 0xb759acbf in modperl_hook_create_request (r=0x959e028) at mod_perl.c:718
> 718	    MP_dRCFG;
> (gdb) bt
> #0  0xb759acbf in modperl_hook_create_request (r=0x959e028) at mod_perl.c:718
> #1  0x0809ad55 in ap_run_create_request ()
> #2  0x08092491 in ap_read_request ()
> #3  0x0806cb58 in _start ()
> #4  0x095980e8 in ?? ()
> #5  0x00000003 in ?? ()
> #6  0x00000000 in ?? ()
> #7  0xb75b3ec0 in modperl_process_connection_handler (c=0x0)
>     at modperl_hooks.c:17
> #8  0x0808da55 in ap_run_process_connection ()
> #9  0x08080e94 in ap_graceful_stop_signalled ()
> #10 0x08080fe7 in ap_graceful_stop_signalled ()
> #11 0x08081279 in ap_graceful_stop_signalled ()
> #12 0x08081965 in ap_mpm_run ()
> #13 0x08087efd in main ()
> 
> If you need anything else just tell me. If a verbose test-report is
> needed just tell me which test.

Actually, I'd like to have a look at your httpd.conf (the whole thing)
and any other conf files it might Include. This set of circumstances is
triggered by a specific configuration case I believe, and I need to
figure out what it is.

> Thank you very much for your help and kind regards

No problem, that's why were here ! Keep the high quality bug reports coming in!

--------------------------------------------------------------------------------
Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5
http://gozer.ectoplasm.org/     F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5

--------------enigB191804C5C9764980640CC69
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFClASDyzKhB4jDpaURAwpYAKCYJ6HqWPDzHcbdHwmcTPeFRrVcugCgpJUq
jN3FzVKBEAVOU3Tz3I2EBAQ=
=R2uC
-----END PGP SIGNATURE-----

--------------enigB191804C5C9764980640CC69--

(message missing)

Re: [mp2] segfaulting apache in ap_pcw_walk_files_config
Philippe M. Chiasson 06:22 on 24 May 2005

Re: [mp2] segfaulting apache in ap_pcw_walk_files_config
Philippe M. Chiasson 04:52 on 25 May 2005

Re: [mp2] segfaulting apache in ap_pcw_walk_files_config
Philippe M. Chiasson 09:16 on 25 May 2005

Re: [mp2] segfaulting apache in ap_pcw_walk_files_config
Philippe M. Chiasson 09:23 on 26 May 2005

Generated at 20:12 on 05 Jun 2005 by mariachi v0.52