debug the deadlock