百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

dmalloc

> 编程语言
开源

调试 Malloc 内存分配调试 C 库

180 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

调试 Malloc 内存分配调试 C 库

Debug Malloc Library

Version 5.6.5 -- 12/28/2020 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, OSX, NeXT, OSF/DUX, SCO, Solaris, Sunos, 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.

Enjoy. Gray Watson

Documentation

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

Examine the html documentation for dmalloc. The source of all documation is the dmalloc.texi texinfo file which also can generate PDF hardcopy output with the help of the texinfo.tex file. You can download the full documentation package or read it online from the repository.

Quick Getting Started

This section should give you an idea on how to get going. See the more complete getting started documentation for more details.

  1. Download the latest version of the library available from https://dmalloc.com/.

  2. Run ./configure to configure the library.

  3. Run make install to install the library on your system.

  4. Add an alias for the dmalloc utility. The idea is to have the shell capture the dmalloc program's output and adjust the environment.

    Bash, ksh, and zsh users should add the following to their dot files:

    function dmalloc { eval `command dmalloc -b $*`; }

    Csh or tcsh users should add the following to their dot files:

    alias dmalloc 'eval `\dmalloc -C \!*`'
    
  5. Link the dmalloc library into your program and the end of the library list.

  6. Enable the debugging features by (for example) typing dmalloc -l logfile -i 100 low. Use dmalloc --usage to see other arguments to the dmalloc program.

  7. Run your program, examine the logfile, and use its information to help debug your program.

Thanks

The initial idea of this library came from Doug Balog. He and many other net folk contributed to the design, development, and continued maintenence of the library. My thanks goes out to them all.

ChangeLog Release Notes

See the ChangeLog file.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Ccdebugmemorymemory-leak

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言