# WARNING: DATA RACE
Write at 0x00c0000b4010 by goroutine 7:
  main.increment()
      /app/main.go:12 +0x44

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

## Root Cause

The race detector observed unsynchronized concurrent access to the same memory. Common with shared counters, slices, or struct fields accessed from multiple goroutines.

## Version Compatibility

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

## Workarounds

1. **** (97% success)
   ```
   var mu sync.Mutex
func inc() {
    mu.Lock()
    counter++
    mu.Unlock()
}
   ```
2. **** (95% success)
   ```
   var counter int64
atomic.AddInt64(&counter, 1)
   ```

## Dead Ends

- **** — The bug still exists; you just stop seeing reports while corrupt data and crashes continue. (95% fail)
- **** — Yielding does not provide memory ordering or mutual exclusion; races remain. (90% fail)
