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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18756

Apache core dump when using LDAP authentification.





------- Additional Comments From [EMAIL PROTECTED]  2003-11-16 19:35 -------
All built from Source from CVS -HEAD
OS: FreeBSD 5.1-CURRENT

backtrace:
#0  apr_rmm_calloc (rmm=0xd0d0d0d0, reqsize=99) at apr_rmm.c:344
#1  0x2908c8a2 in util_ald_alloc (cache=0x8139288, size=3503345872) at
util_ldap_cache_mgr.c:141
#2  0x2908cbc0 in util_ald_create_cache (st=0x80d15b8, hashfunc=0xd0d0d0d0,
comparefunc=0xd0d0d0d0, copyfunc=0xd0d0d0d0, freefunc=0xd0d0d0d0)
    at util_ldap_cache_mgr.c:304
#3  0x2908c804 in util_ldap_cache_init (pool=0x809b018, st=0x80d15b8) at
util_ldap_cache.c:324
#4  0x2908c044 in util_ldap_post_config (p=0x809b018, plog=0x80c5018,
ptemp=0x80c7018, s=0x80b51e0) at util_ldap.c:1147
#5  0x08063752 in ap_run_post_config (pconf=0x809b018, plog=0x80c5018,
ptemp=0x80c7018, s=0x80b51e0) at config.c:131
#6  0x08068658 in main (argc=3, argv=0xbfbffb48) at main.c:618
#7  0x0805c269 in _start ()

It seems that in util_ldap_cache_mgr.c around line 300 we do this:

#if APR_HAS_SHARED_MEMORY
cache = (util_ald_cache_t *)util_ald_alloc(st->cache_rmm, 
sizeof(util_ald_cache_t));
#else


But the util_ald_alloc function expects a util_ald_cache_t type, and we are
passing in a apr_rmm_t. util_ald_alloc then does:

if (cache->rmm_addr) {
/* allocate from shared memory */
return (void *)apr_rmm_addr_get(cache->rmm_addr, apr_rmm_calloc(cache->rmm_addr,
size));
}

Since we passed in an apr_rmm_t, it does a nice crash when we try todo all the
stuff with cache->rmm_addr.

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

Reply via email to