If you are a developer, please build MegaGlest on your own and get in touch to contribute (or post your patches on the forums).
Valgrind is an award-winning instrumentation framework for building dynamic analysis tools. There are Valgrind tools that can automatically detect many memory management and threading bugs, and profile your programs in detail.