[gnutls-devel] GnuTLS | Deadlock in _gnutls_epoch_get on mutex epoch_lock with msmtp and gnutls 3.6.7 (#758)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Thu Jul 28 14:06:36 CEST 2022
I had a similar issue with a Yocto-based distribution (version dunfell, gnutls 3.6.14) on an arm i.MX6 target.
Apparently, the following modification
static int gnutls_system_mutex_init(void **priv)
- pthread_mutex_t *lock = malloc(sizeof(pthread_mutex_t));
+ pthread_mutex_t *lock = calloc(1, sizeof(pthread_mutex_t));
in [threads.c](https://gitlab.com/gnutls/gnutls/-/blob/3.6.14/lib/system/threads.c#L92) fixes the issue (at least, in my use-case). The reason is not completely clear though, the following call to `pthread_mutex_init` should init the mutex properly.
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/758#note_1042015608
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gnutls-devel