cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl segfaults in curl_multi_perform

From: Alex Lyakas <alex_at_zadarastorage.com>
Date: Thu, 14 Apr 2016 14:40:54 +0300

Hello Daniel,

We have found out that we did not provide the "locking_function" and the
"threadid_func" to openSSL (and we are using https), as showin in
https://curl.haxx.se/libcurl/c/threaded-ssl.html.
Could this explain these crashes that we see from time to time? We are using
curl_multi_perform/curl_multi_wait and each multi-handle is accessed by a
single thread only.

Thanks,
Alex.

-----Original Message-----
From: Daniel Stenberg
Sent: Thursday, March 24, 2016 1:50 PM
To: Alex Lyakas
Cc: libcurl hacking
Subject: Re: libcurl segfaults in curl_multi_perform

On Thu, 24 Mar 2016, Alex Lyakas wrote:

> We upgraded the libcurl to 7.45.0. After several weeks, the same or very
> similar problem happened 3 times within 24 hours, unfortunately.

Did you upgrade OpenSSL? It looks more like a problem in OpenSSL so I
suspect
just upgrading libcurl won't help for this.

Further, if the problem remains I think you should consider building custom
versions of libcurl and openssl with debug systems present so that future
crashes get more details provided. I'd also urge you to try to come up with
a
way to reproduce the problem since just randomly occuring crashes are
notoriously hard to work with.

-- 
  / daniel.haxx.se 
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-04-14