<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"><span>Hi Charles,</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span>Yes, when I build and run it completely from master, I have the same issue.</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span>So I get this when I
 shut it down with `killall kamailio`. </span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span>This time I run it with log_stderror=yes , so it prints alot of debugging messages -  it seems it tries to free() un-allocated memory :</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span>........</span></div><div><font size="2">37(18544) DEBUG: <core> [main.c:856]: sig_usr(): Memory still-in-use summary (pkg):</font></div><div><font size="2"> 0(18507) DEBUG: memcached [memcached.c:251]: mod_destroy(): remove memory manager callbacks 0(18507) DEBUG: memcached
 [memcached.c:254]: mod_destroy(): memory manager callbacks removed*** glibc detected ***</font></div><div><font size="2"> /opt/kamailio/sbin/kamailio: free(): invalid pointer: 0x00007fd4767b57f0 ***</font></div><div><font size="2">======= Backtrace: =========</font></div><div><font size="2">/lib64/libc.so.6(+0x760e6)[0x7fd476a770e6]</font></div><div><font size="2">/usr/local/lib/libmemcached.so.11(+0x1711a)[0x7fd46d8f911a]</font></div><div><font size="2">/opt/kamailio/sbin/kamailio(destroy_modules+0x1f)[0x4ed69f]</font></div><div><font size="2">/opt/kamailio/sbin/kamailio(cleanup+0x2d)[0x466a6d]</font></div><div><font size="2">/opt/kamailio/sbin/kamailio[0x4677bf]</font></div><div><font size="2">/opt/kamailio/sbin/kamailio(handle_sigs+0x20f)[0x467abf]</font></div><div><font size="2">/opt/kamailio/sbin/kamailio(main_loop+0x151c)[0x46a12c]</font></div><div><font size="2">/opt/kamailio/sbin/kamailio(main+0x1619)[0x46bda9]</font></div><div><font
 size="2">/lib64/libc.so.6(__libc_start_main+0xfd)[0x7fd476a1fcdd]</font></div><div><font size="2">/opt/kamailio/sbin/kamailio[0x4145e9]</font></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;">........</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;">I use libmemcached version 1.0.17 .</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;">Let me know if I can help you debug this.</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;">Regards,</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;">Dragos</div><div style="font-family: arial, helvetica, sans-serif; font-size:
 10pt;"><br></div>  <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Charles Chance <charles.chance@sipcentric.com><br> <b><span style="font-weight: bold;">To:</span></b> Dragos Oancea <droancea@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "sr-dev@lists.sip-router.org" <sr-dev@lists.sip-router.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, June 18, 2013 12:01 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: the new memcache module<br> </font> </div> <div class="y_msg_container"><br><div id="yiv8612226214"><div dir="ltr">Hi Dragos,<div><br></div><div style="">I don't think it will make a difference, but do you still see the problem if you build/run
 Kamailio completely from master, instead of just copying across the compiled memcache module?</div>
<div style=""><br></div><div style="">Cheers,</div><div style=""><br></div><div style="">Charles</div><div style=""><br></div><div class="yiv8612226214gmail_extra"><br><br><div class="yiv8612226214gmail_quote">On 17 June 2013 15:43, Dragos Oancea <span dir="ltr"><<a rel="nofollow" ymailto="mailto:droancea@yahoo.com" target="_blank" href="mailto:droancea@yahoo.com">droancea@yahoo.com</a>></span> wrote:<br>
<blockquote class="yiv8612226214gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;">
<span>Hi Henning & Charles,</span></div><div style="font-style: normal; font-size: 13px; background-color: transparent; font-family: arial, helvetica, sans-serif;"><span><br></span></div><div style="font-style: normal; font-size: 13px; background-color: transparent; font-family: arial, helvetica, sans-serif;">
<span>So far the module performed pretty good for us.</span></div><div style="font-style: normal; font-size: 13px; background-color: transparent; font-family: arial, helvetica, sans-serif;"><span><br></span></div><div style="font-style: normal; font-size: 13px; background-color: transparent; font-family: arial, helvetica, sans-serif;">
<span>But there might be a problem, when I
 shut down Kamailio I see this in the logs :</span></div><div style="font-style: normal; font-size: 13px; background-color: transparent; font-family: arial, helvetica, sans-serif;"><span><br></span></div><div style="background-color:transparent;">
