BurtonQin / lockbud

Statically detect memory, concurrency bugs and possible panic locations for Rust.
BSD 3-Clause "New" or "Revised" License
445 stars 25 forks source link

FPs with RwLock::read_recursive #33

Closed BurtonQin closed 2 years ago

BurtonQin commented 2 years ago

parking_lot provides an API called RwLock::read_recursive, which allows recursively acquiring read locks. This kind of FPs is found in https://github.com/Conflux-Chain/conflux-rust

A possible solution is to track the gen places of parking_lot read locks. If it is read_recursive, then do not report double-read-lock bugs.