Problem with libgcrypt

Paul Salters psalters at gmail.com
Wed May 16 10:13:18 CEST 2012


Hi,

I am using libcurl to develop an appilication to do xml requests.
These requests are using HTTPS so the libgnutls and libgcrypt is used.
It uses multiple threads to do requests. Most of the time it runes
fine but sometimes I get the following error:

"ath.c:193: _gcry_ath_mutex_lock: Assertion '*lock == ((ath_mutex_t)"

What causes this?

I have read the documentation about thread safety and I have the
following lines in my code.

GCRY_THREAD_OPTION_PTHREAD_IMPL;

gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
gnutls_global_init();

Appreciate your help!

Paul Salters
The Netherlands



More information about the Gnupg-users mailing list