<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Mon, Oct 21, 2013 at 11:31 AM, Richard Mudgett <span dir="ltr"><<a href="mailto:rmudgett@digium.com" target="_blank">rmudgett@digium.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Mon, Oct 21, 2013 at 10:28 AM, nitesh bansal <span dir="ltr"><<a href="mailto:nitesh.bansal@gmail.com" target="_blank">nitesh.bansal@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello All,<div><br></div><div>I am trying to write some test cases for asterisk which run under valgrind. I went through the SVN log</div>

<div>and realized that valgrind support was removed in SVN revision 1962 in hope of finding a better solution in future. </div>
<div>Could anyone tell me if there is a solution currently in testsuite to do memory checks, if no, should i try to merge the code for valgrind support which was present until SVN revision 1961.</div></div></blockquote><div>

<br></div></div></div><div>The testsuite is using the MALLOC_DEBUG menuselect option for memory checks.<span class="HOEnZb"><font color="#888888"><br><br></font></span></div></div></div></div></blockquote><div><br></div>
<div style>Kind of. The testsuite by itself doesn't usually care whether or not MALLOC_DEBUG is enabled; the build agents that run the testsuite happen to compile Asterisk with MALLOC_DEBUG enabled.</div><div><br></div>
<div style>And valgrind can provide a lot of other functions beyond just memory corruption/leak analysis (and it does do a more complete job of that than MALLOC_DEBUG - although it pays a large price for that as well). Having the option to enable valgrind on a test run could be very useful for local systems; I wouldn't suggest it for the nightly builds.</div>
<div> </div><div style>Matt</div></div><div><br></div>-- <br><div dir="ltr"><div>Matthew Jordan<br></div><div>Digium, Inc. | Engineering Manager</div><div>445 Jan Davis Drive NW - Huntsville, AL 35806 - USA</div><div>Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> & <a href="http://asterisk.org" target="_blank">http://asterisk.org</a></div>
</div>
</div></div>