0

I'm trying to check for memory leaks in a program I wrote in C. I'm running MacOS Mojave. When I run valgrind, I get this error:

$ valgrind --leak-check=full --show-reachable=yes ./shell.out
valgrind: mmap-FIXED(0x0, 520192) failed in UME (load_segment1) with error 12 (Cannot allocate memory).
danielschnoll
  • 3,045
  • 5
  • 23
  • 34

1 Answers1

0

Valgrind might not compatible with the newest macOS(10.14 Mojave). please check this : How to install Valgrind on macOS Mojave(10.14) with Homebrew?

vijayakm
  • 43
  • 4