dmalloc
« Back to VersTracker
Description:
Debug versions of system memory management routines
Type: Formula  |  Latest Version: 5.6.5@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: debugging memory-management c c++ development
Install: brew install dmalloc
About:
Dmalloc is a debug memory allocation library that replaces the standard system malloc and related memory management routines. It tracks memory allocations to detect common errors like buffer overflows, double frees, and memory leaks. The tool is highly configurable, allowing developers to pinpoint memory corruption issues in C and C++ applications.
Key Features:
  • Detailed memory allocation tracking and logging
  • Detection of buffer overflows and underflows
  • Identification of memory leaks and dangling pointers
  • Runtime configurable debugging capabilities
Use Cases:
  • Debugging memory corruption in C/C++ applications
  • Identifying memory leaks during development cycles
  • Validating memory safety in legacy codebases
Alternatives:
  • Valgrind – Valgrind is a heavier instrumentation framework, whereas Dmalloc is a lighter library link.
  • AddressSanitizer (ASan) – ASan is a compile-time instrumentation tool, while Dmalloc operates at runtime.
License: ISC
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, arm64_monterey, arm64_big_sur, sonoma, ventura, monterey, big_sur, catalina, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Sep 14, 2025 6:59pm 0 VERSION_BUMP d4807a67