gnutls_handshake crash on multithreading
Vasiliy Ivanov
vivanov at te.net.ua
Mon Feb 15 22:29:03 CET 2010
Can you write me a good example of mutex, that I need to pass in
gcrypt_control ?
Thanks!
-----Original Message-----
From: Nikos Mavrogiannopoulos [mailto:n.mavrogiannopoulos at gmail.com] On
Behalf Of Nikos Mavrogiannopoulos
Sent: Monday, February 15, 2010 11:27 PM
To: Vasiliy Ivanov
Cc: 'Simon Josefsson'; bug-gnutls at gnu.org
Subject: Re: gnutls_handshake crash on multithreading
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