~/talk

“Debugging Linux C++”

Talkat CppCon 2018 · 2018-09-23..09-28· [linux-and-operating-systems]
name:Greg Law
linkedin:gregthelaw
slides:none on file

Demos show specific Linux C++ techniques: GDB reverse debugging (process record) and dynamic printf plus Python scripting to call inferiors, set conditional/watch breakpoints and inspect optimized builds; valgrind (memcheck) with its vgdb server to drop into GDB for uninitialized-memory traces; AddressSanitizer finds out‑of‑bounds far faster than valgrind; rr provides much faster, replayable traces but needs modern Intel PMU support; ftrace/strace/ltrace and /proc prove a mysterious SIGKILL and reveal where the bug corrupts the stack.

AI-written summary · about

  1. 0:00Introduction to debugging
  2. 2:53Debugging history and tools
  3. 10:40GDB overview and features
  4. 11:56Using GDB TUI mode
  5. 14:21GDB Python scripting
  6. 18:45GDB signals and breakpoints
  7. 23:31Watchpoints in GDB
  8. 25:28Multi-threaded debugging
  9. 27:04Dynamic printf in GDB
  10. 30:02Advanced GDB capabilities
  11. 33:16Debugging optimized code
  12. 35:04Valgrind for memory errors
  13. 41:25Address sanitizer tools
  14. 44:04Reversible debugging
  15. 50:51Ftrace for system events
  16. 55:11Strace and Ltrace
  17. 56:41Perf and compiler checks
~/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.