~/talk

Why Your Tests Still Miss C++ Bugs: Valgrind, Sanitizers, and Runtime Debugging

Talkat Core C++ 2026 · 2026-10-20..10-21· [testing, c-and-cpp]
links:none on file
slides:none on file

Unit tests miss heap corruption, races, and UB that only show at runtime; the practical stack is Valgrind Memcheck (no rebuild, 10–50x slower, serializes threads, best uninitialized tracking, Linux-only), AddressSanitizer (rebuild required, 1 shadow byte per 8 bytes, catches heap and stack overflows, LeakSanitizer on Linux, works on GCC/Clang and MSVC VS2019+), ThreadSanitizer (happens‑before race detection, must execute the bad interleaving), and UBSan (cheap UB checks, can trap). Use ASan + UBSan as default debug build, run TSan/Valgrind in CI/nightly, fail on reports and add regression tests.

AI-written summary · about

  1. 0:00Introduction and agenda
  2. 1:51Why tests miss runtime bugs
  3. 6:32Types of runtime bugs
  4. 7:58Valgrind vs sanitizers overview
  5. 9:00Deep dive into Valgrind
  6. 15:26Valgrind tools and pros cons
  7. 16:52AddressSanitizer explained
  8. 23:23ThreadSanitizer and UBSan
  9. 31:26Other sanitizers overview
  10. 32:31Tool comparison side by side
  11. 33:34Practical CI workflow
  12. 36:53Triage and fixing issues
  13. 38:17Suppression and false positives
  14. 38:39Embedded development tips
  15. 39:27Key takeaways summary
  16. 40:11Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.