# panic: <custom message> [recovered by no one] — process exits with non-zero status

- **ID:** `go/panic-in-goroutine-crashes-process`
- **Domain:** go
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

An unrecovered panic in any goroutine terminates the entire program. Unlike some languages, Go does not isolate goroutine panics.

## Version Compatibility

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

## Workarounds

1. **** (90% success)
   ```
   Add 'defer func(){ recover() }()' as the first statement inside every goroutine
   ```
2. **** (85% success)
   ```
   Use errgroup and convert panics to errors via a recover wrapper around each task
   ```

## Dead Ends

- **** — Sub-goroutine panics still escape and crash the process (85% fail)
- **** — init runs in the main goroutine; cannot catch other goroutines (95% fail)
