Using the Valgrind debugger
Programs generally reserve memory from the total RAM available. One program we have found useful for debugging on the command line is valgrind, which is not in the default Kali install. We add it when we find we need to do preliminary debugging. For instance, at one time, a version of http://www.openoffice.org/, the free, open source office suite, had a bug in Linux that was allowing the install, but failed to run the program. It just seized up at the display of the initial splash screen. Running the following command showed that it was looking for a file that did not exist. Rather than just sending a bug report, and hoping for a solution to be added as a patch to the source code, we just added the missing file ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access