Hacker ApprovedDepartments

Valgrind

Hacker Approved

The most recommended of 6 sanitizers

Free tool that finds memory errors and leaks in native code, recommended as a routine check. Caveats: it is slow and sometimes reports false positives.

Free tool that finds memory errors and leaks in native code, recommended as a routine check. Caveats: it is slow and sometimes reports false positives.

37 people gave an opinion

recommend it
29
criticize it
8
approval share
78%
Each figure is one person. RecommendsCriticizes

Recommended in 13 of 13 months

  1. November 2025: recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: recommended
  9. July 2026: recommended
  10. August 2026: recommended
  11. September 2026: recommended
  12. October 2026: recommended
  13. November 2026: recommended (month in progress)

Why it carries the badge

  • 29 people recommend itNeeds 10 or more, met.
  • 3.6 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 13 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Catches memory errors and leaks

    “Leaks are trapped with tooling, and all you need is one dev in the team to be diligant to run valgrind”

    Comment from 8 Feb 2026 in “I Write Games in C (yes, C)”

    “Tools like valgrind can be user to validate that you won't have any memory errors”

    Comment from 24 Nov 2025 in “We stopped roadmap work for a week and fixed bugs”

    “use ASAN or Valgrind then leak detection is not difficult”

    Comment from 7 Jan 2026 in “C Is Best”
  • Routine check alongside tests

    “I use valgrind or the sanitizers quite heavily to save myself from them”

    Comment from 30 Dec 2025 in “No strcpy either”

    “it's really worth adding all of them to a project if you can”

    Comment from 2 Jan 2026 in “Miri: Practical Undefined Behavior Detection for Rust [pdf]”

    “a mandatory test pass running with UBSan/ASan/Valgrind”

    Comment from 22 Oct 2026 in “Rust Style Guide”
  • Underused and under-appreciated

    “Valgrind is a friend a lot of people haven't heard of for c/c++.”

    Comment from 1 Nov 2026 in “Tips for more effective fuzz testing with AFL++”

    “even good old Valgrind is under-appreciated and under-used”

    Comment from 6 Dec 2025 in “Show HN: Walrus – a Kafka alternative written in Rust”

    “take advantage of all the older tools like valgrind”

    Comment from 15 May 2026 in “Welcome to the Strip Mining Era of OSS Security”
  • Saves headaches, useful starting point

    “it helps immensely as a starting point same as valgrind helped in the past”

    Comment from 11 Dec 2025 in “Getting a Gemini API key is an exercise in frustration”

    “saves a lot of headaches down the line”

    Comment from 1 Nov 2025 in “Hard Rust requirements from May onward”

    “Valgrind and similar tools also help.”

    Comment from 12 Sep 2026 in “Compiler Can Undo Your Security Checks”

What people warn about

Each mark is one comment

  • Slow, too slow for realtime

    “For realtime applications, Valgrind and friends are pretty much a non-starter.”

    Comment from 15 Jan 2026 in “Python: Tprof, a Targeting Profiler”

    “Valgrind is dramatically slower.”

    Comment from 24 Jul 2026 in “Fil-C: Garbage In, Memory Safety Out – Filip Pizlo – SSW 2026 [video]”

    “Valgrind can be pretty rough!”

    Comment from 3 May 2026 in “Embedded Rust or C Firmware? Lessons from an Industrial Microcontroller Use Case”
  • False positives and buggy behavior

    “valgrind is super buggy and we spend quite a bunch of time working around valgrind false positives”

    Comment from 2 Nov 2025 in “Hard Rust requirements from May onward”

    “valgrind not handling a valid optimization correclty”

    Comment from 7 Oct 2026 in “Two ARM64-specific compiler optimization bugs, in GCC 15/16 and Rust, hit curl”

    “which is a bit too strict with uninitialized values”

    Comment from 6 Oct 2026 in “Two ARM64-specific compiler optimization bugs, in GCC 15/16 and Rust, hit curl”
  • Misses some bugs and AVX512 instructions

    “Valgrind and asan will allow a buggy access (like an OOB) to succeed if the resulting address is valid at all”

    Comment from 14 Aug 2026 in “I want extern "fil-C"”

    “the lack of Valgrind support for many of the AVX512 instructions frustrates me almost daily”

    Comment from 3 Mar 2026 in “Intel's make-or-break 18A process node debuts for data center with 288-core Xeon”

Other sanitizers people recommend

The four most recommended other sanitizers, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

Valgrind compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
ValgrindThis page29878%13—Approved
Miri26390%12—Approved
AddressSanitizer21484%7—Approved
UndefinedBehaviorSanitizer120100%5—Approved
Go race detector5183%4——
See all 6 sanitizers, ranked

What people said

40 of the 48 comments that mention it, newest first. Each links to the original comment.

“Valgrind is a friend a lot of people haven't heard of for c/c++.”

RecommendsComment from 1 Nov 2026 in “Tips for more effective fuzz testing with AFL++”

“use automatic tools (Valgrind etc.) to verify the code”

RecommendsComment from 24 Oct 2026 in “LLMs are making formal software verification feasible at a much larger scale”

“a mandatory test pass running with UBSan/ASan/Valgrind”

RecommendsComment from 22 Oct 2026 in “Rust Style Guide”

“Code is not done until its memory management is proven correct.”

RecommendsComment from 13 Oct 2026 in “11 year old unsoundness bugs found in Rust borrow checker”

“valgrind not handling a valid optimization correclty”

CriticizesComment from 7 Oct 2026 in “Two ARM64-specific compiler optimization bugs, in GCC 15/16 and Rust, hit curl”

“which is a bit too strict with uninitialized values”

