From charlesreid1

Valgrind is a memory analysis tool.

Main page: http://valgrind.org/

Users manual: http://valgrind.org/docs/manual/manual.html

Quick start: http://valgrind.org/docs/manual/quick-start.html

There are many tools built into Valgrind. I have used it for detecting leaks when building a component in a large C++ framework for scientific computing.


Installing

Reboot usage of valgrind. It's 2018.

To get valgrind installed, I used Kali Tools to check it out.

Dependencies

Before you build valgrind, you need to install several libraries:

sudo apt-get install gdb gcc-multilib libc6-dev-i386 mpi-default-dev docbook docbook-xsl xsltproc

Installing debian package

The debian/ folder of the valgrind directory created by kali-tools will be used to create a Debian package (deb) file.

dpkg-buildpackage -uc -us -b

Hmm... it wants gcc >= 3.0, and I have version 6.