|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 03-May-2022 | - |
| Makefile.in | H A D | 03-May-2022 | 16.5 KiB | 470 | 367 |
| README.md | H A D | 28-Dec-2020 | 3 KiB | 71 | 44 |
| TODO | H A D | 28-Dec-2020 | 9.1 KiB | 218 | 187 |
| append.c | H A D | 28-Dec-2020 | 14 KiB | 557 | 386 |
| append.h | H A D | 28-Dec-2020 | 4 KiB | 132 | 36 |
| arg_check.c | H A D | 28-Dec-2020 | 18.8 KiB | 685 | 505 |
| arg_check.h | H A D | 28-Dec-2020 | 7.1 KiB | 295 | 151 |
| chunk.c | H A D | 28-Dec-2020 | 84.8 KiB | 3,088 | 1,748 |
| chunk.h | H A D | 28-Dec-2020 | 9.2 KiB | 329 | 57 |
| chunk_loc.h | H A D | 28-Dec-2020 | 5.8 KiB | 179 | 88 |
| compat.c | H A D | 28-Dec-2020 | 10.4 KiB | 489 | 281 |
| compat.h | H A D | 28-Dec-2020 | 5.4 KiB | 210 | 72 |
| conf.h.in | H A D | 28-Dec-2020 | 8.3 KiB | 280 | 247 |
| configure | H A D | 03-May-2022 | 206.3 KiB | 7,369 | 6,029 |
| configure.ac | H A D | 28-Dec-2020 | 27.5 KiB | 967 | 894 |
| debug_tok.h | H A D | 28-Dec-2020 | 6.4 KiB | 152 | 88 |
| dmalloc.c | H A D | 28-Dec-2020 | 28.4 KiB | 1,077 | 813 |
| dmalloc.h.1 | H A D | 28-Dec-2020 | 808 | 25 | 22 |
| dmalloc.h.3 | H A D | 28-Dec-2020 | 2.3 KiB | 65 | 54 |
| dmalloc.h.4 | H A D | 28-Dec-2020 | 5.3 KiB | 187 | 168 |
| dmalloc.h.5 | H A D | 28-Dec-2020 | 59 | 7 | 4 |
| dmalloc.spec | H A D | 28-Dec-2020 | 1.5 KiB | 51 | 39 |
| dmalloc.texi | H A D | 28-Dec-2020 | 133.4 KiB | 3,209 | 2,398 |
| dmalloc_argv.c | H A D | 28-Dec-2020 | 83.5 KiB | 3,500 | 2,242 |
| dmalloc_argv.h | H A D | 28-Dec-2020 | 14.4 KiB | 482 | 118 |
| dmalloc_argv_loc.h | H A D | 28-Dec-2020 | 7.4 KiB | 201 | 126 |
| dmalloc_fc_t.c | H A D | 28-Dec-2020 | 24.4 KiB | 1,251 | 1,031 |
| dmalloc_loc.h | H A D | 28-Dec-2020 | 2.2 KiB | 101 | 36 |
| dmalloc_rand.c | H A D | 28-Dec-2020 | 2.3 KiB | 93 | 26 |
| dmalloc_rand.h | H A D | 28-Dec-2020 | 1.4 KiB | 52 | 7 |
| dmalloc_t.c | H A D | 28-Dec-2020 | 115.3 KiB | 4,435 | 3,287 |
| dmalloc_tab.c | H A D | 28-Dec-2020 | 19.2 KiB | 739 | 366 |
| dmalloc_tab.h | H A D | 28-Dec-2020 | 3.6 KiB | 128 | 33 |
| dmalloc_tab_loc.h | H A D | 28-Dec-2020 | 2.5 KiB | 79 | 19 |
| dmallocc.cc | H A D | 28-Dec-2020 | 2.1 KiB | 88 | 36 |
| dmallocrc | H A D | 28-Dec-2020 | 3.7 KiB | 108 | 96 |
| env.c | H A D | 28-Dec-2020 | 11.1 KiB | 432 | 313 |
| env.h | H A D | 28-Dec-2020 | 2.3 KiB | 77 | 32 |
| error.c | H A D | 28-Dec-2020 | 15.8 KiB | 655 | 388 |
| error.h | H A D | 28-Dec-2020 | 4.5 KiB | 196 | 59 |
| error_val.h | H A D | 28-Dec-2020 | 4.9 KiB | 125 | 63 |
| heap.c | H A D | 28-Dec-2020 | 6.4 KiB | 256 | 146 |
| heap.h | H A D | 28-Dec-2020 | 1.8 KiB | 72 | 16 |
| install-sh | H A D | 28-Dec-2020 | 14.3 KiB | 502 | 327 |
| mkinstalldirs | H A D | 28-Dec-2020 | 3.5 KiB | 163 | 112 |
| protect.c | H A D | 28-Dec-2020 | 3.2 KiB | 143 | 66 |
| protect.h | H A D | 28-Dec-2020 | 1.9 KiB | 72 | 9 |
| release.sh | H A D | 28-Dec-2020 | 1.3 KiB | 57 | 41 |
| return.h | H A D | 28-Dec-2020 | 9.1 KiB | 347 | 111 |
| settings.dist | H A D | 03-May-2022 | 15.8 KiB | 459 | 416 |
| user_malloc.c | H A D | 28-Dec-2020 | 49.2 KiB | 1,935 | 916 |
| user_malloc.h | H A D | 28-Dec-2020 | 19.5 KiB | 732 | 114 |
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