CriticizesComment from 6 Oct 2026 in “Two ARM64-specific compiler optimization bugs, in GCC 15/16 and Rust, hit curl”

“Valgrind and similar tools also help.”

RecommendsComment from 12 Sep 2026 in “Compiler Can Undo Your Security Checks”

“using C safely is 99% just using Valgrind and some specific GCC or llvm flags and you’re done”

RecommendsComment from 8 Sep 2026 in “C*: Unifying Programming and Verification in C (2025)”

“Then run it past valgrind to double check if something looks suspect or is slowly leaking”

RecommendsComment from 14 Aug 2026 in “An ambiguity in c89 which will never be fixed”

“Valgrind and asan will allow a buggy access (like an OOB) to succeed if the resulting address is valid at all”

CriticizesComment from 14 Aug 2026 in “I want extern "fil-C"”

“did you ever try to run it through valgrind”

MixedComment from 13 Aug 2026 in “Why vibe code in Common Lisp?”

“Valgrind is dramatically slower.”

CriticizesComment from 24 Jul 2026 in “Fil-C: Garbage In, Memory Safety Out – Filip Pizlo – SSW 2026 [video]”

“Know your compiler-flags and tools like valgrind and you'll be okay.”

MixedComment from 19 Jul 2026 in “Neither GCC nor Clang are compliant with standard C++”

“C's tools for this like Valgrind, instrumented allocators and LLVM sanitizers work with Rust too.”

MixedComment from 14 Jun 2026 in “Twenty One Zero-Days in FFmpeg”

“Nice to see a maintenance release focused on real regressions.”

RecommendsComment from 21 May 2026 in “Valgrind-3.27.1 Is Available”

“take advantage of all the older tools like valgrind”

RecommendsComment from 15 May 2026 in “Welcome to the Strip Mining Era of OSS Security”

“Valgrind can be pretty rough!”

CriticizesComment from 3 May 2026 in “Embedded Rust or C Firmware? Lessons from an Industrial Microcontroller Use Case”

“Always on static analysis + Valgrind integration. I used both without any reservation”

RecommendsComment from 3 Apr 2026 in “Decisions that eroded trust in Azure – by a former Azure Core engineer”

“They could have started with simple Valgrind sessions before moving to Rust though.”

RecommendsComment from 3 Apr 2026 in “Decisions that eroded trust in Azure – by a former Azure Core engineer”

“Combined with Valgrind integration, I don't see myself moving on anytime soon.”

RecommendsComment from 24 Mar 2026 in “An Incoherent Rust”

“the lack of Valgrind support for many of the AVX512 instructions frustrates me almost daily”

CriticizesComment from 3 Mar 2026 in “Intel's make-or-break 18A process node debuts for data center with 288-core Xeon”

“no developer has to be particularly diligent”

RecommendsComment from 8 Feb 2026 in “I Write Games in C (yes, C)”

“Leaks are trapped with tooling, and all you need is one dev in the team to be diligant to run valgrind”

RecommendsComment from 8 Feb 2026 in “I Write Games in C (yes, C)”

“For realtime applications, Valgrind and friends are pretty much a non-starter.”

CriticizesComment from 15 Jan 2026 in “Python: Tprof, a Targeting Profiler”

“I remember reading about Google's work on various C++ tooling including valgrind”

MixedComment from 8 Jan 2026 in “Kernel bugs hide for 2 years on average. Some hide for 20”

“use ASAN or Valgrind then leak detection is not difficult”

RecommendsComment from 7 Jan 2026 in “C Is Best”

“leaks aren't hard at all to find with the right tools”

RecommendsComment from 7 Jan 2026 in “C Is Best”

“Also run test suites with valgrind.”

RecommendsComment from 4 Jan 2026 in “Xr0 verifier, guarantee the safety of C programs at compile time”

“it's really worth adding all of them to a project if you can”

RecommendsComment from 2 Jan 2026 in “Miri: Practical Undefined Behavior Detection for Rust [pdf]”

“I use valgrind or the sanitizers quite heavily to save myself from them”

RecommendsComment from 30 Dec 2025 in “No strcpy either”

“it helps immensely as a starting point same as valgrind helped in the past”

RecommendsComment from 11 Dec 2025 in “Getting a Gemini API key is an exercise in frustration”

“I haven't needed Valgrind or gdb in years, except some projects integrating C libraries.”

MixedComment from 10 Dec 2025 in “Rust in the kernel is no longer experimental”

“even good old Valgrind is under-appreciated and under-used”

RecommendsComment from 6 Dec 2025 in “Show HN: Walrus – a Kafka alternative written in Rust”

“Tools like valgrind can be user to validate that you won't have any memory errors”

RecommendsComment from 24 Nov 2025 in “We stopped roadmap work for a week and fixed bugs”

“dynamic memory analyzers like valgrind with appropriate testing, you don't even need to do runtime checks”

RecommendsComment from 14 Nov 2025 in “Rust in Android: move fast and fix things”

“memory analyzers like valgrind work great”

RecommendsComment from 14 Nov 2025 in “Rust in Android: move fast and fix things”

“Static analyzers and things like valgrind exist for a reason.”

MixedComment from 14 Nov 2025 in “Rust in Android: move fast and fix things”

“It did help me finding bugs a number of times, but I also had to configure it a bit”

MixedComment from 2 Nov 2025 in “Hard Rust requirements from May onward”

“valgrind is super buggy and we spend quite a bunch of time working around valgrind false positives”

CriticizesComment from 2 Nov 2025 in “Hard Rust requirements from May onward”

“saves a lot of headaches down the line”

RecommendsComment from 1 Nov 2025 in “Hard Rust requirements from May onward”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.