Crash in GnuTLS 2.4.1
simon at josefsson.org
Wed Nov 26 12:55:33 CET 2008
Colin Leroy <colin at colino.net> writes:
> On Wed, 26 Nov 2008 12:23:01 +0100, Colin Leroy wrote:
>> #2 0x00007f9a9a0e0d49 in __assert_fail () from /lib/libc.so.6
>> #3 0x00007f9a9afd191b in _gcry_ath_mutex_lock (lock=0x7f9a9b22ad30)
>> at ath.c:186
> Btw, in my application I do have the threads setup with:
> gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
> But this application also uses a Glib main loop. Should I use
> gcry_threads_other instead?
I don't know. Maybe ask on the libgcrypt list?
Btw, one idea is to make sure that your call above is invoked before
libgcrypt is initialized. Maybe your gcry_control call is too late.
More information about the Gnutls-devel