curl / Mailing Lists / curl-library / Single Mail

curl-library

curl_easy_perform fails with access violation exception

From: Shibu A via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 3 May 2017 22:41:45 +0530

Hi,

I am using Openssl libcurl binary to do a curl operation and i see from the
application log the multiple requests happens at the libcurl in same time
fream and the first one succeed and the second one fails with access
violation exception. Is the libcurl thread safe ? Do I need to do
synchronization for curl_easy_perform ? I tried with locking function and
it haven;t worked.

Stack trace

libcurl!SHA1_Update+0x1de
libcurl!update+0x34
libcurl!EVP_DigestUpdate+0x33 d
libcurl!ssleay_rand_bytes+0x3b6
libcurl!ssleay_rand_nopseudo_bytes+0
libcurl!RAND_bytes+0x45
libcurl!SSL_CTX_new+0x59a
libcurl!ossl_connect_step1+0xaa
libcurl!ossl_connect_common+0x90 [e
libcurl!Curl_ssl_connect_nonblocking+
libcurl!https_connecting+0x13 [
libcurl!Curl_http_connect+0x41 d
libcurl!Curl_protocol_connect+0x92 [e
libcurl!multi_runsingle+0x48d [
libcurl!curl_multi_perform+0x85
libcurl!easy_transfer+0xb1
libcurl!easy_perform+0xe0

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-05-03