[gnutls-devel] gnutls-3.3.10 SIGBUS on Solaris 10 in gettime()
Nikos Mavrogiannopoulos
nmav at gnutls.org
Thu Nov 13 09:29:49 CET 2014
On Wed, Nov 12, 2014 at 4:06 PM, Thomas Thorberger <thor at dbteam.de> wrote:
> Hello!
>
> I found a bug on Solaris which crashes all applications using libgnutls with
> a SIGBUS in the function gettime() called by _rnd_get_event()
> [lib/nettle/rnd-common.c].
[...]
> The bug is triggered by the "__attribute__((packed))" in the structure
> definition of "struct event_st" in lib/nettle/rnd-common.h. If the "packed"
> attribute is active all references to the substructure "struct timespec"
> generate a SIGBUS. I guess that the alignment for a 64bit long falls below
> the minimum required alignment when using "packed" with "struct timespec".
> I cannot tell you if this is specific to my environment or if it affects all
> Solaris Systems with the recent GCC generating a 64-bit version of
> libgnutls.
Thank you. I applied the fix.
regards,
Nikos
More information about the Gnutls-devel
mailing list