matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: Provider map race condition in main model

Open andrinoff opened this issue 7 months ago • 1 comments

Describe the bug Provider map at main.go:130-145 accessed without locking in getProvider() while other goroutines modify in initProviders(). Classic race condition.

To reproduce

  1. Build with -race flag
  2. Run matcha with multiple accounts
  3. Race detector reports concurrent map access

Expected behavior Use sync.RWMutex to protect provider map access

Matcha version master

OS All

Additional context File: main.go lines 130-145 Concurrent map access without sync

andrinoff avatar Apr 21 '26 14:04 andrinoff

/assign

mavonx avatar May 10 '26 18:05 mavonx