# WARNING: DATA RACE
Write at 0x00c0000b4010 by goroutine 7:
  main.main.func1()
Previous read at 0x00c0000b4010 by main goroutine:

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

## Root Cause

A shared variable is read and written by different goroutines without synchronization. Go's memory model gives no ordering guarantees, so torn reads and stale values occur.

## Version Compatibility

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

## Workarounds

1. **** (97% success)
   ```
   var mu sync.Mutex
var counter int
mu.Lock()
counter++
mu.Unlock()
   ```
2. **** (96% success)
   ```
   var counter atomic.Int64
counter.Add(1)
_ = counter.Load()
   ```

## Dead Ends

- **** — Hides the symptom; the underlying race can corrupt memory or produce wrong results silently. (92% fail)
- **** — Go has no volatile keyword; the compiler and CPU may still reorder accesses. (98% fail)
