You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect the program to complete here (because
we've recovered from the Unlock panic so the mutex
should not be locked) but it actually
deadlocks before the failed unlock locked the
mutex.
The text was updated successfully, but these errors were encountered:
I would expect the program to complete here (because
we've recovered from the Unlock panic so the mutex
should not be locked) but it actually
deadlocks before the failed unlock locked the
mutex.
—
Reply to this email directly or view it on GitHub #13879.
This issue has nothing related to channels, it is just that you can't lock a bad mutex.
Here is a simpler example without channels: https://play.golang.org/p/Xt76u_Tm7w
Not necessarily bad behaviour but unexpected:
http://play.golang.org/p/OrPRAXnkdA
I would expect the program to complete here (because
we've recovered from the Unlock panic so the mutex
should not be locked) but it actually
deadlocks before the failed unlock locked the
mutex.
The text was updated successfully, but these errors were encountered: