DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=24801>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=24801

Apache crashes when distinct users exceeds LDAPCacheEntries





------- Additional Comments From [EMAIL PROTECTED]  2004-05-22 02:43 -------
In util_ald_cache_insert(), it attempts to add an item to the cache. There is no
check for whether the cache is full, because it is assumed that on the edge case
(of the very last cache entry being allocated) util_ald_cache_purge() will run,
which again is assumed to bring down the cache size.

So in this case, it looks like util_ald_cache_purge() is not bringing down the
cache size, so on the next entry we overflow.

Try this patch and see if it makes a difference - it checks for overflow before
we add, not after. The purge code is probably still broken, but at least we
won't segfault.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to