cURL / Mailing Lists / curl-library / Single Mail

curl-library

threadsafe FTP crashing on curl_easy_init()

From: Andrew Nelson <andyfaff_at_gmail.com>
Date: Thu, 23 Oct 2008 12:03:23 +1100

Dear List,
I'm a newbie, so please bear with me. My program works as a DLL as
part of a larger scientific analysis program. This DLL provides URL
manipulation using Curl. The analysis program can be multithreaded,
so I want to use Curl to FTP upload several files at once, but in
threads controlled by the calling program.

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.

Any ideas?

regards,
Andy

Thread 2 Crashed:
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
4 libcrypto.0.9.7.dylib 0x9054d6ec ERR_load_strings + 23
5 libcrypto.0.9.7.dylib 0x90588453 ENGINE_load_cswift + 437
6 libcrypto.0.9.7.dylib 0x9057c9b8 ENGINE_load_builtin_engines + 16
7 libcurl.4.dylib 0x179f495e Curl_ossl_init + 11
8 libcurl.4.dylib 0x179fd77f curl_global_init + 102
9 com.apple.carbonbundletemplate 0x182c7be2
ExecuteTHReasyHTTP(THReasyHTTPRuntimeParams*) + 146
(THReasyHttp.cpp:41)

-- 
_____________________________________
Dr. Andrew Nelson
_____________________________________
Received on 2008-10-23