gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: gnutls_handshake crash on multithreading


From: Vasiliy Ivanov
Subject: RE: gnutls_handshake crash on multithreading
Date: Thu, 18 Feb 2010 21:32:59 +0200

>Actually what is the return value of gcry_control when setting them?
gcry_control( GCRYCTL_SET_THREAD_CBS, &gcry_threads_boost ); returns  
0x2000003c. What it means?

-----Original Message-----
From: Nikos Mavrogiannopoulos [mailto:address@hidden On Behalf Of Nikos 
Mavrogiannopoulos
Sent: Thursday, February 18, 2010 9:51 AM
To: Vasiliy Ivanov
Cc: 'Tor Lillqvist'; 'Simon Josefsson'; address@hidden
Subject: Re: gnutls_handshake crash on multithreading

Vasiliy Ivanov wrote:
> No, it's my own structure(see below).
> It works at program start, but no methods are called at gnutls_handshake 
> processing.

Actually what is the return value of gcry_control when setting them? Are you 
sure that these functions are not called?

I see here that you do:
>               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();

and have no error checking whatsoever. Check gnutls_global_init() on how the 
initialization of libgcrypt is done. Otherwise you don't even know if these 
functions have any effect.



regards,
Nikos





reply via email to

[Prev in Thread] Current Thread [Next in Thread]