cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: threadsafe FTP crashing on curl_easy_init()

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 23 Oct 2008 11:32:47 +0200 (CEST)

On Thu, 23 Oct 2008, Andrew Nelson wrote:

> However, my program seems to crash at random times, with the partial stack
> trace listed below (I am using Intel OSX 10.5.3). The call from
> THReasyHttp.cpp is to curl_easy_init(). I am aware that curl_global_init()
> is called by this function if already hasn't been done. The manual
> indicates that this can lead to random crashes if done in a multithreaded
> environment. This is why I make a call to curl_global_init() when the DLL
> is first loaded. However, I still get these problems.

> 0 libcrypto.0.9.7.dylib 0x9053633c getrn + 74
> 1 libcrypto.0.9.7.dylib 0x90536288 lh_insert + 288
> 2 libcrypto.0.9.7.dylib 0x9054d391 int_err_set_item + 105
> 3 libcrypto.0.9.7.dylib 0x9054d0d9 ERR_load_ERR_strings + 72

Seeing how all these symbols are OpenSSL ones, have you really set the OpenSSL
mutex callbacks? See

         http://curl.haxx.se/libcurl/c/libcurl-tutorial.html#Multi-threading

-- 
  / daniel.haxx.se
Received on 2008-10-23