Abolish Lock Poisoning
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
Rust's std::sync::Mutex poisons itself when a thread panics while holding it, so every later lock() returns an error. The author argues this feature should be removed or made the exception, citing real codebases where poisoning caused outages, deadlocks through PoisonError guards, and rarely any correct recovery.