# ThreadSanitizer

5 Hacker News commenters recommended ThreadSanitizer and 1 criticized it, November 2025 to November 2026. It was recommended in 3 of 13 months.

**Verdict:** Developers recommend it as a free tool for finding threading bugs during testing, run alongside other sanitizers.

## Why people recommend it

- Recommended alongside other sanitizers (4 comments): "Ultimately TSAN and KTSAN exist for a reason, and rust devs should learn how to use them effectively." ([source](https://news.ycombinator.com/item?id=50076931)) "build and test with sanitizers (ASAN, UBSAN, TSAN) when not measuring performance" ([source](https://news.ycombinator.com/item?id=50032787)) "clang-tidy, ASAN, UBSAN, LSAN, MSAN, and TSAN are AMAZING" ([source](https://news.ycombinator.com/item?id=46601166))
- Used in routine testing (2 comments): "build and test with sanitizers (ASAN, UBSAN, TSAN) when not measuring performance" ([source](https://news.ycombinator.com/item?id=50032787)) "test with ASAN, UBSAN and TSAN" ([source](https://news.ycombinator.com/item?id=50085487))

## Alternatives hackers recommend

- [Valgrind](https://hackerapproved.com/p/valgrind.md): 29 recommend
- [Miri](https://hackerapproved.com/p/miri.md): 26 recommend
- [AddressSanitizer](https://hackerapproved.com/p/addresssanitizer.md): 21 recommend
- [UndefinedBehaviorSanitizer](https://hackerapproved.com/p/undefinedbehaviorsanitizer.md): 12 recommend
- [Go race detector](https://hackerapproved.com/p/go-race-detector.md): 5 recommend

## Cite as

Hacker Approved, "ThreadSanitizer", https://hackerapproved.com/p/threadsanitizer/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
