Miri catches data race in lock-free Rust ring buffer that tests and loom missed

blaizedsouza · x · 2026-09-08

A deep-dive blog post on a hidden bug in ringmpsc, a lock-free MPSC channel built on ring decomposition. The code passed a full test suite, Quint model checking, loom's exhaustive interleaving search, and cargo Miri, yet contained undefined behavior from day one: a genuine data race despite disjoint slots per thread and correct atomics.

Original post →

More from coding & agent

coding & agent channel →