[asterisk-dev] link asterisk to dmalloc

Tilghman Lesher tilghman at meg.abyt.es
Fri Aug 24 10:32:35 CDT 2012


On Fri, Aug 24, 2012 at 10:27 AM, Tomas Maldonado
<tomas.maldonado at intraway.com> wrote:
> I hope this is the right list for this question.  I am trying to debug a
> segmentation fault in the res_pktcops module.  In some point there is a free
> of an invalid pointer, so I want to search the source of this problem using
> dmalloc library.  I was hoping someone would point me out how to achieve
> this, I took a look at the Makefiles but I cant figure out where to add this
> library.

We already have a builtin method for doing this.  Make sure you've
invoked configure with --enable-dev-mode, then in 'make menuselect',
under Compiler Options, enable "MALLOC_DEBUG".

-Tilghman



More information about the asterisk-dev mailing list