You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Ian Holsman <ia...@cnet.com> on 2001/08/31 20:26:05 UTC

core dump when merging directory configs

Ok.
I narrowed this down abit. 
current CVS head

with a config with a section in my httpd.conf like:

<Location /test/>
</Location>
(it can have stuff inside of the location directive)


If I do a GET /test/index.html it works
if I do a GET /test/ it core dumps
any ideas?

--backtrace--

#0  0x08079721 in ap_merge_per_dir_configs (p=0x80f6294, base=0x0,
new_conf=0x810b40c) at config.c:264
264                 conf_vector[i] = new_vector[i] ? new_vector[i] :
base_vector[i];
(gdb) bt
#0  0x08079721 in ap_merge_per_dir_configs (p=0x80f6294, base=0x0,
new_conf=0x810b40c) at config.c:264
#1  0x0808bf36 in ap_location_walk (r=0x80f62c4) at request.c:1208
#2  0x0808b251 in ap_process_request_internal (r=0x80f62c4) at
request.c:154
#3  0x0808c425 in ap_sub_req_lookup_dirent (dirent=0xbfffd5b0,
r=0x80f22a4, next_filter=0x0) at request.c:1524
#4  0x0806d261 in make_autoindex_entry (dirent=0xbfffd5b0,
autoindex_opts=10240, d=0x80acad4, r=0x80f22a4, keyid=78 'N',
    direction=65 'A', pattern=0x0) at mod_autoindex.c:1260
#5  0x0806ec14 in index_directory (r=0x80f22a4,
autoindex_conf=0x80acad4) at mod_autoindex.c:1953
#6  0x0806ee07 in handle_autoindex (r=0x80f22a4) at mod_autoindex.c:2015
#7  0x080793b4 in ap_run_handler (r=0x80f22a4) at config.c:185
#8  0x080798de in ap_invoke_handler (r=0x80f22a4) at config.c:344
#9  0x0806a34a in ap_process_request (r=0x80f22a4) at http_request.c:286
#10 0x0806610e in ap_process_http_connection (c=0x80f0364) at
http_core.c:287
#11 0x0808209c in ap_run_process_connection (c=0x80f0364) at
connection.c:82
#12 0x08082231 in ap_process_connection (c=0x80f0364) at
connection.c:219
#13 0x08077f9c in child_main (child_num_arg=1) at prefork.c:829
#14 0x080780e9 in make_child (s=0x80abb04, slot=1) at prefork.c:916
#15 0x0807815f in startup_children (number_to_start=5) at prefork.c:939
#16 0x080785a3 in ap_mpm_run (_pconf=0x80aac04, plog=0x80dcd94,
s=0x80abb04) at prefork.c:1155
#17 0x0807d6d1 in main (argc=1, argv=0xbffff934) at main.c:431
#18 0x401942ae in __libc_start_main (main=0x807d1a0 <main>, argc=1,
ubp_av=0xbffff934, init=0x805c5e4 <_init>,
    fini=0x80932e0 <_fini>, rtld_fini=0x4000cf28 <_dl_fini>,
stack_end=0xbffff92c) at ../sysdeps/generic/libc-start.c:129
(gdb) quit


-- 
Ian Holsman          IanH@cnet.com
Performance Measurement & Analysis
CNET Networks   -   (415) 364-8608


Re: core dump when merging directory configs

Posted by "William A. Rowe, Jr." <mi...@rowe-clan.net>.
Simpler example...

<Location /icons/>
</Location>

Request /icons/

I'm debugging now.

----- Original Message ----- 
From: "Ian Holsman" <ia...@cnet.com>
To: <de...@httpd.apache.org>
Sent: Friday, August 31, 2001 1:26 PM
Subject: core dump when merging directory configs


Ok.
I narrowed this down abit. 
current CVS head

with a config with a section in my httpd.conf like:

<Location /test/>
</Location>
(it can have stuff inside of the location directive)


If I do a GET /test/index.html it works
if I do a GET /test/ it core dumps
any ideas?

--backtrace--

