~/talk

A Series of Unfortunate Bugs

Talkat CppCon 2019 · 2019-09-15..09-20· [software-architecture]
links:none on file
slides:none on file

Four post-mortems show real failures and concrete fixes: an integer-promotion undefined behavior causes a decade-old database crash and is fixed with a one-liner fix (promote to 64-bit); a 32-bit release-only crash stems from a static buffer overflow that corrupts adjacent stack data after function inlining; a sporadic startup deadlock comes from GCC 4.2 global mutex interaction with local static initialization; a refactor breaks assumptions around setjmp/longjmp, causing undefined behavior. Debugging uses gdb watchpoints, regression isolation, Valgrind, address sanitizer and better logs; lessons stress sanitizers, pair debugging, and post-mortems.

AI-written summary · about

  1. 0:00Intro
  2. 0:14A Series of Unfortunate Bugs Satabdi Das
  3. 1:15Simple Bugs Complex Behaviors
  4. 6:19A simple bug A simple fix!
  5. 6:37What did I learn?
  6. 9:13Have helpful logs!
  7. 13:27Right tools & safer coding!
  8. 13:56No shotgun debugging!
  9. 18:35Difficult to reason Code review or tools not helpful
  10. 19:07Talk about your bugs!
  11. 19:40Memory helps you find creative solution to a problem
  12. 20:11Refactoring bug!
  13. 21:09Crash in the optimized executable!
  14. 22:08Undefined behavior
  15. 22:44Debugging Principles
  16. 24:15C++ is for smart people
  17. 24:55C++ is for hard working people
  18. 25:21Start talking Stop the culture of blaming Believe that you can fix the bug
  19. 26:10See an unfortunate bug?
~/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.