Assertion failure advice

Simon Josefsson simon at josefsson.org
Tue Apr 17 10:47:13 CEST 2007


David Given <dg at cowlark.com> writes:

> Werner Koch wrote:
> [...]
>> The thread callbacks are not setup at time.  This should be done even
>> before the version check and definitely before initializing secure
>> memory.  Here is an example using GNU Pth:
>
> I've just noticed that there's a section of the gnutls manual calling
> 'Multithreaded programs' which, er, I'd completely missed the first time
> through. Which means that I haven't been telling gnutls to set up gcrypt
> properly. Mea culpa; sorry.
>
> Presumably I'm only getting this crash when two threads try to do a TLS
> handshake at the same time, at exactly the right time to cause gcrypt to step
> on its own toes.
>
> I'll fix this and see if the problem goes away.

Good.  It was good to know what error is likely to come up if you
forget to initialize threading properly.  Thanks again for reporting,
and let us know how it works out.

/Simon



More information about the Gcrypt-devel mailing list