Thread safety problem (?)
Moritz Schulte
mo at g10code.com
Tue Apr 19 16:14:25 CEST 2005
On Mon, Apr 18, 2005 at 05:51:03PM +0200, Vincent Deffontaines wrote:
Hello Vincent,
> We experiment an occasionnal (hard to reproduce) crash which seems
> to always occur at the gnutls call : gnutls_handshake(). The crash
> is quite rare (and occurs in an often called loop), which leads us
> to believe this might be a thread safety problem.
Since your initialization in respect to the threading system looks
correct, there are two possibilities:
1) the problem is indeed in Libgcrypt and thus you have found a new
bug;
2) the problem is not in Libgcrypt.
I cannot exclude the one or the other. You could try to do the
following: protect all calls into Libgcrypt by a shared lock; this
way, Libgcrypt would never be used by two threads at the same time.
If the problem keeps being reproducible, 1) should be excludable.
Thanks,
Moritz
--
Moritz Schulte
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 193 bytes
Desc: not available
Url : /pipermail/attachments/20050419/fbc637d6/attachment.pgp
More information about the Gcrypt-devel
mailing list