curl-library
Re: [Linux HTTPS] Application Crash SHA1_Update() from Curl_perform(); Version is CURL_7.48.0
Date: Thu, 5 May 2016 16:38:32 +0530
Hi Team,
Please let me know your comments on this.
Regards
Ranjith KS
Regards
Ranjith KS
On Tue, May 3, 2016 at 7:52 PM, Ranjith KS <ksranjith786_at_gmail.com> wrote:
> Hi Team,
>
> I am Ranjith KS, started using LIBCURL for http and https communication in
> our organization for achieving better performance results and response time.
>
> Our application supports Windows and Linux (32 & 64 bits);
>
> We are facing application crash issue on Linux environment while using
> https communication. Its working fine with Windows https and http & Linux
> http communication.
>
> I have followed the examples to use LIBCURL APIs and functions.
>
> Our application is a Client and communicates with Server which has a
> Server certificate deployed. Client does not need any certificate or
> authentication for communication. (Untrusted and no certificate). Hence we
> do not have any certificates exchanged between client and server.
>
> Environment is Redhat 6.5
> $ uname -a
> Linux 2.6.32-431.el6.x86_64
>
> OpenSsl Version is
> openssl-1.0.1e-42.el6.x86_64
>
> LibCurl version is
> curl-7.48.0
>
> I have used as below.
>
> // For https request
> if (strProtocol.compare("https") == 0)
> {
> curl_easy_setopt(curl_handle, CURLOPT_SSLVERSION,
> CURL_SSLVERSION_TLSv1_2);
> curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, 0L);
> }
>
> The Callback functions I have used are similar to that of getincmemory
> example.
>
> https://curl.haxx.se/libcurl/c/getinmemory.html
>
>
> I have even tried with TlsV1.0, 1.1 and SslV3 as well. Still crash is
> happening for the same api call. (SHA1_Update() was the last API)
>
> The GDB coredump backtrace is given below.
>
> Core was generated by `./UEIOServer -e'.
> Program terminated with signal 11, Segmentation fault.
> #0 0x00007f5f880998e3 in ?? () from /usr/lib64/libcrypto.so.10
> Missing separate debuginfos, use: debuginfo-install
> UE_IOServer-9.99.0-99812.x86_64
> (gdb) bt
> #0 0x00007f5f880998e3 in ?? () from /usr/lib64/libcrypto.so.10
> #1 0xf5ffeab554f832a5 in ?? ()
> #2 0x4a82c3ca1929ec89 in ?? ()
> #3 0x00e776aa576061d4 in ?? ()
> #4 0xeb02cac52a3d11ec in ?? ()
> #5 0x4c4d29d52c7fb3dd in ?? ()
> #6 0x005b147ac58eb968 in ?? ()
> #7 0x84ed88640be501dd in ?? ()
> #8 0xc5238c0f40ce3634 in ?? ()
> #9 0x00007f5f88403816 in ?? () from /usr/lib64/libcrypto.so.10
> #10 0x00007f5f28021370 in ?? ()
> #11 0x0000000000000009 in ?? ()
> #12 0x00007f5f88096d67 in SHA1_Update () from /usr/lib64/libcrypto.so.10
> #13 0x00007f5f88109ec5 in ?? () from /usr/lib64/libcrypto.so.10
> #14 0x00007f5f880f5423 in ECDSA_sign_ex () from /usr/lib64/libcrypto.so.10
> #15 0x00007f5f880f54a9 in ECDSA_sign () from /usr/lib64/libcrypto.so.10
> #16 0x00007f5f880e53ba in ?? () from /usr/lib64/libcrypto.so.10
> #17 0x00007f5f881159e7 in EVP_SignFinal () from /usr/lib64/libcrypto.so.10
> #18 0x00007f5f8817d1e6 in fips_pkey_signature_test () from
> /usr/lib64/libcrypto.so.10
> #19 0x00007f5f880e3a5d in EC_KEY_generate_key () from
> /usr/lib64/libcrypto.so.10
> #20 0x00007f5f8842d7b4 in ssl3_send_client_key_exchange () from
> /usr/lib64/libssl.so.10
> #21 0x00007f5f8842e4c0 in ssl3_connect () from /usr/lib64/libssl.so.10
> #22 0x00007f5f8868ed0e in ossl_connect_common () from
> /opt/ncrue/lib/libcurl.so.4
> #23 0x00007f5f8868fc65 in Curl_ossl_connect () from
> /opt/ncrue/lib/libcurl.so.4
> #24 0x00007f5f8869df37 in Curl_ssl_connect () from
> /opt/ncrue/lib/libcurl.so.4
> #25 0x00007f5f88682f14 in Curl_http_connect () from
> /opt/ncrue/lib/libcurl.so.4
> #26 0x00007f5f88686822 in Curl_protocol_connect () from
> /opt/ncrue/lib/libcurl.so.4
> #27 0x00007f5f88688b14 in Curl_connect () from /opt/ncrue/lib/libcurl.so.4
> #28 0x00007f5f886950f0 in Curl_perform () from /opt/ncrue/lib/libcurl.so.4
> #29 0x00007f5f888b9e60 in LogixCommunicator::SendNetworkRequest
> (this=0x7f5f28021dc0, strURL=<value optimized out>, aData=<value optimized
> out>, eType=<value optimized out>, eHeaderType=<value optimized out>,
> strIPLId=<value optimized out>, strUuid=...) at
> ../../LogixCommunicator/LogixCommunicator.cpp:198
> #30 0x00007f5f888bcfac in LogixCommThread::run (this=0x7f5f70002560) at
> ../../LogixCommunicator/LogixCommThread.cpp:48
> #31 0x00007f5f93a3a384 in ?? () from /opt/ncrue/lib/libQt5Core.so.5
> #32 0x0000003d752079d1 in start_thread () from /lib64/libpthread.so.0
> #33 0x0000003d74ae88fd in clone () from /lib64/libc.so.6
> (gdb)
>
> Could you please help me out how to resolve this.
>
> Regards
> Ranjith KS
>
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-05-05