• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

Makefile.inH A D03-May-202216.5 KiB470367

README.mdH A D28-Dec-20203 KiB7144

TODOH A D28-Dec-20209.1 KiB218187

append.cH A D28-Dec-202014 KiB557386

append.hH A D28-Dec-20204 KiB13236

arg_check.cH A D28-Dec-202018.8 KiB685505

arg_check.hH A D28-Dec-20207.1 KiB295151

chunk.cH A D28-Dec-202084.8 KiB3,0881,748

chunk.hH A D28-Dec-20209.2 KiB32957

chunk_loc.hH A D28-Dec-20205.8 KiB17988

compat.cH A D28-Dec-202010.4 KiB489281

compat.hH A D28-Dec-20205.4 KiB21072

conf.h.inH A D28-Dec-20208.3 KiB280247

configureH A D03-May-2022206.3 KiB7,3696,029

configure.acH A D28-Dec-202027.5 KiB967894

debug_tok.hH A D28-Dec-20206.4 KiB15288

dmalloc.cH A D28-Dec-202028.4 KiB1,077813

dmalloc.h.1H A D28-Dec-2020808 2522

dmalloc.h.3H A D28-Dec-20202.3 KiB6554

dmalloc.h.4H A D28-Dec-20205.3 KiB187168

dmalloc.h.5H A D28-Dec-202059 74

dmalloc.specH A D28-Dec-20201.5 KiB5139

dmalloc.texiH A D28-Dec-2020133.4 KiB3,2092,398

dmalloc_argv.cH A D28-Dec-202083.5 KiB3,5002,242

dmalloc_argv.hH A D28-Dec-202014.4 KiB482118

dmalloc_argv_loc.hH A D28-Dec-20207.4 KiB201126

dmalloc_fc_t.cH A D28-Dec-202024.4 KiB1,2511,031

dmalloc_loc.hH A D28-Dec-20202.2 KiB10136

dmalloc_rand.cH A D28-Dec-20202.3 KiB9326

dmalloc_rand.hH A D28-Dec-20201.4 KiB527

dmalloc_t.cH A D28-Dec-2020115.3 KiB4,4353,287

dmalloc_tab.cH A D28-Dec-202019.2 KiB739366

dmalloc_tab.hH A D28-Dec-20203.6 KiB12833

dmalloc_tab_loc.hH A D28-Dec-20202.5 KiB7919

dmallocc.ccH A D28-Dec-20202.1 KiB8836

dmallocrcH A D28-Dec-20203.7 KiB10896

env.cH A D28-Dec-202011.1 KiB432313

env.hH A D28-Dec-20202.3 KiB7732

error.cH A D28-Dec-202015.8 KiB655388

error.hH A D28-Dec-20204.5 KiB19659

error_val.hH A D28-Dec-20204.9 KiB12563

heap.cH A D28-Dec-20206.4 KiB256146

heap.hH A D28-Dec-20201.8 KiB7216

install-shH A D28-Dec-202014.3 KiB502327

mkinstalldirsH A D28-Dec-20203.5 KiB163112

protect.cH A D28-Dec-20203.2 KiB14366

protect.hH A D28-Dec-20201.9 KiB729

release.shH A D28-Dec-20201.3 KiB5741

return.hH A D28-Dec-20209.1 KiB347111

settings.distH A D03-May-202215.8 KiB459416

user_malloc.cH A D28-Dec-202049.2 KiB1,935916

user_malloc.hH A D28-Dec-202019.5 KiB732114

README.md

1Debug Malloc Library
2====================
3
4Version 5.6.5 -- 12/28/2020
5
6[![CircleCI](https://circleci.com/gh/j256/dmalloc.svg?style=svg)](https://circleci.com/gh/j256/dmalloc)
7
8The debug memory allocation or "dmalloc" library has been designed as a drop in replacement for the system's
9`malloc`, `realloc`, `calloc`, `free` and other memory management routines while providing powerful debugging
10facilities configurable at runtime.  These facilities include such things as memory-leak tracking, fence-post
11write detection, file/line number reporting, and general logging of statistics.
12
13The library is reasonably portable having been run successfully on at least the following operating systems:
14AIX, DGUX, Free/Net/OpenBSD, GNU/Hurd, HPUX, Irix, Linux, OSX, NeXT, OSF/DUX, SCO, Solaris, Sunos, Ultrix,
15Unixware, MS Windows, and Unicos on a Cray T3E.  It also provides support for the debugging of threaded
16programs.
17
18The package includes the library, configuration scripts, debug utility application, test program, and
19documentation.  Online documentation as well as the full source is available at the [dmalloc home
20page](http://dmalloc.com/).
21
22Enjoy, Gray Watson
23
24## Documentation
25
26See the INSTALL.txt file for building, installation, and quick-start notes.
27
28Examine the [html
29documentation](https://htmlpreview.github.io/?https://raw.githubusercontent.com/j256/dmalloc/master/dmalloc.html) for
30dmalloc.  The source of all documation is the dmalloc.texi texinfo file which also can generate PDF hardcopy output with
31the help of the texinfo.tex file.  You can download the full documentation package or read it [online from the
32repository](http://dmalloc.com/).
33
34## Quick Getting Started
35
36This section should give you an idea on how to get going.  See the more complete [getting started
37documentation](https://dmalloc.com/docs/getting-started) for more details.
38
39  1. Download the latest version of the library available from http://dmalloc.com/.
40
41  2. Run `./configure` to configure the library.
42
43  3. Run `make install` to install the library on your system.
44
45  4. Add an alias for the dmalloc utility.  The idea is to have the shell capture the dmalloc
46     program's output and adjust the environment.
47
48     Bash, ksh, and zsh users should add the following to their dot files:
49
50         function dmalloc { eval `command dmalloc -b $*`; }
51
52     Csh or tcsh users  should add the following to their dot files:
53
54         alias dmalloc 'eval `\dmalloc -C \!*`'
55
56  5. Link the dmalloc library into your program and the end of the library list.
57
58  8. Enable the debugging features by (for example) typing `dmalloc -l logfile -i 100 low`.
59     Use `dmalloc --usage` to see other arguments to the dmalloc program.
60
61  9. Run your program, examine the logfile, and use its information to help debug your program.
62
63## Thanks
64
65The initial idea of this library came from Doug Balog.  He and many other net folk contributed to the design,
66development, and continued maintenence of the library.  My thanks goes out to them all.
67
68# ChangeLog Release Notes
69
70See the [ChangeLog.txt file](ChangeLog.txt).
71