trying find deadlock bug