You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug OptionsManager holds several data structures that can be updated by different threads. Since vcsim uses a single OptionsManager per host, it can race when two threads are updating it at the same time.
To Reproduce
Instantiate vcsim
Have two threads race to update OptionsManager Settings on the same host.
Eventually, observe the race using your favorite tooling.
Expected behavior
No races to update the same data structures in OptionsManager.
As described in vmware#2906, `OptionsManager` is racy as calls to its internal
data structures are unsynchronized. When multiple threads are making
calls to `OptionsManager`, they can race against each other.
This change protects these data structures with a mutex, to avoid the
race conditions.
Closes: vmware#2906
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Mark as fresh by adding the comment /remove-lifecycle stale.
Describe the bug
OptionsManager
holds several data structures that can be updated by different threads. Since vcsim uses a singleOptionsManager
per host, it can race when two threads are updating it at the same time.To Reproduce
OptionsManager
Settings on the same host.Expected behavior
No races to update the same data structures in
OptionsManager
.Affected version
0.27.4
Screenshots/Debug Output
The text was updated successfully, but these errors were encountered: