In windows, we can enable page heap verification using gflags to catch memory corruption bugs more easily. Is there a similar service/program for Linux and FreeBSD operating systems?

1 Answer 1


See https://en.wikibooks.org/wiki/Linux_Applications_Debugging_Techniques/Heap_corruption

E.g., electric fence will do this.

Valgrind will also do this and much more http://valgrind.org/docs/manual/mc-manual.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.