<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;}
@font-face
        {font-family:"Times New Roman \,serif";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New",serif;
        color:black;}
tt
        {mso-style-priority:99;
        font-family:"Courier New",serif;}
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;
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle24
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle25
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle26
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle27
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle28
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle29
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle30
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle31
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle32
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.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:2131782054;
        mso-list-type:hybrid;
        mso-list-template-ids:-895952680 67698705 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-text:"%1\)";
        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 bgcolor="white" 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">When I try to apply patch, I see all the code are already available in 2.2. So I did not add any patch.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">But did a code addition for ‘REST_PUT’ request in rest_client.c, rest_methods.c, rest_methohs.h
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Tried to perform load test. Observed 2 issues.<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 lfo1"><![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">Tried to load 10,000 calls – But route[resume_http] is called only for 9985 calls.
<o:p></o:p></span></p>
<p class="MsoListParagraph"><span style="color:blue">Every time approximately 10-20 calls, route[resume_http] is not called. But if I see the tcpdump, I am seeing 10,000 HTTP request and 10,000 HTTP 200 OK responses.<o:p></o:p></span></p>
<p class="MsoListParagraph"><span style="color:blue">When printing the response in resume_http for every call-id, 10-20 calls response is not printed – which means resume is not called for these calls.
<o:p></o:p></span></p>
<p class="MsoListParagraph"><span style="color:blue">Am not filtering any response code.
<o:p></o:p></span></p>
<p class="MsoListParagraph"><i><span style="color:red">route[resume_http] {<o:p></o:p></span></i></p>
<p class="MsoListParagraph"><i><span style="color:red"> xlog("L_INFO","Resp $rc in HTTP PUT!\n");<o:p></o:p></span></i></p>
<p class="MsoListParagraph"><i><span style="color:red"> xlog("L_INFO","route[relay] The content received from SM for $rm: [callId=$ci] : $var(body) in HTTP PUT\n");<o:p></o:p></span></i></p>
<p class="MsoListParagraph"><i><span style="color:red"> …………………<o:p></o:p></span></i></p>
<p class="MsoListParagraph"><i><span style="color:red">}<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span style="color:blue"> </span></i><span style="color:red">For first few calls, $rc is 1(ASYNC_DONE), for others $rc is -5(ASYNC_SYNC)</span><span style="color:blue"><o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![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">Tried to load more than 10,000 calls. When it reaches 25,000 calls after that some point opensips crashes.
<o:p></o:p></span></p>
<p class="MsoListParagraph"><span style="color:blue">I have two core dump generated as of now.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Coredump1:<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">(gdb) bt<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#0 0x00007f8defacc840 in Curl_num_addresses () from /lib64/libcurl.so.4<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#1 0x00007f8defaf09ee in Curl_connecthost () from /lib64/libcurl.so.4<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#2 0x00007f8defae34ff in Curl_setup_conn () from /lib64/libcurl.so.4<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#3 0x00007f8defae370c in Curl_connect () from /lib64/libcurl.so.4<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#4 0x00007f8defaf32c0 in multi_runsingle () from /lib64/libcurl.so.4<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#5 0x00007f8defaf4121 in curl_multi_perform () from /lib64/libcurl.so.4<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#6 0x00007f8defd2b65b in start_async_http_req (msg=msg@entry=0x7f8df3740fc0, method=method@entry=REST_CLIENT_PUT,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"> url=0x7f8df36ceb88 "http://test.comcast.net/RTCGSessionManager/rest/tel/session/createroom?", req_body=<optimized out>,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"> req_ctype=<optimized out>, out_handle=out_handle@entry=0x7f8df3743300, body=body@entry=0x7f8df3743308, ctype=0x7f8df3743318)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"> at rest_methods.c:265<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#7 0x00007f8defd31b56 in w_async_rest_put (msg=0x7f8df3740fc0, resume_f=0x7ffd4afd8c90, resume_param=0x7ffd4afd8c88,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"> gp_url=<optimized out>, gp_body=<optimized out>, gp_ctype=<optimized out>, body_pv=0x7f8df36f85a8 "N",<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"> ctype_pv=0x7f8df36f8700 "N", code_pv=0x7f8df36f88c0 "N") at rest_client.c:544<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#8 0x00007f8df1031841 in t_handle_async (msg=0x7f8df3740fc0, a=0x7f8df36cf0c8, resume_route=2) at async.c:240<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#9 0x0000000000424056 in do_action (a=0x7f8df36cf2d0, msg=0x7f8df3740fc0) at action.c:1863<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#10 0x000000000041c330 in run_action_list (a=0x7f8df36cf2d0, msg=0x7f8df3740fc0) at action.c:172<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#11 0x0000000000420637 in do_action (a=0x7f8df36cf3f8, msg=0x7f8df3740fc0) at action.c:1108<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#12 0x000000000041c330 in run_action_list (a=0x7f8df36ce568, msg=0x7f8df3740fc0) at action.c:172<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#13 0x000000000041c1fd in run_actions (a=0x7f8df36ce568, msg=0x7f8df3740fc0) at action.c:137<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#14 0x000000000041ed55 in do_action (a=0x7f8df36ca080, msg=0x7f8df3740fc0) at action.c:745<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#15 0x000000000041c330 in run_action_list (a=0x7f8df36c9e78, msg=0x7f8df3740fc0) at action.c:172<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#16 0x0000000000420637 in do_action (a=0x7f8df36ca1a8, msg=0x7f8df3740fc0) at action.c:1108<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#17 0x000000000041c330 in run_action_list (a=0x7f8df36c2560, msg=0x7f8df3740fc0) at action.c:172<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#18 0x000000000041c1fd in run_actions (a=0x7f8df36c2560, msg=0x7f8df3740fc0) at action.c:137<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#19 0x000000000041c3fd in run_top_route (a=0x7f8df36c2560, msg=0x7f8df3740fc0) at action.c:204<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#20 0x000000000042bb64 in receive_msg (<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"> buf=0x7eb340 <buf.8031> "INVITE sip:++12001000004@10.0.0.1:5060 SIP/2.0\r\nTo: sut <sip:+19086774567@10.0.0.0.1:5060;user=phone>\r\nFrom: sipp <sip:sipp@10.0.0.2:5060;user=phone>;tag=26939SIPpTag0014404\r\nCall-ID:
14"..., len=837,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"> rcv_info=0x7ffd4afdae00, existing_context=0x0) at receive.c:208<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#21 0x0000000000521838 in udp_read_req (si=0x7f8df36bda50, bytes_read=0x7ffd4afdaec8) at net/proto_udp/proto_udp.c:192<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#22 0x000000000050d05b in handle_io (fm=0x7f8df371e128, idx=0, event_type=1) at net/net_udp.c:259<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#23 0x000000000050ba2b in io_wait_loop_epoll (h=0x80be40 <_worker_io>, t=1, repeat=0) at net/../io_wait_loop.h:221<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#24 0x000000000050d3db in udp_rcv_loop (si=0x7f8df36bda50) at net/net_udp.c:311<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#25 0x000000000050d973 in udp_start_processes (chd_rank=0x7d8128 <chd_rank.10725>, startup_done=0x0) at net/net_udp.c:375<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#26 0x0000000000495241 in main_loop () at main.c:671<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#27 0x0000000000497cec in main (argc=3, argv=0x7ffd4afdb1c8) at main.c:1271<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">Coredump2:<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">(gdb) bt<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#0 0x00000000004affeb in qm_detach_free (qm=0x7f5aa3ff4010, frag=0x7f5aa40c50f0) at mem/q_malloc.c:281<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#1 0x00000000004b1233 in qm_free (qm=0x7f5aa3ff4010, p=0x7f5aa40c50b0, file=0x7f5aa069fbf5 "rest_client.c",<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"> func=0x7f5aa06a01fd <__FUNCTION__.8581> "osips_free", line=205) at mem/q_malloc.c:494<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#2 0x00007f5aa04774f6 in curl_thread_create_thunk () from /lib64/libcurl.so.4<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#3 0x00007f5a9edb9dc5 in start_thread () from /lib64/libpthread.so.0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#4 0x00007f5aa42eb28d in clone () from /lib64/libc.so.6<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">Regards,<br>
Agalya<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </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><span style="color:windowtext">From:</span></b><span style="color:windowtext"> Bogdan-Andrei Iancu [mailto:bogdan@opensips.org]
<br>
<b>Sent:</b> Wednesday, October 05, 2016 3:58 PM<br>
<b>To:</b> Ramachandran, Agalya (Contractor) <Agalya_Ramachandran@comcast.com>; OpenSIPS users mailling list <users@lists.opensips.org><br>
<b>Subject:</b> Re: opensips crash when doing load test<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">That's a good news :)<br>
<br>
Try to add one patch at a time (incrementally) and let's see when it starts to crash again.<br>
<br>
Thanks and regards,<br>
<br>
<br>
<span style="font-size:12.0pt"><o:p></o:p></span></p>
<pre>Bogdan-Andrei Iancu<o:p></o:p></pre>
<pre>OpenSIPS Founder and Developer<o:p></o:p></pre>
<pre><a href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><o:p></o:p></pre>
<div>
<p class="MsoNormal">On 05.10.2016 22:55, Ramachandran, Agalya (Contractor) wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:blue">Hi Bogdan, </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue">With 2.2 version, am not seeing any crash. All looks good.
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue">Regards,<br>
Agalya</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span style="color:windowtext">
<a href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a> [<a href="mailto:users-bounces@lists.opensips.org">mailto:users-bounces@lists.opensips.org</a>]
<b>On Behalf Of </b>Ramachandran, Agalya (Contractor)<br>
<b>Sent:</b> Wednesday, October 05, 2016 10:50 AM<br>
<b>To:</b> Bogdan-Andrei Iancu <a href="mailto:bogdan@opensips.org"><bogdan@opensips.org></a>; OpenSIPS users mailling list
<a href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a><br>
<b>Subject:</b> Re: [OpenSIPS-Users] opensips crash when doing load test</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue">Sure. I will test and share the results by end of day or tomorrow.
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue">Regards,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue">Agalya</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span style="color:windowtext"> Bogdan-Andrei Iancu [<a href="mailto:bogdan@opensips.org">mailto:bogdan@opensips.org</a>]
<br>
<b>Sent:</b> Wednesday, October 05, 2016 10:47 AM<br>
<b>To:</b> Ramachandran, Agalya (Contractor) <<a href="mailto:Agalya_Ramachandran@comcast.com">Agalya_Ramachandran@comcast.com</a>>; OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br>
<b>Subject:</b> Re: opensips crash when doing load test</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Yes, that is ok (without the REST) - just to be sure which patch introduces the bug.<br>
<br>
Regards,<br>
<br>
<br>
<o:p></o:p></p>
<pre>Bogdan-Andrei Iancu<o:p></o:p></pre>
<pre>OpenSIPS Founder and Developer<o:p></o:p></pre>
<pre><a href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><o:p></o:p></pre>
<div>
<p class="MsoNormal">On 05.10.2016 17:45, Ramachandran, Agalya (Contractor) wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:blue">Hi Bogdan, </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue">I have observed one more thing. In the same source code, when opensips acts as pure proxy no HTTP call is made opensips is not crashing.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue">I suspect the crashes may be due to the new async fix provided.
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue">I can do load test in 2.2, but it will be just pure-proxy load test and not with the REST queries made.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue">If that is OK, I can test and share the results.
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue">Regards,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue">Agalya</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span style="color:windowtext"> Bogdan-Andrei Iancu [<a href="mailto:bogdan@opensips.org">mailto:bogdan@opensips.org</a>]
<br>
<b>Sent:</b> Wednesday, October 05, 2016 9:46 AM<br>
<b>To:</b> Ramachandran, Agalya (Contractor) <a href="mailto:Agalya_Ramachandran@comcast.com">
<Agalya_Ramachandran@comcast.com></a>; OpenSIPS users mailling list <a href="mailto:users@lists.opensips.org">
<users@lists.opensips.org></a><br>
<b>Subject:</b> Re: opensips crash when doing load test</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><tt><span style="font-size:10.0pt">Hi Agalya,</span></tt><span style="font-size:10.0pt;font-family:"Courier New",serif"><br>
<br>
<tt>That is really weird, as that field (my_T) is initialized (with the address of the transaction) when the transaction is created (for all the possible branches) and never reset or set again.</tt><br>
<br>
<tt>To avoid any regression due the patches you applied, could you please run your load test with the stock 2.2 code from git ? And see if the crash occurs again.</tt><br>
<br>
<tt>Regards,</tt><br>
<br>
<br>
</span><o:p></o:p></p>
<pre>Bogdan-Andrei Iancu<o:p></o:p></pre>
<pre>OpenSIPS Founder and Developer<o:p></o:p></pre>
<pre><a href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><o:p></o:p></pre>
<div>
<p class="MsoNormal">On 04.10.2016 19:51, Ramachandran, Agalya (Contractor) wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:blue">Hi Bogdan,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue">Please find the values. Any common folder you have access for the outside world to put files?
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue">If yes, share me the details. I can upload the core file there.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue">(gdb) print r_buf</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue">$1 = (struct retr_buf *) 0x7fded2484098</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue">(gdb) print *r_buf</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue">$2 = {activ_type = 0, buffer = {</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> s = 0x7fded0ca79f0 "INVITE <a href="mailto:sip:++12001000004@10.0.0.1:5060">
sip:++12001000004@10.0.0.1:5060</a> SIP/2.0\r\nRecord-Route: <<a href="sip:96.119.240.35;lr">sip:96.119.240.35;lr</a>>\r\nTo: sut
<a href="mailto:sip:+12452123456@10.0.0.1:5060;user=phone"><sip:+12452123456@10.0.0.1:5060;user=phone></a>\r\nFrom: sipp <<a href="mailto:sip:sipp@10.0.0.2:5060;user=phone">sip:sipp@10.0.0.2:5060;user=phone</a>"..., len = 968}, dst = {proto = 1,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> proto_reserved1 = 0, to = {s = {sa_family = 2, sa_data = "\023\304`w\347\375\000\000\000\000\000\000\000"}, sin = {</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> sin_family = 2, sin_port = 50195, sin_addr = {s_addr = 4259805024}, sin_zero = "\000\000\000\000\000\000\000"}, sin6 = {</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> sin6_family = 2, sin6_port = 50195, sin6_flowinfo = 4259805024, sin6_addr = {__in6_u = {</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> __u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}},</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> sin6_scope_id = 0}}, send_sock = 0x7fded841dcb0}, retr_timer = {next_tl = 0x7fded1af3518, prev_tl = 0x7fded15c8ae0,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> ld_tl = 0x0, time_out = 169500000, timer_list = 0x7fded0acbc48, deleted = 1, set = 0}, fr_timer = {next_tl = 0x0, prev_tl = 0x0,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> ld_tl = 0x0, time_out = 165, timer_list = 0x7fded8005b00 <detached_timer>, deleted = 0, set = 0}, retr_list = RT_T2, my_T = 0x0,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> branch = 0}</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:blue">Regards,<br>
Agalya</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span style="color:windowtext"> Bogdan-Andrei Iancu [<a href="mailto:bogdan@opensips.org">mailto:bogdan@opensips.org</a>]
<br>
<b>Sent:</b> Tuesday, October 04, 2016 11:52 AM<br>
<b>To:</b> Ramachandran, Agalya (Contractor) <a href="mailto:Agalya_Ramachandran@comcast.com">
<Agalya_Ramachandran@comcast.com></a>; OpenSIPS users mailling list <a href="mailto:users@lists.opensips.org">
<users@lists.opensips.org></a><br>
<b>Subject:</b> Re: opensips crash when doing load test</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><tt><span style="font-size:10.0pt">Could you also print r_buf and *r_buf ?</span></tt><o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman ,serif",serif"> </span><o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman ,serif",serif"> </span><o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p> </o:p></span></p>
</div>
</body>
</html>