# panic: io: read/write on closed pipe

- **ID:** `go/io-copy-buffer-panic`
- **Domain:** go
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Attempting to read from or write to an io.Pipe after it has been closed.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.16 | active | — | — |

## Workarounds

1. **** (85% success)
   ```
   Check if the pipe is closed before performing I/O operations.
   ```
2. **** (90% success)
   ```
   Use defer to close the pipe properly and handle errors.
   ```

## Dead Ends

- **** — Panics cannot be ignored; they crash the program. (95% fail)
- **** — The buffer size is unrelated to the pipe's closed state. (90% fail)
