Re: [mp2] segfaulting apache in ap_pcw_walk_files_config
[prev]
[thread]
[next]
[Date index for 2005/05/23]
Flavio Curti wrote:
> Hello
>
> I have a problem running mod_perl-2.0.0 (and the latest devel snapshot too):
>
> Apache segfaults on startup as soon as I have the LoadModule directive
> in the httpd.conf. This also happens when running make test. I have
> compiled mod_perl with debugging enabled and found the problematic
> spot, however I have no idea on what exactly is wrong:
>
> (gdb output after segfault):
>
> [Mon May 23 17:10:32 2005] [info] 6 Apache2:: modules loaded
> [Mon May 23 17:10:32 2005] [info] 0 APR:: modules loaded
> [Mon May 23 17:10:32 2005] [info] base server + 27 vhosts ready to run tests
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1212529568 (LWP 11107)]
> 0xb75a86dc in ap_pcw_walk_files_config (pconf=0x80c20a8, s=0x80c8018,
> dconf=0x80fe4a8, modp=0xb75bb500,
> dir_cb=0xb75a82d0 <modperl_hash_handlers_dir>, data=0x0)
> at modperl_pcw.c:67
> 67 ap_conf_vector_t **dirs = (ap_conf_vector_t **)dconf->sec_file->elts;
> (gdb) bt
> #0 0xb75a86dc in ap_pcw_walk_files_config (pconf=0x80c20a8, s=0x80c8018,
> dconf=0x80fe4a8, modp=0xb75bb500,
> dir_cb=0xb75a82d0 <modperl_hash_handlers_dir>, data=0x0)
> at modperl_pcw.c:67
> #1 0xb75a889e in ap_pcw_walk_config (pconf=0x80c20a8, s=0x80c8018,
> modp=0xb75bb500, data=0x0, dir_cb=0xb75a82d0 <modperl_hash_handlers_dir>,
> srv_cb=0xb75a8390 <modperl_hash_handlers_srv>) at modperl_pcw.c:121
> #2 0xb75a851a in modperl_mgv_hash_handlers (p=0x0, s=0x0) at modperl_mgv.c:520
> #3 0xb759ac52 in modperl_hook_post_config_last (pconf=0x80c20a8,
> plog=0x80f8180, ptemp=0x80fa188, s=0x80c8018) at mod_perl.c:701
> #4 0x080824ca in ap_run_post_config ()
> #5 0x08087d7e in main ()
> (gdb)
Thanks for the complete report, Flavio. We had this problem reported
before and Philippe was working on it as you can see from this thread
http://www.gossamer-threads.com/lists/modperl/dev/7190#7190
which is a great example how things suck when people don't trim their
followups to the list :(
gozer, mind to take a look at this one, as you've been already working on
this? Thanks!
> 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.
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
 |
(message missing)
|