# WARNING: DATA RACE
Write at 0x00c0000b4010 by goroutine 5:

- **ID:** `go/race-detector-data-race`
- **Domain:** go
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Two goroutines access the same memory location without synchronization, and at least one is a write. Detected only when the binary is built with -race.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   var counter atomic.Int64
counter.Add(1)
n := counter.Load()
   ```
2. **** (92% success)
   ```
   ch := make(chan int)
go func() { ch <- compute() }()
result := <-ch
   ```

## Dead Ends

- **** — Hides the symptom; the race still corrupts data nondeterministically. (95% fail)
- **** — Yielding does not create a happens-before relationship; race remains. (90% fail)
