<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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@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:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
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:12.0pt;
        font-family:"Times New Roman",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:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
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:#1F497D;}
span.EmailStyle25
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle26
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle27
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle28
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle29
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
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:windowtext;}
span.EmailStyle32
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle34
        {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:1292788402;
        mso-list-type:hybrid;
        mso-list-template-ids:1037707368 412138638 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;
        margin-left:.75in;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:1.25in;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        margin-left:1.75in;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:2.25in;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:2.75in;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        margin-left:3.25in;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:3.75in;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:4.25in;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        margin-left:4.75in;
        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="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue">Hi Liviu,
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue">I tried the following and my observations for the same.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue"> <o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:.75in;text-indent:-.25in;mso-list:l0 level1 lfo1">
<![if !supportLists]><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue"><span style="mso-list:Ignore">1)<span style="font:7.0pt "Times New Roman"">     
</span></span></span><![endif]><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue">Compiled and installed OpenSIPS of 2.2.3 code(no other patches applied).<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:.75in;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="font-size:11.0pt;font-family:"Calibri",sans-serif;color:red">async(rest_get(<a href="https://example.com"><span style="color:red">"</span><b><span style="color:#00B050">https</span></b><span style="color:red">://example.com"</span></a>,
 "$var(body)"), resume_route);</span><span style="font-size:11.0pt;font-family:Wingdings;color:red">è</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue"> crashes on my machine. Same dump as I shared before.</span><span style="color:blue"><o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:.75in;text-indent:-.25in;mso-list:l0 level1 lfo1">
<![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="font-size:11.0pt;font-family:"Calibri",sans-serif;color:red">async(rest_get(<a href="%22http:/example.com%22"><span style="color:red">"</span><b><span style="color:#00B050">http</span></b><span style="color:red">://example.com"</span></a>,
 "$var(body)"), resume_route);</span><span style="font-size:11.0pt;font-family:Wingdings;color:red">è</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue"> No crash observed.
</span><span style="color:blue"><o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:.75in;text-indent:-.25in;mso-list:l0 level1 lfo1">
<![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="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue">Long back I tried to run a sample curl program that will reach
</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:red"><a href="https://example.com"><span style="color:red">https://example.com</span></a></span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue">
</span><span style="font-size:11.0pt;font-family:Wingdings;color:blue">è</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue"> Worked without any crash</span><span style="color:blue"><o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:.75in;text-indent:-.25in;mso-list:l0 level1 lfo1">
<![if !supportLists]><span style="color:blue"><span style="mso-list:Ignore">5)<span style="font:7.0pt "Times New Roman"">     
</span></span></span><![endif]><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue">I have also tried a sample curl program that interacts with REST server
</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:red">(async,
<a href="https://URL"><span style="color:red">https://URL</span></a></span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue">)
</span><span style="font-size:11.0pt;font-family:Wingdings;color:blue">è</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue"> Worked on the same machine without crash.</span><span style="color:blue"><o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:.75in"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue">Only when the same payload is passed using OpenSIPS, and when processing the response of it, OpenSIPS is being crashed.<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:.75in;text-indent:-.25in;mso-list:l0 level1 lfo1">
<![if !supportLists]><tt><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><span style="mso-list:Ignore">6)<span style="font:7.0pt "Times New Roman"">     
</span></span></span></tt><![endif]><tt><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue">Tried with
</span></tt><tt><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:red">async (rest_post(http:// URL));
</span></tt><tt><span style="font-size:11.0pt;font-family:Wingdings;color:blue">è</span></tt><tt><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue"> No crash
</span></tt><tt><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></tt></p>
<p class="MsoListParagraph" style="margin-left:.75in;text-indent:-.25in;mso-list:l0 level1 lfo1">
<![if !supportLists]><tt><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue"><span style="mso-list:Ignore">7)<span style="font:7.0pt "Times New Roman"">     
</span></span></span></tt><![endif]><tt><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue">Tried with
</span></tt><tt><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:red">async(rest_post(<a href="https://URL)"><span style="color:red">https://URL)</span></a>);
</span></tt><tt><span style="font-size:11.0pt;font-family:Wingdings;color:blue">è</span></tt><tt><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue"> Crash occurred
<o:p></o:p></span></tt></p>
<p class="MsoNormal"><tt><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue"><o:p> </o:p></span></tt></p>
<p class="MsoNormal"><tt><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue">I am attaching here with the sample curl file,  where I try to reach example.com(getHttps.c) and sample curl program which will do the actual PUT request I want
 to do(</span></tt> <tt><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue">asyncPutHttps.c)<o:p></o:p></span></tt></p>
<p class="MsoNormal"><tt><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue">With asyncPutHttps.c, whatever I do in the sample program, the same I do OpenSIPS too, but not crashing in my sample program and crash occurs only with OpenSIPS.<o:p></o:p></span></tt></p>
<p class="MsoNormal"><tt><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue"><o:p> </o:p></span></tt></p>
<p class="MsoNormal"><tt><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue">Let me know if you need more information on any of these.
<o:p></o:p></span></tt></p>
<p class="MsoNormal"><tt><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue"><o:p> </o:p></span></tt></p>
<p class="MsoNormal"><tt><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue">Regards,</span></tt><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue"><br>
</span><tt><span style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:blue">Agalya<o:p></o:p></span></tt></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;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="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext"> Liviu Chircu [mailto:liviu@opensips.org]
<br>
<b>Sent:</b> Thursday, March 09, 2017 5:06 AM<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-Users] [RELEASE] OpenSIPS minor releases: 2.2.3 and 1.11.10<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p><tt><span style="font-size:10.0pt">No luck on a CentOS 7.2 system with libcurl 7.29.0 with async rest_get. Some more questions:</span></tt><o:p></o:p></p>
<p><tt><span style="font-size:10.0pt">- does the following crash your system? If not, please detail the nature of your HTTP transfer that's causing the crash (server location and a .pcap of a successful curl would be nice).</span></tt><o:p></o:p></p>
<p><tt><span style="font-size:10.0pt">   async(rest_get(<a href="https://example.com">"https://example.com"</a>, "$var(body)"), resume_route);</span></tt><o:p></o:p></p>
<p><tt><span style="font-size:10.0pt">- are you using any custom patches for rest_client? I suggest we only use the 2.2.3 tag code when debugging this issue, from now on</span></tt><o:p></o:p></p>
<p><tt><span style="font-size:10.0pt">Regards,</span></tt><o:p></o:p></p>
<pre>Liviu Chircu<o:p></o:p></pre>
<pre>OpenSIPS 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>
<pre><o:p> </o:p></pre>
<pre>OpenSIPS Summit May 2017 Amsterdam<o:p></o:p></pre>
<pre>  <a href="http://www.opensips.org/events/Summit-2017Amsterdam.html">http://www.opensips.org/events/Summit-2017Amsterdam.html</a><o:p></o:p></pre>
<div>
<p class="MsoNormal">On 08.03.2017 18:05, 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="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue">Hi Liviu,
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue">You got time to reproduce this issue? If you need any help towards it let me know.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue">Regards,<br>
Agalya</span><o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>