<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.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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;}
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>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:blue">One more dump<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#0&nbsp; final_response_handler (fr_tl=0x7fded2484110) at timer.c:383<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">383&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (is_invite(t) &amp;&amp; should_cancel_branch(t, r_buf-&gt;branch) ) {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">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:blue">(gdb) bt<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#0&nbsp; final_response_handler (fr_tl=0x7fded2484110) at timer.c:383<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#1&nbsp; timer_routine (ticks=&lt;optimized out&gt;, set=&lt;optimized out&gt;) at timer.c:1066<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#2&nbsp; 0x000000000049d3cd in handle_timer_job () at timer.c:597<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#3&nbsp; 0x000000000059223e in handle_io (fm=&lt;optimized out&gt;, fm=&lt;optimized out&gt;, fm=&lt;optimized out&gt;, idx=&lt;optimized out&gt;, event_type=2)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">&nbsp;&nbsp;&nbsp; at net/net_udp.c:265<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#4&nbsp; io_wait_loop_epoll (h=&lt;optimized out&gt;, t=&lt;optimized out&gt;, repeat=&lt;optimized out&gt;) at net/../io_wait_loop.h:225<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#5&nbsp; udp_rcv_loop (si=si@entry=0x7fded841dcb0) at net/net_udp.c:308<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#6&nbsp; 0x0000000000593e05 in udp_start_processes (chd_rank=chd_rank@entry=0x84c570 &lt;chd_rank.10940&gt;, startup_done=startup_done@entry=0x0)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">&nbsp;&nbsp;&nbsp; at net/net_udp.c:448<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#7&nbsp; 0x0000000000419b73 in main_loop () at main.c:736<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#8&nbsp; main (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;) at main.c:1282<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Ramachandran, Agalya (Contractor) <br>
<b>Sent:</b> Friday, September 30, 2016 9:44 AM<br>
<b>To:</b> 'Bogdan-Andrei Iancu' &lt;bogdan@opensips.org&gt;; OpenSIPS users mailling list &lt;users@lists.opensips.org&gt;<br>
<b>Subject:</b> opensips crash when doing load test<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span style="color:blue">Hi Bogdan,&nbsp; <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p>&nbsp;</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>&nbsp;</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 &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</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 &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</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 &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style="color:blue">rest_client: Add &quot;connect_poll_interval&quot; 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 &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</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>&nbsp;</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>&nbsp;</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&#43;: GNU GPL version 3 or later &lt;<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>&gt;<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.&nbsp; Type &quot;show copying&quot;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">and &quot;show warranty&quot; for details.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">This GDB was configured as &quot;x86_64-redhat-linux-gnu&quot;.<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">&lt;<a href="http://www.gnu.org/software/gdb/bugs/">http://www.gnu.org/software/gdb/bugs/</a>&gt;...<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 &quot;/lib64/libthread_db.so.1&quot;.<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&nbsp; final_response_handler (fr_tl=0x7f55fcd82948) at timer.c:383<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">383&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (is_invite(t) &amp;&amp; should_cancel_branch(t, r_buf-&gt;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&nbsp; final_response_handler (fr_tl=0x7f55fcd82948) at timer.c:383<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">#1&nbsp; timer_routine (ticks=&lt;optimized out&gt;, set=&lt;optimized out&gt;) at timer.c:1066<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">#2&nbsp; 0x000000000049d03a in handle_timer_job () at timer.c:597<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">#3&nbsp; start_timer_extra_processes (chd_rank=chd_rank@entry=0x84c570 &lt;chd_rank.10940&gt;) at timer.c:557<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">#4&nbsp; 0x0000000000419b9a in main_loop () at main.c:748<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">#5&nbsp; main (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;) at main.c:1282<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red"><o:p>&nbsp;</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>&nbsp;</o:p></p>
</div>
</body>
</html>