Settings

Theme

The Lock Nobody Held: Deadlocking a Tokio Mutex Without Holding a Lock

e6data.com

2 points by g0xA52A2A 3 days ago · 1 comment

Reader

samyaks 3 days ago

Author here. I can answer questions if any.

On posting this to Reddit, a person pointed me to Oxide's RFD 609, which describes this exact issue. If only I had read it before writing the code that led to this bug. Oxide calls this scenario "Futurelock". If you have already read that, what my post can give you are links to tokio's source code where they implement this waiter queue for their mutex.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection