dotnet
concurrency_error
ai_generated
true
Thread deadlock detected: all threads blocked
ID: dotnet/deadlock-detection
75%Fix Rate
80%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 8 | active | — | — | — |
Root Cause
Thread deadlock from mixing async/sync code.
genericWorkarounds
-
92% success Use async all the way: await instead of .Result/.Wait()
-
88% success Use ConfigureAwait(false) in library code
Dead Ends
Common approaches that don't work:
-
Use .Result or .Wait() on async code
90% fail
Root cause of async deadlocks
-
Use ConfigureAwait(false) everywhere blindly
72% fail
May miss context in UI apps