2

Now that we OS X Yosemite is out, we have the same problem as always ... Valgrind doesn't work on OS X 10.10.

Is there a working alternative to Valgrind, that can find memory leaks and other kinds of memory errors, like Valgrind does?

Jakub Arnold
  • 85,596
  • 89
  • 230
  • 327

2 Answers2

4

As pointed here, Valgrind is available for Yosemite, but only from trunk. Use

brew install valgrind --HEAD

to install.

Community
  • 1
  • 1
1

I've found that Valgrind is still a bit unstable on Mac in certain situations. If you're only looking for identifying (definite) memory leaks you could give Heapusage a try. Its output is similar to Valgrind, so it should be easy to use.

Full disclosure: I'm the author of Heapusage.

d99kris
  • 425
  • 4
  • 8