0

Hi,
Popular memory leak detection tool like valgrind ,etc is simply crashing in our customized linux environment (montavista hardhat ,etc) , is there any other good memory leak detection tool which can be used on the target but which does not consume so much RAM like valgrind ?

3
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by kings_mitra
1

Take a look at these two articles which both provide details about the available programs/libraries for detecting memory leaks in *nix:
http://www.linuxjournal.com/article/6059
http://www.linuxjournal.com/article/6556

Other than Valgrind, it lists several tools/libraries.....

For programs compiled in C:
mtrace
memwatch
dmalloc

For C++ programs:
dmalloc
ccmalloc
NJAMD
YAMD
mpatrol
Insure++

Valgrind seems to work fine for me (EDIT: But then I'm not using it for embedded stuff!). As a consequence, I've not really used any of the others, so I can't make any solid recommendations.

I guess your best course of action would be to read the articles and try a few of the listed programs/libraries out and see what works best for you!

Cheers for now,
Jas.

Edited by JasonHippy: n/a

Votes + Comments
Nice looking list - thanks
0

I hv been using MPatrol for quite a long time for both memory profiling as well as my development activity.
It's the best one for embedded linux till date. It is having far more options and interesting results than Valgrind or any other in the open source.
Only thing is that, here u need to compile the application using MPatrol libraries for profiling it. I hv also ported the libraries to many of my target environments for embedded processor boards.

Check it out...
Cheers :icon_smile:

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.