[Help-gnutls] Assertion failure advice
dg at cowlark.com
Sun Apr 15 00:50:27 CEST 2007
My program, which uses gnutls, is very occasionally crashing for no apparent
reason. After much effort (running it in a screen session for two weeks...)
I've finally managed to get some tracing:
spey: ath.c:184: _gcry_ath_mutex_lock: Assertion `*lock == ((ath_mutex_t) 0)'
This appears to be an assertion failure inside gnutls. I can tell from the
rest of the tracing that it's happening inside a call to gnutls_handshake().
Does anyone know what this might be signifying? It doesn't seem to be my
fault, but I have had very little experience driving the GNUTLS API and I
could easily be getting something wrong. It looks like a mutex failure, but
while my program is multithreaded, I'm using a unique session object per
socket, so I wouldn't have thought this would apply.
The actual code is in the Socket::makesecure() function here:
...line 272. Any advice gratefully appreciated.
┌── ｄｇ＠ｃｏｗｌａｒｋ．ｃｏｍ ─── http://www.cowlark.com ───────────────────
│ "Parents let children ride bicycles on the street. But parents do not
│ allow children to hear vulgar words. Therefore we can deduce that cursing
│ is more dangerous than being hit by a car." --- Scott Adams
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 252 bytes
Desc: OpenPGP digital signature
More information about the Gnutls-help