Hi Agalya,

Yes, let's start dissecting it over there. Since the crash is in libcurl, I need the following info in the report, for starters:

- OS version (I understand libcurl is 7.29.0, maybe I can attempt to reproduce)

- async rest function you are using (get / post)

- output of "opensipsctl fifo get_statistics shmem: pkmem:", right after you start OpenSIPS

Also, are you able to recompile OpenSIPS with both QM_MALLOC / DBG_MALLOC flags enabled? It will speed up our debugging. You can select these under the compile flagsmenu, once you run the "make menuconfig" build configurator.

Regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 02.03.2017 17:27, Ramachandran, Agalya (Contractor) wrote:

Hi Liviu,

I have applied your fix with commit id(df6a9a9bc3f7c65165639a9c88a4359698d0e5b8),retested it still am facing the same issue.

Should I raise for the defect in https://github.com/OpenSIPS/opensips/issues ?

Regards,
Agalya

*From:*Users [mailto:users-boun...@lists.opensips.org] *On Behalf Of *Liviu Chircu
*Sent:* Tuesday, February 28, 2017 7:31 AM
*To:* users@lists.opensips.org
*Subject:* Re: [OpenSIPS-Users] [RELEASE] OpenSIPS minor releases: 2.2.3 and 1.11.10

I used both my Debian-based system (libcurl 7.35.0) and a Red Hat 6.4 box (libcurl 7.19.7) and was not able to get either master or 2.2 to crash with HTTPS transfers. I did manage to improve the rest_client behavior for the Red Hat box, where some transfers would fail because of some required retry-logic. Patch is available on both master and 2.2.

If issues persist, let's move this issue over to GitHub [1].

Regards,

