Leak Detector

Leak Detector is the tool set for a test of memory leaks, for an application using memory allocation functions like malloc(), free(), and so on.

News

2004-01-18
leakdetector-20040118.tar.gz released. POSIX threads supported.
2003-12-29
leakdetector-20031229.tar.gz released. Creation of a new process with fork(2) supported.
2003-09-24
leakdetector-20030924.tar.gz released.

Requirements

How to build

% tar zxf anywhere/leakdetector-yyyymmdd.tar.gz
% cd leakdetector
% vi Config.h
% xmkmf -a
% make
% make install

Components

libld
the library to hack calls to memory allocation functions (malloc(3), calloc(3), realloc(3), free(3)) of the application, and writes them and the stack trace to a log file. This should be statically linked with the application you want to test.
ldbrowse
the program to read the file that libld(3) creates, and write it in the human-readable format to the standard output.
ldcollect
the program to collect garbages in the file that libld(3) creates, writing them to the standard output in the same format.

Document

Last modified: Sun May 11 09:25:09 JST 2008