Skip to content

BUG: Provider map race condition in main model #766

@andrinoff

Description

@andrinoff

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingciCI / build pipelinegood first issueGood for newcomers

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions