httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@covalent.net
Subject Re: [PATCH] config tree bug (is anybody hitting one)???
Date Wed, 26 Apr 2000 17:26:19 GMT

I'm not hitting this bug, and I've been exercising the config stuff pretty
hard recently.  Are you using the default config?

Ryan

On Wed, 26 Apr 2000, Jeff Trawick wrote:

> I'm not sure why nobody else is hitting this.  This would seem to affect
> many config files.  (The obvious answer is that I've screwed up
> somewhere, but I'll choose to ignore that possibility for the moment :) )
> 
> For a config file that starts out as:
> 
> <IfModule prefork.c>
> StartServers         10
> MinSpareServers      5
> MaxSpareServers     40
> MaxClients          200
> MaxRequestsPerChild  0
> </IfModule>
> 
> I'm getting this init failure:
> 
> [trawick@k5 src]$ ./httpd -f /tmp/apache-2.0/conf/tmp.conf
> Syntax error on line 7 of /tmp/apache-2.0/conf/tmp.conf:
> </IfModule> without matching <IfModule> section
> 
> ap_build_config_sub() is confused because curr_parent is not set
> properly. 
> 
> With the following patch it goes away.  I'm not confident that
> this is the correct code or the correct place for it, but perhaps Ryan
> or Greg Stein will know.
> 
> Index: main/http_config.c
> ===================================================================
> RCS file: /cvs/apache/apache-2.0/src/main/http_config.c,v
> retrieving revision 1.44
> diff -u -r1.44 http_config.c
> --- http_config.c       2000/04/26 07:14:32     1.44
> +++ http_config.c       2000/04/26 19:53:59
> @@ -976,6 +976,9 @@
> 
>          if (*conftree == NULL && current != NULL) {
>              *conftree = current;
> +            if (!curr_parent) {
> +                curr_parent = current;
> +            }
>          }
>      }
>              
> -- 
> Jeff Trawick | trawick@ibm.net | PGP public key at web site:
>      http://www.geocities.com/SiliconValley/Park/9289/
>           Born in Roswell... married an alien...
> 


_______________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------


Mime
View raw message