gnutls_handshake crash on multithreading

Vasiliy Ivanov vivanov at te.net.ua
Mon Feb 15 20:30:21 CET 2010


Yes, my code from this documentation
...
gcry_control( GCRYCTL_SET_THREAD_CBS, &gcry_threads_boost );
...
gnutls_global_init();

-----Original Message-----
From: Nikos Mavrogiannopoulos [mailto:n.mavrogiannopoulos at gmail.com] On
Behalf Of Nikos Mavrogiannopoulos
Sent: Monday, February 15, 2010 8:55 PM
To: Vasiliy Ivanov
Cc: 'Simon Josefsson'; bug-gnutls at gnu.org
Subject: Re: gnutls_handshake crash on multithreading

Vasiliy Ivanov wrote:
> No effect!
> This is last variant:
> 
> 		gcry_check_version (GCRYPT_VERSION);
> 		gcry_control( GCRYCTL_SET_THREAD_CBS, &gcry_threads_boost );
> 		gcry_control (GCRYCTL_SUSPEND_SECMEM_WARN);
> 		gcry_control (GCRYCTL_INIT_SECMEM, 16384, 0);
> 		gcry_control (GCRYCTL_RESUME_SECMEM_WARN);
> 		gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
> 		gcry_control (GCRYCTL_INITIALIZATION_FINISHED_P); 
> 		
> 		gnutls_global_init();

Did you try the example in the documentation?
http://www.gnu.org/software/gnutls/manual/html_node/Multi_002dthreaded-appli
cations.html







More information about the Gnutls-devel mailing list