From freedesktop-xorg Thu Oct 14 18:43:03 2010 From: Nicolai Stange Date: Thu, 14 Oct 2010 18:43:03 +0000 To: freedesktop-xorg Subject: Re: libXi-1.3.2: SIGBUS in ParseClassInfo on sparc/64 bit Message-Id: <1287081783.2206.4.camel () nic-desktop> X-MARC-Message: https://marc.info/?l=freedesktop-xorg&m=128708185017036 Hi, > perhaps an __attribute__ ((aligned (8))) will help ? > can you test it with a small sample programm ? This attribute is highly compiler specific. I'll think it'll work for gcc, but unfortunately, I'm using SunStudio. Note that I've seem some ptr in some info struct, too (if I remember correctl). So be prepared for the case that sizeof(XID) != sizeof(void*) (although I don't know of any platform where this is the case). I think it'll be best to use some union (is this a c99 feature?) of an XID, a *void and a struct with the real members or rewrite the placement code like Julien has suggested. Regards Nicolai _______________________________________________ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: freedesktop-xorg@progressive-comp.com