[1]: https://github.com/OpenSIPS/opensips/issues


Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 27.02.2017 20:33, Ramachandran, Agalya (Contractor) wrote:

    Hi Liviu,

    I have tired with 2.2.3 version. I am still facing crash when
    async is tried with *https.*

    I am running OpenSIPS on centos based on open stack cloud VM.  I
    have not installed any specific curl libraries.

    Curl is available by default in my centos box, and its version is,

    curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.19.1
    Basic ECC zlib/1.2.7 libidn/1.28 libssh2/1.4.3

    Protocols: dict file ftp ftps gopher http https imap imaps ldap
    ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp

    Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB
    SSL libz

    Let me know if I can able to help you to reproduce this issue and
    solve it.

    Here is the core dump trace.

    Program terminated with signal 11, Segmentation fault.

    #0 0x00007fe5ed512a1e in Curl_raw_nequal () from /lib64/libcurl.so.4

    Missing separate debuginfos, use: debuginfo-install
    cyrus-sasl-lib-2.1.26-20.el7_2.x86_64
    glibc-2.17-106.el7_2.4.x86_64 keyutils-libs-1.5.8-3.el7.x86_64
    krb5-libs-1.13.2-12.el7_2.x86_64 libcom_err-1.42.9-7.el7.x86_64
    libcurl-7.29.0-25.el7.centos.x86_64 libidn-1.28-4.el7.x86_64
    libselinux-2.2.2-6.el7.x86_64 libssh2-1.4.3-10.el7_2.1.x86_64
    nspr-4.10.8-2.el7_1.x86_64 nss-3.19.1-19.el7_2.x86_64
    nss-softokn-3.16.2.3-13.el7_1.x86_64
    nss-softokn-freebl-3.16.2.3-13.el7_1.x86_64
    nss-sysinit-3.19.1-19.el7_2.x86_64 nss-util-3.19.1-9.el7_2.x86_64
    openldap-2.4.40-9.el7_2.x86_64
    openssl-libs-1.0.1e-51.el7_2.4.x86_64 pcre-8.32-15.el7.x86_64
    sqlite-3.7.17-8.el7.x86_64 xz-libs-5.1.2-12alpha.el7.x86_64
    zlib-1.2.7-15.el7.x86_64

    (gdb) bt

    #0 0x00007fe5ed512a1e in Curl_raw_nequal () from /lib64/libcurl.so.4

    #1 0x00007fe5ed4e0d0f in Curl_checkheaders () from /lib64/libcurl.so.4

    #2 0x00007fe5ed4e21e5 in Curl_http () from /lib64/libcurl.so.4

    #3 0x00007fe5ed4f2b4b in Curl_do () from /lib64/libcurl.so.4

    #4 0x00007fe5ed502a1b in multi_runsingle () from /lib64/libcurl.so.4

    #5 0x00007fe5ed503121 in curl_multi_perform () from
    /lib64/libcurl.so.4

    #6 0x00007fe5ed73c446 in resume_async_http_req (fd=9,
    msg=0x7fe5eecd6380 <faked_req.10690>, _param=0x7fe5f132f870)

    at rest_methods.c:411

    #7 0x00007fe5eea7d44e in t_resume_async (fd=0x7fe5f1321308,
    param=0x7fe5ef585e20) at async.c:125

    #8 0x000000000059b258 in handle_io (idx=<optimized out>,
    event_type=<optimized out>, fm=<optimized out>) at net/net_udp.c:267

    #9 io_wait_loop_epoll (h=<optimized out>, t=<optimized out>,
    repeat=<optimized out>) at net/../io_wait_loop.h:225

    #10 udp_rcv_loop (si=si@entry=0x7fe5f13016c8) at net/net_udp.c:308

    #11 0x000000000059c7d8 in udp_start_processes
    (chd_rank=chd_rank@entry=0x845810 <chd_rank.11028>,
    startup_done=startup_done@entry=0x0)

    at net/net_udp.c:372

    #12 0x0000000000419df0 in main_loop () at main.c:671

    #13 main (argc=<optimized out>, argv=<optimized out>) at main.c:1261

    Regards,
    Agalya

    *From:*Ramachandran, Agalya (Contractor)
    *Sent:* Friday, February 24, 2017 10:39 AM
    *To:* users@lists.opensips.org <mailto:users@lists.opensips.org>
    *Subject:* RE: [OpenSIPS-Users] [RELEASE] OpenSIPS minor releases:
    2.2.3 and 1.11.10

    Thank you Liviu. I will try in the latest version and will update
    you my observation.

    Regards,
    Agalya

    *From:*Users [mailto:users-boun...@lists.opensips.org] *On Behalf
    Of *Liviu Chircu
    *Sent:* Friday, February 24, 2017 3:44 AM
    *To:* users@lists.opensips.org <mailto:users@lists.opensips.org>
    *Subject:* Re: [OpenSIPS-Users] [RELEASE] OpenSIPS minor releases:
    2.2.3 and 1.11.10

    Hi Agalya,

    There are no specific fixes addressing this issue, since it should
    be working right out of the box - libcurl should be able to handle
    it. Personally, I haven't been able to reproduce it. If problems
    persist for you even in 2.2.3, we are here to help!

    Regards,


    Liviu Chircu

    OpenSIPS Developer

    http://www.opensips-solutions.com

    On 24.02.2017 00:00, Ramachandran, Agalya (Contractor) wrote:

        Hi Liviu,

        Its great news. I have a question with respect to rest_client
        module.

        Does async with https support is added in 2.2.3?

        Regards,

        Agalya

        *From:*Users [mailto:users-boun...@lists.opensips.org] *On
        Behalf Of *Liviu Chircu
        *Sent:* Thursday, February 23, 2017 12:57 PM
        *To:* OpenSIPS users mailling list <users@lists.opensips.org>
        <mailto:users@lists.opensips.org>; OpenSIPS devel mailling
        list <de...@lists.opensips.org>
        <mailto:de...@lists.opensips.org>; n...@lists.opensips.org
        <mailto:n...@lists.opensips.org>
        *Subject:* [OpenSIPS-Users] [RELEASE] OpenSIPS minor releases:
        2.2.3 and 1.11.10

        Hi, all!

        We are happy to announce a new set of OpenSIPS minor versions, namely 
2.2.3 and 1.11.10,

        incorporating the last 4 months of backports and no less than 126 
commits!

        While roughly half of these commits strictly relate to static code 
analysis issues

        (thank you Răzvan for the Coverity initiative!), the rest of them 
include

        important corner-case fixes in more critical areas such as the TCP 
layer, usrloc contact management,

        dialog replication, dispatcher, drouting, rest_client - to name a few.

        All three releases are ready for production use and even more  
stable/accurate than before.

        Since they contain the latest bug fixes, we strongly recommend you to 
upgrade your current instances.

        Thank you all for your reports, fixes, pull requests and all other 
contributions to this project!

        The full ChangeLogs for the newly released versions are:

        http://opensips.org/pub/opensips/2.2.3/ChangeLog

        http://opensips.org/pub/opensips/1.11.10/ChangeLog

        Get the latest versions from:

        http://opensips.org/pub/opensips/

        Enjoy OpenSIPS,

--
        Liviu Chircu

        OpenSIPS Developer

        http://www.opensips-solutions.com




        _______________________________________________

        Users mailing list

        Users@lists.opensips.org <mailto:Users@lists.opensips.org>

        http://lists.opensips.org/cgi-bin/mailman/listinfo/users




    _______________________________________________

    Users mailing list

    Users@lists.opensips.org <mailto:Users@lists.opensips.org>

    http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to