# fatal error: all goroutines are asleep - deadlock! (goroutine 1 [select (no cases))])

- **ID:** `go/select-on-nil-channel`
- **Domain:** go
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A select statement with all nil channels blocks forever because nil channels are never ready.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.19 | active | — | — |
| 1.22 | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   ch1 := make(chan int)
ch2 := make(chan int)
select {
case v := <-ch1:
    //
case v := <-ch2:
    //
}
   ```
2. **** (90% success)
   ```
   select {
case v := <-ch:
    //
case <-time.After(time.Second):
    // timeout
}
   ```

## Dead Ends

- **** — Default case may execute incorrectly and not handle the intended communication. (70% fail)
- **** — Sleeping doesn't resolve the block; the select still blocks. (90% fail)
