Great, didnt know what the MALLOC_DEBUG option uses, and didnt know about --enable-dev-mode configure option.<br><br>Many thanks,<br>Tomas Maldonado<br><br><div class="gmail_quote">On Fri, Aug 24, 2012 at 12:32 PM, Tilghman Lesher <span dir="ltr"><<a href="mailto:tilghman@meg.abyt.es" target="_blank">tilghman@meg.abyt.es</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Fri, Aug 24, 2012 at 10:27 AM, Tomas Maldonado<br>
<<a href="mailto:tomas.maldonado@intraway.com">tomas.maldonado@intraway.com</a>> wrote:<br>
> I hope this is the right list for this question. I am trying to debug a<br>
> segmentation fault in the res_pktcops module. In some point there is a free<br>
> of an invalid pointer, so I want to search the source of this problem using<br>
> dmalloc library. I was hoping someone would point me out how to achieve<br>
> this, I took a look at the Makefiles but I cant figure out where to add this<br>
> library.<br>
<br>
</div></div>We already have a builtin method for doing this. Make sure you've<br>
invoked configure with --enable-dev-mode, then in 'make menuselect',<br>
under Compiler Options, enable "MALLOC_DEBUG".<br>
<br>
-Tilghman<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</blockquote></div><br>