cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: OpenSSL thread-safety callbacks on AIX

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Sat, 1 Oct 2005 20:01:54 +0200 (CEST)

On Sat, 1 Oct 2005, Andrei Tarassov wrote:

> I am setting the callback functions, which should make openssl stuff
> thread-safe as described by http://www.openssl.org/docs/crypto/threads.html
> , but these functions just do not seem to be called on AIX. At the same
> time, the same test program works correctly (i.e. the callbacks are called)
> on Linux. Because of these problems our application crashes sometimes when
> downloading files from https servers in a multi-threaded environment.
>
> Any ideas why this could happen?

I have no idea why. I never heard of this before. I would suggest that you ask
in a openssl-related forum as the question is about openssl only.

> BTW, we've noticed that libcurl is linked to libgcc_s.a, while for thread
> safety it should be linked with libgcc_s_pthread.a. We tried to relink the
> library, but it did not help to solve the above mentioned problem.

Hm, you have any idea why it linked with the wrong one or what we should do to
make it link with the "proper" one by default?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-10-01