# fatal error: all goroutines are asleep - deadlock! (goroutine 1 [chan send])

- **ID:** `go/goroutine-leak-no-receiver`
- **Domain:** go
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A goroutine is stuck sending to a channel with no active receiver, and the main goroutine is waiting for it, causing a deadlock.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.20 | active | — | — |
| 1.21 | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   ch := make(chan int); go func() { <-ch }(); ch <- 42
   ```
2. **** (85% success)
   ```
   ch := make(chan int, 1); ch <- 42
   ```

## Dead Ends

- **** — If sender sends more than buffer size, it still blocks without receiver. (75% fail)
- **** — Sleep doesn't add a receiver; block remains after sleep. (90% fail)