#0  0x08079721 in ap_merge_per_dir_configs (p=0x80f6294, base=0x0,
new_conf=0x810b40c) at config.c:264
264                 conf_vector[i] = new_vector[i] ? new_vector[i] :
base_vector[i];
(gdb) bt
#0  0x08079721 in ap_merge_per_dir_configs (p=0x80f6294, base=0x0,
new_conf=0x810b40c) at config.c:264
#1  0x0808bf36 in ap_location_walk (r=0x80f62c4) at request.c:1208
#2  0x0808b251 in ap_process_request_internal (r=0x80f62c4) at
request.c:154
#3  0x0808c425 in ap_sub_req_lookup_dirent (dirent=0xbfffd5b0,
r=0x80f22a4, next_filter=0x0) at request.c:1524
#4  0x0806d261 in make_autoindex_entry (dirent=0xbfffd5b0,
autoindex_opts=10240, d=0x80acad4, r=0x80f22a4, keyid=78 'N',
    direction=65 'A', pattern=0x0) at mod_autoindex.c:1260
#5  0x0806ec14 in index_directory (r=0x80f22a4,
autoindex_conf=0x80acad4) at mod_autoindex.c:1953
#6  0x0806ee07 in handle_autoindex (r=0x80f22a4) at mod_autoindex.c:2015
#7  0x080793b4 in ap_run_handler (r=0x80f22a4) at config.c:185
#8  0x080798de in ap_invoke_handler (r=0x80f22a4) at config.c:344
#9  0x0806a34a in ap_process_request (r=0x80f22a4) at http_request.c:286
#10 0x0806610e in ap_process_http_connection (c=0x80f0364) at
http_core.c:287
#11 0x0808209c in ap_run_process_connection (c=0x80f0364) at
connection.c:82
#12 0x08082231 in ap_process_connection (c=0x80f0364) at
connection.c:219
#13 0x08077f9c in child_main (child_num_arg=1) at prefork.c:829
#14 0x080780e9 in make_child (s=0x80abb04, slot=1) at prefork.c:916
#15 0x0807815f in startup_children (number_to_start=5) at prefork.c:939
#16 0x080785a3 in ap_mpm_run (_pconf=0x80aac04, plog=0x80dcd94,
s=0x80abb04) at prefork.c:1155
#17 0x0807d6d1 in main (argc=1, argv=0xbffff934) at main.c:431
#18 0x401942ae in __libc_start_main (main=0x807d1a0 <main>, argc=1,
ubp_av=0xbffff934, init=0x805c5e4 <_init>,
    fini=0x80932e0 <_fini>, rtld_fini=0x4000cf28 <_dl_fini>,
stack_end=0xbffff92c) at ../sysdeps/generic/libc-start.c:129
(gdb) quit


-- 
Ian Holsman          IanH@cnet.com
Performance Measurement & Analysis
CNET Networks   -   (415) 364-8608




Re: core dump when merging directory configs

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
The problem is this ...

sub_req (and perhaps redirect - I'm checking) don't set up the server/vhost
per_dir_config so ap_location_walk starts with a NULL r->per_dir_config pointer.

Since there _is_ a merge, and LHS is NULL, the request dies in the core default
(fallback) dir_merge.

I need to contemplate this for a bit, likely to patch it in about an hour.

Bill

From: "Cliff Woolley" <cl...@yahoo.com>
To: <de...@httpd.apache.org>
Sent: Friday, August 31, 2001 1:30 PM
Subject: Re: core dump when merging directory configs


> On 31 Aug 2001, Ian Holsman wrote:
> 
> > Ok.
> > I narrowed this down abit.
> > current CVS head
> >
> > with a config with a section in my httpd.conf like:
> >
> > <Location /test/>
> > </Location>
> > (it can have stuff inside of the location directive)
> >
> >
> > If I do a GET /test/index.html it works
> > if I do a GET /test/ it core dumps
> > any ideas?
> 
> I was just looking at exactly the same thing.  It's unrelated to the
> INTERNALLY GENERATED FOONESS thing.  I'll keep looking...
> 
> --Cliff
> 
> --------------------------------------------------------------
>    Cliff Woolley
>    cliffwoolley@yahoo.com
>    Charlottesville, VA
> 
> 
> 


Re: core dump when merging directory configs

Posted by Cliff Woolley <cl...@yahoo.com>.
On 31 Aug 2001, Ian Holsman wrote:

> Ok.
> I narrowed this down abit.
> current CVS head
>
> with a config with a section in my httpd.conf like:
>
> <Location /test/>
> </Location>
> (it can have stuff inside of the location directive)
>
>
> If I do a GET /test/index.html it works
> if I do a GET /test/ it core dumps
> any ideas?

I was just looking at exactly the same thing.  It's unrelated to the
INTERNALLY GENERATED FOONESS thing.  I'll keep looking...

--Cliff

--------------------------------------------------------------
   Cliff Woolley
   cliffwoolley@yahoo.com
   Charlottesville, VA