cURL / Mailing Lists / curl-library / Single Mail


SSL locks installed, never called, still crashing

From: Marc Wandschneider <>
Date: Wed, 2 Dec 2009 09:20:53 +0800


I'm developing an app for the Mac that does multi-threaded curl_easy_perform
calls to https servers. As I've learned, this leads to periodic crashing,
and various searches have led me to subsequently install OpenSSL locks (as
in threaded-ssl.c).

However, the problem is these locks are never called and the application
still crashes on various memory alloc/free calls in either curl_easy_perform
or curl_easy_cleanup.

My locking function is briefly called in SLL_load_error_strings(), but then
never again. I have put a breakpoint on SSL_set_locking_callback to verify
that no other component is calling it except my application code.

I've also tried the dynlock stuff and duplicated the code from ( link), and it hasn't helped at all.

Has anybody gotten this to work definitively and did you have to take any
additional steps? (curl is definitely compiled with --enable-thread)


List admin:
Received on 2009-12-02