Debug Malloc memory allocation debugging C library
Switch branches/tags
Nothing to show
Clone or download
Latest commit d7177f7 Apr 11, 2018
Permalink
Failed to load latest commit information.
.gitignore getting the docs to build right Apr 10, 2018
BUILD.txt tweaks Apr 10, 2018
ChangeLog.txt cp Apr 10, 2018
INSTALL line width Apr 10, 2018
Makefile.OLD.in line width Apr 10, 2018
Makefile.in cp Apr 10, 2018
Manifest removed id: rcs stuff Apr 10, 2018
README.md added back in the default INSTALL file Apr 10, 2018
TODO removed id: rcs stuff Apr 10, 2018
arg_check.c removed id: rcs stuff Apr 10, 2018
arg_check.h removed id: rcs stuff Apr 10, 2018
chunk.c removed id: rcs stuff Apr 10, 2018
chunk.h removed id: rcs stuff Apr 10, 2018
chunk_loc.h removed id: rcs stuff Apr 10, 2018
compat.c removed id: rcs stuff Apr 10, 2018
compat.h removed id: rcs stuff Apr 10, 2018
conf.h.in removed id: rcs stuff Apr 10, 2018
config.help Moved configure.help -> config.help. Feb 27, 1994
configure removed id: rcs stuff Apr 10, 2018
configure.ac removed id: rcs stuff Apr 10, 2018
debug_tok.h removed id: rcs stuff Apr 10, 2018
dmalloc.c removed id: rcs stuff Apr 10, 2018
dmalloc.h.1 removed id: rcs stuff Apr 10, 2018
dmalloc.h.4 removed id: rcs stuff Apr 10, 2018
dmalloc.h.5 added file,line args to the function tests Mar 23, 2007
dmalloc.h.6 added better dmalloc.h building Sep 8, 2003
dmalloc.html getting the docs to build right Apr 10, 2018
dmalloc.info getting the docs to build right Apr 10, 2018
dmalloc.spec removed id: rcs stuff Apr 10, 2018
dmalloc.texi removed id: rcs stuff Apr 10, 2018
dmalloc_argv.c syned up with new argv Jun 5, 2005
dmalloc_argv.h removed id: rcs stuff Apr 10, 2018
dmalloc_argv_loc.h removed id: rcs stuff Apr 10, 2018
dmalloc_fc_t.c removed id: rcs stuff Apr 10, 2018
dmalloc_loc.h removed id: rcs stuff Apr 10, 2018
dmalloc_rand.c removed id: rcs stuff Apr 10, 2018
dmalloc_rand.h removed id: rcs stuff Apr 10, 2018
dmalloc_t.c removed id: rcs stuff Apr 10, 2018
dmalloc_tab.c removed id: rcs stuff Apr 10, 2018
dmalloc_tab.h removed id: rcs stuff Apr 10, 2018
dmalloc_tab_loc.h removed id: rcs stuff Apr 10, 2018
dmallocc.cc removed id: rcs stuff Apr 10, 2018
dmallocrc removed id: rcs stuff Apr 10, 2018
env.c removed id: rcs stuff Apr 10, 2018
env.h removed id: rcs stuff Apr 10, 2018
error.c removed id: rcs stuff Apr 10, 2018
error.h removed id: rcs stuff Apr 10, 2018
error_val.h removed id: rcs stuff Apr 10, 2018
heap.c removed id: rcs stuff Apr 10, 2018
heap.h removed id: rcs stuff Apr 10, 2018
install-sh updated from autoconf 2.12 Dec 9, 1996
malloc.c removed id: rcs stuff Apr 10, 2018
malloc.h fillproto May 14, 2007
malloc_funcs.h removed id: rcs stuff Apr 10, 2018
mkinstalldirs removed all email addresses Jun 10, 2003
protect.c removed id: rcs stuff Apr 10, 2018
protect.h removed id: rcs stuff Apr 10, 2018
return.h removed id: rcs stuff Apr 10, 2018
settings.dist removed id: rcs stuff Apr 10, 2018
settings.test cp Mar 25, 2007
texinfo.tex cp Dec 18, 2005
version.h removed id: rcs stuff Apr 10, 2018

README.md

Debug Malloc Library

Version 5.5.2

The debug memory allocation or "dmalloc" library has been designed as a drop in replacement for the system's malloc, realloc, calloc, free and other memory management routines while providing powerful debugging facilities configurable at runtime. These facilities include such things as memory-leak tracking, fence-post write detection, file/line number reporting, and general logging of statistics.

The library is reasonably portable having been run successfully on at least the following operating systems: AIX, DGUX, Free/Net/OpenBSD, GNU/Hurd, HPUX, Irix, Linux, Mac OSX, NeXT, OSF/DUX, SCO, Solaris, Ultrix, Unixware, MS Windows, and Unicos on a Cray T3E. It also provides support for the debugging of threaded programs.

The package includes the library, configuration scripts, debug utility application, test program, and documentation. Online documentation as well as the full source is available at the dmalloc home page. Details on the library's mailing list are available there as well.

The author can be reached via his home page with questions or feedback. Please include the version number of the library that you are using, your machine and operating system types, and the value of the DMALLOC_OPTIONS environment variable.

Enjoy, Gray Watson

Documentation

See the INSTALL file for building, installation, and quick-start notes.

Examine the dmalloc.html file which contains the user-documentation for the dmalloc subsystem. There also is an dmalloc.info file which can be installed in the emacs info directory and read with emacs/info or the info program available from the texinfo package at GNU archive sites. It is also suitable for reading as text. The source of all documation is the dmalloc.texi texinfo file which also can generate postscript or TeX hardcopy output with the help of the texinfo.tex file. You can download the full documentation package or read it online from the repository.

Argv Library

My argv library should have been included with this package (argv.[ch], argv_loc.h). I use it with all my binaries. It functions similar to the getopt routines in that it provides a standardized way of processing arguments. However, that is where the similarity ends. You have to write no C code to do the actual processing, it handles short -l and long --logfile style options, gives standard short and long usage messages, and many other features while trying to comply with POSIX specs.

The newest versions of the argv library are available online.

Thanks

Many net folk contributed to the design, development, and overall library and my thanks goes out to them all.

Author

If you have any questions, comments, or problems feel free to send me mail.

Gray Watson