apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jus...@erenkrantz.com>
Subject Re: [PATCH] apr_rmm.c
Date Fri, 18 Apr 2003 06:58:54 GMT
--On Thursday, April 17, 2003 9:25 PM -0400 "MATHIHALLI,MADHUSUDAN 
(HP-Cupertino,ex1)" <madhum@hp.com> wrote:

> 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

Mime
View raw message