# dmalloc を Homebrew, MacPorts, Nix, apt でインストール

dmalloc のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:dmalloc
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install dmalloc
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dmalloc
```

  証拠: MacPorts ports tree: devel/dmalloc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#dmalloc
```

  証拠: nixpkgs package indexes: pkgs/by-name/dm/dmalloc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- Debian apt (92%):

```sh
sudo apt install libdmalloc-dev
```

  証拠: Debian stable package indexes: libdmalloc-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## パッケージ情報

- **パッケージキー:** brew:dmalloc
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/dmalloc>
- **バージョン:** 5.6.5
- **ソース概要:** Debug versions of system memory management routines
- **ホームページ:** <https://dmalloc.com/>
- **上流ドキュメント:** <https://dmalloc.com/>
- **ライセンス:** ISC
- **ソースアーカイブ:** <https://dmalloc.com/releases/dmalloc-5.6.5.tgz>
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- dmalloc (cli)
- dmalloc (エイリアス)

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 5.6.5
- ローカルデータ: OK
- 上流リポジトリ: https://dmalloc.com/
- 情報: No package-manager update timestamp was available.
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

Dmalloc is Gray Watson's debug memory allocation library, designed as a drop-in replacement for malloc, realloc, calloc, free, and related routines while adding runtime-configurable memory debugging.

### プロジェクトの歴史

The manual carries copyright years from 1992 to 2020 and identifies version 5.6.5 as a December 2020 release. Its feature set reflects a long-lived C debugging niche: leak tracking, fence-post write detection, file and line reporting, statistics logging, and threaded-program support.

### 採用の歴史

Dmalloc's official documentation lists successful use across a wide range of Unix and non-Unix systems, including AIX, the BSDs, GNU/Hurd, HP-UX, IRIX, Linux, macOS, NeXT, OSF/DUX, SCO, Solaris, Ultrix, UnixWare, Windows, and Unicos on a Cray T3E.

### 使われ方

Typical use links the dmalloc library into a C or C++ program, optionally includes dmalloc.h for file and line reporting, and uses the dmalloc utility plus the DMALLOC_OPTIONS environment variable to enable checks such as leak logging, heap verification, and abort-on-error behavior.

### パッケージ好きにとっての重要性

Dmalloc is historically interesting because it predates many modern sanitizers yet remains a compact, portable package-manager answer for C heap debugging. Its shell integration, runtime token model, and static-library workflow make it feel like classic Unix debugging infrastructure.

### タイムライン

- 1992: Earliest copyright year in the official manual.
- 2020-12: Dmalloc manual identifies version 5.6.5.

### Related projects

- Dmalloc sits in the same practical debugging space as allocator wrappers, leak checkers, and compiler/runtime sanitizers, but its official documentation focuses on replacing the standard allocation routines directly.

### ソース

- <https://dmalloc.com/>
- <https://dmalloc.com/docs/dmalloc.html>
- <https://github.com/j256/dmalloc>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** dmalloc
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 他のパッケージマネージャ記録

- Debian apt - libdmalloc-dev - 5.5.2-14+b3: normalized package name match | Debian stable package indexes: libdmalloc-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | debug memory allocation library (development files and doc) | http://dmalloc.com/
- Debian apt - libdmalloc5 - 5.5.2-14+b3: normalized package name match | Debian stable package indexes: libdmalloc5 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | debug memory allocation library | http://dmalloc.com/
- Nix - dmalloc: normalized package name match | nixpkgs package indexes: pkgs/by-name/dm/dmalloc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libdmalloc-dev - 5.5.2-14build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libdmalloc-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | debug memory allocation library (development files and doc) | http://dmalloc.com/
- Ubuntu apt - libdmalloc5 - 5.5.2-14build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libdmalloc5 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | debug memory allocation library | http://dmalloc.com/
- MacPorts - dmalloc: normalized package name match | MacPorts ports tree: devel/dmalloc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 関連リンク

- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/ja/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [dwarfutils](https://pkg.so/ja/brew/dwarfutils/) - Shares pkgdb curated category or tags: cli, debugging, developer-tools.
- [delve](https://pkg.so/ja/brew/delve/) - Shares pkgdb curated category or tags: cli, debugging, developer-tools.
- [chdig](https://pkg.so/ja/brew/chdig/) - Shares pkgdb curated category or tags: cli, debugging, developer-tools.
- [probe-rs-tools](https://pkg.so/ja/brew/probe-rs-tools/) - Shares pkgdb curated category or tags: cli, debugging, developer-tools.
- [cdebug](https://pkg.so/ja/brew/cdebug/) - Shares pkgdb curated category or tags: cli, debugging, developer-tools.
- [llnode](https://pkg.so/ja/brew/llnode/) - Shares pkgdb curated category or tags: cli, debugging, developer-tools.
- [ddd](https://pkg.so/ja/brew/ddd/) - Shares pkgdb curated category or tags: cli, debugging, developer-tools.
- [docker-debug](https://pkg.so/ja/brew/docker-debug/) - Shares pkgdb curated category or tags: cli, debugging, developer-tools.
- [valgrind](https://pkg.so/ja/brew/valgrind/) - Local package facts share a topical domain. Shared terms: c, cli, debug, debugging, developer.

## Combined YAML source

View the package source record on GitHub. [combined/dmalloc.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dmalloc.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
