# WARNING: DATA RACE
Write at 0x00c0000... by goroutine N:

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

## Root Cause

Two goroutines access the same memory location concurrently, at least one is a write, and there is no synchronization; detected when running with -race.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.1+ | active | — | — |

## Workarounds

1. **** (93% success)
   ```
   Protect the shared variable with sync/atomic:
atomic.AddInt64(&counter, 1)
v := atomic.LoadInt64(&counter)
   ```
2. **** (95% success)
   ```
   Guard the critical section with a sync.Mutex and keep the section minimal.
   ```

## Dead Ends

- **** — Hides the symptom; the race still corrupts data in production and can cause random crashes. (90% fail)
- **** — Atomic on only one side does not establish a happens-before relationship; the race persists. (80% fail)
