httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 29873] - crash in ldap cache function util_ald_create_cache
Date Tue, 06 Jul 2004 10:02:53 GMT
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=29873>.
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=29873

crash in ldap cache function util_ald_create_cache





------- Additional Comments From jah@progress.com  2004-07-06 10:02 -------
This seems to be an alignment issue. The optimized build on Solaris uses the
'std' assembly instruction to store the apr_time_t values into the structure.
However, the memory block returned by apr_rmm_calloc is not always aligned to an
8-byte boundary. When the structure is not aligned, this instruction will crash
the program with a bus error.

I have verified this by adding code to util_ald_create_cache that will try to
reallocate the block if it's not aligned and this does cure the crash. But it
does not solve the underlying problem that apr_rmm_calloc will allocate
unaligned memory blocks.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message