Efficient use of rr to Analyze and Fix MemorySanitizer Errors
summary
Compares Valgrind, AddressSanitizer and MemorySanitizer and shows a workflow using RR record/replay plus sanitizer output to find a real bug: run RR to produce a trace, set a data watchpoint on the sanitizer’s shadow byte mapping, reverse-continue to the write that created the uninitialized value, and inspect why a field (block_length) was left unset. Reports >1,000x RR slowdown in extreme debug builds, uses MSan to discover missing initialization and fixes it by initializing adjacent fields so the compiler emits a wide write.
AI-written summary · about
