gnutls_handshake crash on multithreading

Nikos Mavrogiannopoulos nmav at gnutls.org
Mon Feb 15 22:27:13 CET 2010


Vasiliy Ivanov wrote:
> Yes. It methods calls at program starts, but not when program calls
> gnutls_handshake!
> I think, gnutls_handshake does not use mutex inside((

gnutls is thread safe, does not need mutexes. The mutexes you set for
the libgcrypt functions that are not thread safe. gnutls is quite tested
with threads, thus I'd bet the problem is in your code (and your mutex
handlers you give to libgcrypt).

> -----Original Message-----
> From: Nikos Mavrogiannopoulos [mailto:n.mavrogiannopoulos at gmail.com] On
> Behalf Of Nikos Mavrogiannopoulos
> Sent: Monday, February 15, 2010 10:38 PM
> To: Vasiliy Ivanov
> Cc: 'Simon Josefsson'; bug-gnutls at gnu.org
> Subject: Re: gnutls_handshake crash on multithreading
> 
> Vasiliy Ivanov wrote:
>> Yes, my code from this documentation
>> ...
>> gcry_control( GCRYCTL_SET_THREAD_CBS, &gcry_threads_boost ); ...
>> gnutls_global_init();
> 
> And are you sure your gcry_threads_boost is acting correctly?
> 






More information about the Gnutls-devel mailing list