Hi,

One possible way to fix the problem is to increase the size returned
by ASSOC_ELEM_SIZE macro, defined in mailbox/assoc.c, by one, i.e. to
change the line 61 in mailbox/assoc.c from

#define ASSOC_ELEM_SIZE(a) ((a)->elsize + sizeof(struct _mu_assoc_elem) - 1)

to 

#define ASSOC_ELEM_SIZE(a) ((a)->elsize + sizeof(struct _mu_assoc_elem))

That will make element size to be 12 on sparc, guaranteeing that each of
them will be word-aligned. Assuming that all manipulations rely only on
the ASSOC_ELEM_* macros and don't do any assumptions about that size
themselves, it looks like a fairly safe way to fix it. I've confirmed
that it builds successfully and all tests pass with this change on sparc.

Best regards,
-- 
Jurij Smakov                                           ju...@wooyd.org
Key: http://www.wooyd.org/pgpkey/                      KeyID: C99E03CC



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to