Hi, I'm seeing a SIGBUS when I try to get ldap working. The SIGBUS is obtained at util_ldap_cache_mgr.c:322, where we're trying to initialize the value of a double variable. The problem happens because the variable address is in the shared memory at a 4-byte alligned address.
The following patch solves the problem. With this, ALL the memory allocation when using apr_rmm is a upper limit of the size of double on the system. i.e., if we ask for 12 bytes of memory, we allocate 16 bytes => any memory allocation will automatically be 8-byte alligned.
How about using APR_ALIGN_DEFAULT instead of computing grain? -- justin
