Copyright © 1996-2014,2016 by Thomas E. Dickey


This package is a collection of routines which are a drop-in replacement for the malloc(3), memory(3), string(3), and bstring(3) library functions. These replacement modules are different from the original modules in that they provide a full set of debugging features which detect malloc memory overruns and other types of misuse.


This was written by Conor Cahill, distributed as dbmalloc 1.14.

Later, it was modified for Linux 0.99.5 by Harald Dunkel <>, who worked around a defect in the Linux _exit call:

I made some additional changes to port it to Linux with gcc 2.7.0 which has some nonstandard combinations of types for the BSD library functions, such as bzero.