gnutls_handshake crash on multithreading
Vasiliy Ivanov
vivanov at te.net.ua
Mon Feb 15 18:57:20 CET 2010
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();
I use .dll with .lib file linked.
-----Original Message-----
From: Simon Josefsson [mailto:simon at josefsson.org]
Sent: Monday, February 15, 2010 12:20 PM
To: Vasiliy Ivanov
Cc: bug-gnutls at gnu.org
Subject: Re: gnutls_handshake crash on multithreading
"Vasiliy Ivanov" <vivanov at te.net.ua> writes:
> I have called gcry_control( GCRYCTL_SET_THREAD_CBS, &gcry_threads_boost );
> But program crashed inside of gnutls_handshake on Windows with ASSERT
*lock
> == MUTEX_UNLOCK. What can I do?
Try switching order of the gcry_control call and gnutls_global_init?
That's just guessing. Also, do you dynamically or statically link?
/Simon
More information about the Gnutls-devel
mailing list