cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl segfaults in curl_multi_perform

From: Ray Satiro via curl-library <curl-library_at_cool.haxx.se>
Date: Thu, 24 Mar 2016 13:47:16 -0400

On 3/24/2016 7:01 AM, Alex Lyakas wrote:
> Hi Daniel,
>
> We upgraded the libcurl to 7.45.0. After several weeks, the same or
> very similar problem happened 3 times within 24 hours, unfortunately.
>
> #0 0x00007f4a322284d0 in ?? () from
> /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
> #1 0xca62c1d6ca62c1d6 in ?? ()
> #2 0xca62c1d6ca62c1d6 in ?? ()
> #3 0xca62c1d6ca62c1d6 in ?? ()
> #4 0xca62c1d6ca62c1d6 in ?? ()
> #5 0xca62c1d6ca62c1d6 in ?? ()
> #6 0xca62c1d6ca62c1d6 in ?? ()
> #7 0xca62c1d6ca62c1d6 in ?? ()
> #8 0xca62c1d6ca62c1d6 in ?? ()
> #9 0x00007f4a3259392a in ?? () from
> /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
> #10 0x00007f49e50988b0 in ?? ()
> #11 0x0000000000000015 in ?? ()
> #12 0x00007f4a32224900 in SHA1_Update () from
> /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
> #13 0x00007f4a322a6e0f in ?? () from
> /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
> #14 0x00007f4a31519a05 in ?? () from
> /lib/x86_64-linux-gnu/libssl.so.1.0.0
> #15 0x00007f4a3150f712 in ?? () from
> /lib/x86_64-linux-gnu/libssl.so.1.0.0
> #16 0x00007f4a3150fb04 in ?? () from
> /lib/x86_64-linux-gnu/libssl.so.1.0.0
> #17 0x00007f4a34a1998e in ossl_send () from
> /usr/lib/x86_64-linux-gnu/libcurl.so.4
> #18 0x00007f4a349e38c2 in Curl_write () from
> /usr/lib/x86_64-linux-gnu/libcurl.so.4
> #19 0x00007f4a349f9a3f in Curl_readwrite () from
> /usr/lib/x86_64-linux-gnu/libcurl.so.4
> #20 0x00007f4a34a01ebc in multi_runsingle () from
> /usr/lib/x86_64-linux-gnu/libcurl.so.4
> #21 0x00007f4a34a02c55 in curl_multi_perform () from
> /usr/lib/x86_64-linux-gnu/libcurl.so.4
>
> Alex.
>

One thing I've seen come up several times that leads to crashes is if
you are using multiple threads and libcurl and OpenSSL you need locking
callbacks for OpenSSL and also you must call curl_global_init before the
multiple threads since curl_global_init is not thread safe.

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