<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1417440777;
        mso-list-type:hybrid;
        mso-list-template-ids:1508268820 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1
        {mso-list-id:1754929514;
        mso-list-type:hybrid;
        mso-list-template-ids:1549181486 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l1:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:blue">Hi Bogdan, <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">I have taken 2.1.4 code base, added the below fixes on top of it<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo2"><![if !supportLists]><span style="color:blue"><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span style="color:blue">Fix potential starvation for the timer tasks.
</span><span style="font-size:9.0pt;font-family:Consolas;color:#444444;background:white">66c337cc89a2b5c3e1bbd78c289371efcda21886</span><span style="color:blue"><o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo2"><![if !supportLists]><span style="color:blue"><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span style="color:blue">rest_client: Improve polling logic during TCP connect -
</span><span style="font-size:9.0pt;font-family:Consolas;color:#444444;background:white">c40f2b057209b8078520abc95e5d1bf5e5a28db6</span><span style="color:blue"><o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo2"><![if !supportLists]><span style="color:blue"><span style="mso-list:Ignore">3.<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span style="color:blue">rest_client: Add "connect_poll_interval" module parameter -
</span><span style="font-size:9.0pt;font-family:Consolas;color:#444444;background:white">f5abfb3dee649a14ae39ad74d7f04454f815748f</span><span style="color:blue"><o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo2"><![if !supportLists]><span style="color:blue"><span style="mso-list:Ignore">4.<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span style="color:blue">rest_client: Fix bogus condition -</span><span style="font-size:9.0pt;font-family:Consolas;color:#444444;background:white">3ba7be6692c6987faecb9c4c904035d5e7c0f916</span><span style="color:blue"><o:p></o:p></span></p>
<p class="MsoListParagraph"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">When I try to perform load test on that code base, randomly am seeing OpenSIPS is crashing.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Here is the full trace of the core file. Let me know if you need any additional information or logs.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Am seeing crash is occurring at start_timer_extra_processes().<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black">[root@poc-siplb-cmc-e-004 corefiles]# gdb /usr/local/sbin/opensips core.opensips.sig11.3977<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-80.el7<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Copyright (C) 2013 Free Software Foundation, Inc.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">This is free software: you are free to change and redistribute it.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">There is NO WARRANTY, to the extent permitted by law. Type "show copying"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">and "show warranty" for details.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">This GDB was configured as "x86_64-redhat-linux-gnu".<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">For bug reporting instructions, please see:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"><http://www.gnu.org/software/gdb/bugs/>...<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Reading symbols from /usr/local/sbin/opensips...done.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">[New LWP 3977]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">[Thread debugging using libthread_db enabled]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Using host libthread_db library "/lib64/libthread_db.so.1".<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Core was generated by `/usr/local/sbin/opensips -P /var/run/opensips.pid'.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Program terminated with signal 11, Segmentation fault.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">#0 final_response_handler (fr_tl=0x7f55fcd82948) at timer.c:383<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">383 if (is_invite(t) && should_cancel_branch(t, r_buf->branch) ) {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">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-freebl-3.16.2.3-13.el7_1.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 xz-libs-5.1.2-12alpha.el7.x86_64 zlib-1.2.7-15.el7.x86_64<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">(gdb) bt<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">#0 final_response_handler (fr_tl=0x7f55fcd82948) at timer.c:383<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">#1 timer_routine (ticks=<optimized out>, set=<optimized out>) at timer.c:1066<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">#2 0x000000000049d03a in handle_timer_job () at timer.c:597<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">#3 start_timer_extra_processes (chd_rank=chd_rank@entry=0x84c570 <chd_rank.10940>) at timer.c:557<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">#4 0x0000000000419b9a in main_loop () at main.c:748<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">#5 main (argc=<optimized out>, argv=<optimized out>) at main.c:1282<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Agalya<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>