-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_env_get_set_multithreaded fails with Miri on Windows #124411
Comments
Yes |
Does Windows guarantee that if a thread sees an environment variable set by another thread, then there is a happens-before relationship between these operations and so other shared state can be accessed without data races? If yes, does this require one thread to read the same variable that another thread set, or does any kind of access to the environment induce such synchronization? I am inclined to just make accesses to the environment basically the equivalent of relaxed atomics, and not induce any synchronization. |
I know it uses a critical section when updating the environment. However, I'm not aware of any stated guarantees and searching the docs didn't turn up anything relevant. |
env: split up Windows and Unix environment variable handling On Windows, manage them entirely outside the AM state; this also means we no longer report any data races for environment variable memory. Fixes rust-lang/rust#124411
env: split up Windows and Unix environment variable handling On Windows, manage them entirely outside the AM state; this also means we no longer report any data races for environment variable memory. Fixes rust-lang#124411
env: split up Windows and Unix environment variable handling On Windows, manage them entirely outside the AM state; this also means we no longer report any data races for environment variable memory. Fixes rust-lang#124411
Now... I seem to remember something about the Windows API actually being thread-safe? So this is probably a bug in Miri, which not report data races from concurrent environment accesses on Windows? @ChrisDenton is that right?
The text was updated successfully, but these errors were encountered: