I used to use valgrind
to detect memory leaks for my C/C++ applications on Mac OS X 10.6 (Snow Leopard) and 10.7 (Lion), but I find it's not supported on recent releases like 10.8 (Mountain Lion) and 10.9 (Mavericks) when I upgraded my OS.
Is there something else like valgrind
that can be installed on Mac OS X 10.9?
C++ – Are there any alternatives to valgrind on Mac OS X Mountain Lion and Mavericks to detect memory leaks for C/C++ applications?
cosx-mavericksosx-mountain-lionvalgrind
Best Answer
On 2013-11-01, the
valgrind
team announced Valgrind 3.9.0:It remains to be seen whether the improved Mountain Lion support means it works OK for Mavericks. It does mention that the support is only for 64-bit code.
[...time passeth...downloads happen...hopes are raised...configuration is attempted...hopes are dashed...]
Urgh!
Mountain Lion is based on Darwin 12.x; Mavericks is based on Darwin 13.x. I'm not sure about the messaging in the error messages, but out of the box, Valgrind 3.9.0 does not compile on OS X Mavericks.