A Debugging Odyssey
· 1h 35m
A Debugging Odyssey We've been hosting a live show weekly on Mondays at 5p for about an hour, and recording them all; here is the recording from December 19th, 2022 . In addition to Bryan Cantrill and Adam Leventhal , our special guest was Dave Pacheco .
Chapters
- Opening banter and sound check
- Guest Dave Pacheco joins the show
- How the Go runtime bug began
- Tracking many failure modes was hard
- Similar past flake at Fishworks
- Heuristic debugging and blind alleys
- Switching to the Go memory allocator
- Learning the Go runtime deeply
- Why memory corruption raised the stakes
- Reading allocator code to understand it
- Shrinking the reproduction workload
- Teaching MDB about Go structures
- DTrace tracing of allocations
- Wanting a loop-until-failure tool
- False lead: FS base in set context
- Go's heavy use of signals
- Breakthrough: inverted allocation bits
- Tracing back to unsaved YMM registers
- Reproducing with signals and DTrace
- Confirming the fix with a patched binary
- Signal state growth in CPUs
- Was there a walk-off moment
- Impact of the corruption and lessons
- Wrap-up and next week's plans
Speakers
Bryan Cantrill (host), Adam Leventhal (host), Dave Pacheco, Josh, Robert, Other voices (clip)
From the transcript
I'm back. How do I sound? I'm good. I sound better? Yes, much better. Are you just saying that or do I actually sound better? No, no, no. You sound better. You sound better. I mean, you look good. I mean, you look fine. I mean, for you…