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

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

## Root Cause

Two goroutines accessed the same memory location concurrently, at least one being a write, without synchronization. Detected when running with the -race flag.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   var mu sync.Mutex
mu.Lock()
counter++
mu.Unlock()
   ```
2. **** (90% success)
   ```
   var counter int64
atomic.AddInt64(&counter, 1)
n := atomic.LoadInt64(&counter)
   ```

## Dead Ends

- **** — The race still exists in production and can cause corrupted data or crashes; the flag only hides detection. (95% fail)
- **** — Mixing atomic and non-atomic access to the same variable is itself a race and still flagged by the detector. (80% fail)
