~/talk

Modern Linux C++ debugging tools - under the covers

Talkat CppCon 2019 · 2019-09-15..09-20· [c-and-cpp]
name:Greg Law
linkedin:gregthelaw
slides:none on file

Explains how Linux debuggers use ptrace stops via signals and breakpoints patched with int3, how DWARF (use -g3 for macros) and CFI/CFA map optimized code back to source, how sanitizers and Valgrind use shadow memory and red zones (AddressSanitizer costs ~50–100% slowdown, Valgrind is much slower), and how record‑and‑replay (rr using retired‑branch counters; Live Recorder using binary translation) captures non‑determinism — rr misses AMD/cloud cases. Demos reproduce a cache corruption by reversible debugging and show a Coverity custom checker; Coverity historically found hundreds of Linux kernel defects (e.g., 968 dead‑code fixes).

AI-written summary · about

  1. 0:00Introduction
  2. 1:01Debugging philosophies
  3. 5:47GDB and signal handling
  4. 11:57Ptrace operations
  5. 18:26DWARF debug info
  6. 25:58Unwinding and catchpoints
  7. 30:14Dynamic analysis tools
  8. 33:34Record and replay debugging
  9. 42:07Static analysis with Coverity
  10. 50:57Custom checker demo
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.