httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <r...@imdb.com>
Subject Re: [BUG]: "mod_dld problem: variable in httpd_config.c counted wrong" on Irix
Date Fri, 14 Mar 1997 02:15:05 GMT

Hi, thanks for the info. I'll pass it on to see if someone can
investigate.

cheers,
rob

On Thu, 13 Mar 1997 joe@hexmac.com wrote:

> Submitter: joe@hexmac.com
> Operating system: Irix, version: 5.3
> Version of Apache Used: 1.2.b7
> Extra Modules used: 
> URL exhibiting problem: 
> 
> Symptoms:
> --
> I have written a replacement for the mod_dld Module, 
> allowing modules in shared libraries. 
> (will be availible when tested somewhat more)
> While testing this, a bug in http_config.c showed
> up that most likely will also prevent mod_dld 
> from working and could cause funny things
> together with 'AddModule/ClearModuleList'
> 
> The static varible 'num_modules' from http_config.c 
> is intended to hold the number of active modules.
> 'add_module' should increase it when a module
> is activated, but that never happens because
> of http_config.c:398        
> 	(*m)->module_index = total_modules;
> I recommend to completely remove this line of code.
> Otherwise, any call to add_module for 
> modules not preloaded (i.e. dynamic ones)
> will corrupt the data.
> 
> By the way, to make dynamic modules work
> I also needed a way to increase the static
> variable total_modules.
> I added a call named 'register_module' to
> http_config.c, that increases the counter and
> then calls add_module. It would be great if 
> something like this could be added to the
> distribution.
> 
> Note:
> The original module mod_dld seems to have quite
> a lot of problems. I recomend to remove it from
> the distribution, unless you have some reports
> that it works correctly. (I'm just judging from
> the sourcecode: It fails to increase 'total_modules'
> when loading new modules, causing memory corruption)
> 
> --
> 
> Backtrace:
> --
> 
> --
> 

--
Rob Hartill   Internet Movie Database (Ltd)
http://us.imdb.com/Oscars/oscars_1996 -  hype free Oscars (R) info.
http://us.imdb.com/usr/sweepstake     -  Win a 56k X2 modem. Free draw.


Mime
View raw message