dotnet concurrency_error ai_generated true

Thread deadlock detected: all threads blocked

ID: dotnet/deadlock-detection

Also available as: JSON · Markdown
75%Fix Rate
80%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
8 active

Root Cause

Thread deadlock from mixing async/sync code.

generic

Workarounds

  1. 92% success Use async all the way: await instead of .Result/.Wait()
  2. 88% success Use ConfigureAwait(false) in library code

Dead Ends

Common approaches that don't work:

  1. Use .Result or .Wait() on async code 90% fail

    Root cause of async deadlocks

  2. Use ConfigureAwait(false) everywhere blindly 72% fail

    May miss context in UI apps