<div dir="ltr">HI <span style="font-size:12.8px;font-weight:bold;white-space:nowrap">Liviu,</span><div><br></div><div><b>I'll put the work around in place and keep an eye out for the patch. As always thank you guys for your attentiveness and quick response.</b></div><div><b><br></b></div><div><b>Thanks!!</b></div><div><b><br></b></div><div><b>Jim</b></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 1, 2017 at 12:47 PM, Liviu Chircu <span dir="ltr"><<a href="mailto:liviu@opensips.org" target="_blank">liviu@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p><tt>Thanks for the awesome report, Jim - I managed to pinpoint
the issue immediately.<br>
</tt></p>
<p><tt>For now, you can actually prevent the leak by doing:</tt></p>
<p><tt>rest_get(<a class="m_-4095505326591159028moz-txt-link-rfc2396E" href="https://www.opensips.org" target="_blank">"https://www.<wbr>opensips.org"</a>, "$var(body)",
"$var(ctype)");</tt></p>
<p><tt>instead of:</tt></p>
<p><tt>rest_get(<a class="m_-4095505326591159028moz-txt-link-rfc2396E" href="https://www.opensips.org" target="_blank">"https://www.<wbr>opensips.org"</a>, "$var(body)");<br>
</tt></p>
<p><tt>Nevertheless, a fix will be available soon.<br>
</tt></p>
<p><tt>Cheers,</tt><br>
</p>
<pre class="m_-4095505326591159028moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="m_-4095505326591159028moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a></pre>
<div class="m_-4095505326591159028moz-cite-prefix">On 01.03.2017 18:39, Liviu Chircu
wrote:<br>
</div>
<blockquote type="cite">
<p><tt>It's:</tt></p>
<p><tt><bytes total>: <no_of_individual_allocations> x
[ file: function, line ]</tt><br>
</p>
<pre class="m_-4095505326591159028moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="m_-4095505326591159028moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a></pre>
<div class="m_-4095505326591159028moz-cite-prefix">On 01.03.2017 18:10, Jim DeVito
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi Liviu!
<div><br>
</div>
<div>Server:: OpenSIPS (2.2.3 (x86_64/linux))<br>
</div>
<div><br>
</div>
<div>For my own understanding what does the numbers on either
side of the colon mean? <span style="font-size:12.8px">sip-proxy02
opensips: 364912 : 6634 x [rest_cb.c: header_func, line
88] I assume consumed memory vs released or something like
that?</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">Thanks for looking into
this. </span></div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Mar 1, 2017 at 10:58 AM,
Liviu Chircu <span dir="ltr"><<a href="mailto:liviu@opensips.org" target="_blank">liviu@opensips.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p><tt>Hi, Jim!</tt></p>
<p><tt>Catching memory leaks in OpenSIPS 2.2+ has never
been more fun :) This definitely looks broken:</tt></p>
<p> <span>Mar 1 15:02:00 sip-proxy02 opensips: 364912
: 6634 x [rest_cb.c: header_func, line 88]</span></p>
<span><tt>May I ask what version are you using?
("opensips -V") That's the first step in trying to
reproduce this!<br>
<br>
Regards,<br>
</tt></span>
<pre class="m_-4095505326591159028m_-2565907697575466799moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="m_-4095505326591159028m_-2565907697575466799moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a></pre>
<div class="m_-4095505326591159028m_-2565907697575466799moz-cite-prefix">On 01.03.2017 17:28, Jim DeVito wrote:
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hi All,</div>
<div>
</div>
<div>Please take a look at my possible memory problem. The first
part of the pastebin is what I see in my log file when I do...</div>
<div>
</div>
<div>rest_get("<a href="http://localhost/cnam/?number=$avp%28dipnum%29" target="_blank">http://localhost/cna<wbr>m/?number=$avp(dipnum)</a>",
"$avp(cnam)");
</div>
<div>
</div>
<div>The second part is the memory dump from the running process
with the debugging flags compiled in.</div>
<div><a href="http://pastebin.com/45QrtFts" target="_blank">http://pastebin.com/45QrtFts</a>
</div>
<div>
</div>
<div>Thoughts?</div>
<div>
</div>
<div>Thanks!!</div>
<div>
</div>
<div>P.S. Here is the original conversation. <a href="https://opensips.org/pipermail/users/2016-November/035860.html" target="_blank">https://opensips<wbr>.org/pipermail/users/2016-<wbr>November/035860.html</a></div>
<div>
</div>
<div class="m_-4095505326591159028m_-2565907697575466799gmail_signature">
<div dir="ltr">-------------
<div>Jim DeVito</div>
</div>
</div>
</div>
<fieldset class="m_-4095505326591159028m_-2565907697575466799mimeAttachmentHeader"></fieldset>
<pre>______________________________<wbr>_________________
Users mailing list
<a class="m_-4095505326591159028m_-2565907697575466799moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_-4095505326591159028m_-2565907697575466799moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div>
______________________________<wbr>_________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</blockquote></div>
<div>
</div>--
<div class="m_-4095505326591159028gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">-------------<div>Jim DeVito</div><div>Mobile <a href="tel:(216)%20507-9497" value="+12165079497" target="_blank">216.507.9497</a></div></div></div>
</div>
<fieldset class="m_-4095505326591159028mimeAttachmentHeader"></fieldset>
<pre>______________________________<wbr>_________________
Users mailing list
<a class="m_-4095505326591159028moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_-4095505326591159028moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<fieldset class="m_-4095505326591159028mimeAttachmentHeader"></fieldset>
<pre>______________________________<wbr>_________________
Users mailing list
<a class="m_-4095505326591159028moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_-4095505326591159028moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">-------------<div>Jim DeVito</div><div>Mobile 216.507.9497</div></div></div>
</div>