<span><font>ERROR: memcached [memcached.c:255]: mod_destroy(): memory manager callbacks not removed, returned INVALID ARGUMENTS but continue anyway</font><br></span></div><div style="font-style: normal; font-size: 16px; background-color: transparent; font-family: arial, helvetica, sans-serif;">
<br></div><div style="font-style: normal; background-color: transparent; font-family: arial, helvetica, sans-serif;"><font>It also dumps core at shutdown:</font></div><div style="font-size: 13px; font-style: normal; background-color: transparent; font-family: arial, helvetica, sans-serif;">
<font><a rel="nofollow" target="_blank" href="http://pastebin.com/5uJJ3tp4">http://pastebin.com/5uJJ3tp4</a><br></font></div><div style="font-size: 13px; font-style: normal; background-color: transparent; font-family: arial, helvetica, sans-serif;">
<br></div><div style="background-color:transparent;">Regards,</div><div style="background-color:transparent;">Dragos</div><div style="font-size: 13px; font-style: normal; background-color: transparent; font-family: arial, helvetica, sans-serif;">
<font><br></font></div><div style="font-size: 13px; font-style: normal; background-color: transparent; font-family: arial, helvetica, sans-serif;"><font><br></font></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;">
<br></div>  <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-size:12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Henning Westerholt <<a rel="nofollow" ymailto="mailto:hw@kamailio.org" target="_blank" href="mailto:hw@kamailio.org">hw@kamailio.org</a>><br>
 <b><span style="font-weight:bold;">To:</span></b> <a rel="nofollow" ymailto="mailto:sr-users@lists.sip-router.org" target="_blank" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a> <br><b><span style="font-weight:bold;">Cc:</span></b> Charles Chance <<a rel="nofollow" ymailto="mailto:charles.chance@sipcentric.com" target="_blank" href="mailto:charles.chance@sipcentric.com">charles.chance@sipcentric.com</a>>; Dragos Oancea <<a rel="nofollow" ymailto="mailto:droancea@yahoo.com" target="_blank" href="mailto:droancea@yahoo.com">droancea@yahoo.com</a>> <br>
 <b><span style="font-weight:bold;">Sent:</span></b> Friday, June 14, 2013 6:24 PM<br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [SR-Users] memcache problem - reporting protocol error<br> </font> </div> <div>
<br>Am Freitag, 7. Juni 2013, 12:07:00 schrieb Charles Chance:<br>> Yes, that should work fine.<br>> <br>> Cheers,<br><br>Hello Dragos,<br><br>just one thing to add - if you find any issues with the master version of the <br>
module, please report to our developer list that we could take a look.<br><br>Best
 regards,<br><br>Henning Westerholt<br><br><br></div> </div> </div>  </div></div></blockquote></div><br><br>
</div></div>

<br>
<font face="Helvetica, Arial, sans-serif"><font size="2"><span style="font-size:10pt;"><a rel="nofollow" target="_blank" href="http://www.sipcentric.com/" title="blocked::http://www.sipcentric.com/">www.sipcentric.com</a><br>
            <br>
            Follow us on twitter <a rel="nofollow" target="_blank" href="http://twitter.com/sipcentric" title="blocked::http://twitter.com/sipcentric">@sipcentric</a><br>
            <br>
            <font color="gray">Sipcentric Ltd.
                Company registered in England & Wales no. 7365592.</font> <font color="gray">Registered
                office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ.</font></span></font></font></div><br><br></div> </div> </div>  </div></body></html>