# Valgrind

> An instrumentation framework for building dynamic analysis tools

Source: https://talira.ai/catalog/valgrind-s32z4gqx
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Framework
- Categories: [developer tools / debugging](https://talira.ai/categories/developer-tools/debugging), [developer tools / performance / profiling](https://talira.ai/categories/developer-tools/performance/profiling)
- Platforms: linux, freebsd, android, macos[^6]
- Licence: GPL-3.0-or-later[^4][^5]
- Pricing: Free and open source[^4]
- Free tier: yes[^4]
- Backed by: [The Valgrind Developers](https://talira.ai/orgs/valgrind-developers.md)

Valgrind is an instrumentation framework for dynamic analysis of compiled programs, best known for Memcheck, which finds memory management bugs such as leaks, invalid reads and writes and use of uninitialised memory. It ships seven production tools: the memory error detector, two thread error detectors, a cache and branch-prediction profiler, a call-graph profiler and two heap profilers, and you can build new tools on it. It runs on Linux across many architectures, FreeBSD, Solaris, Android and older Intel Macs.

## Links

- Website: https://valgrind.org/
- Docs: https://valgrind.org/docs/manual/manual.html

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/valgrind>[^1]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/valgrind>[^2]

## Problems it solves

- find the memory leak in my C++ program
- track down invalid reads and use of uninitialised memory in C code
- find data races between threads in a native program

## Features

- Memcheck memory error and leak detector
- Helgrind and DRD thread error detectors
- Cachegrind and Callgrind profilers
- Massif and DHAT heap profilers

## Limitations

- macOS support stops at macOS 13 Ventura and Intel (amd64) Macs only: Apple silicon Macs aren't supported[^3]

## Trust

Overall: 0.30 out of 1.
Signals: adoption 0.54, backing 0.30, extensibility 0.00.

- 973 Homebrew installs in 30 days
- backed by The Valgrind Developers

Warnings:

- activity not tracked: no repository is linked

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 28 Nov 2026)
[^2]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 28 Nov 2026)
[^3]: https://valgrind.org/downloads/current.html (checked 28 Nov 2026)
[^4]: https://metadata.ftp-master.debian.org/changelogs/main/v/valgrind/unstable_copyright (checked 28 Nov 2026)
[^5]: https://valgrind.org/docs/manual/license.gpl.html (checked 28 Nov 2026)
[^6]: https://valgrind.org/info/platforms.html (checked 28 Nov 2026)
