heob overrides the heap functions of the called process to detect buffer overruns and memory leaks.
On buffer overruns an access violation is raised, and stacktraces of the offending instruction and buffer allocation are provided.
When the program exits normally, stacktraces for all leaks are shown.
The location of dwarfstack.h has to be provided.
make CPPFLAGS="-I../dwarfstack/include"
Or disable dwarfstack completely (this is the default).
make CPPFLAGS="-DNO_DWARFSTACK"
Run build.bat
in the source directory.
To get file/line information in stacktraces of executables with DWARF debug information (gcc), dwarfstack.dll needs to be available. For PDB debug information, dbghelp.dll is used.
Free code signing provided by SignPath.io, certificate by SignPath Foundation