You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ro...@imdb.com> on 1997/01/20 19:09:04 UTC

Re: [BUG]: "core dump if an error in .htaccess & subrequest" on FreeBSD (fwd)

---------- Forwarded message ----------
To: lampa@fee.vutbr.cz
Subject: Re: [BUG]: "core dump if an error in .htaccess & subrequest" on FreeBSD


Hi,

thanks for the bug report and suggested fix. I'll pass the info
on to see if it can be dealt with before the next 1.2 beta.

cheers,
rob

On Mon, 20 Jan 1997 lampa@fee.vutbr.cz wrote:

> Submitter: lampa@fee.vutbr.cz
> Operating system: FreeBSD, version: 
> Version of Apache Used: 1.1.1, 1.2bx
> Extra Modules used: 
> URL exhibiting problem: 
> 
> Symptoms:
> --
> If sub_req_lookup_uri() is called, then
> per_dir_config in subrequest is not initialized
> until directory_walk is done. If any error is
> encountered during this time, log_reason()
> will core dump, since it calls get_remote_host()
> with r->per_dir_config.
> 
> Solution:
> 
> Initialize per_dir_config in set_sub_req_protocol()
> (see initialization of regular request in
> read_request()!).
>  
> --
> 
> Backtrace:
> --
> (gdb) where
> #0  0x6f5e in get_module_config (conf_vector=0x0, m=0x3d998)
>     at http_config.c:109
> #1  0x52f4 in get_remote_host (conn=0x66074, dir_config=0x0, type=1)
>     at http_core.c:272
> #2  0xa40f in log_reason (reason=0x7199c "Invalid command N",
>     file=0x718fc "/home/users/xv/xvelec00/WWW/.htaccess", r=0x71034)
>     at http_log.c:186
> #3  0x8108 in parse_htaccess (result=0xefbfb8e0, r=0x71034, override=4,
>     d=0x718dc "/home/users/xv/xvelec00/WWW/",
>     filename=0x718fc "/home/users/xv/xvelec00/WWW/.htaccess")
>     at http_config.c:608
> #4  0x8dce in directory_walk (r=0x71034) at http_request.c:350
> #5  0x9325 in sub_req_lookup_uri (new_file=0x6ef1c "~xvelec00/", r=0x660dc)
>     at http_request.c:536
> --
> 
>