# fatal error: all goroutines are asleep - deadlock! (select with no cases)

- **ID:** `go/select-empty-deadlock`
- **Domain:** go
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A select statement with no cases blocks forever, and if all goroutines are blocked, the runtime detects deadlock.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.0+ | active | — | — |

## Workarounds

1. **** (98% success)
   ```
   select {
case <-ch:
    // handle
}
   ```
2. **** (95% success)
   ```
   select {
case <-done:
    return
case <-ch:
    // handle
}
   ```

## Dead Ends

- **** — Default case may cause busy loop and still not solve logical deadlock (60% fail)
- **** — Sleep does not help; select with no cases is invalid (90% fail)
