-
Notifications
You must be signed in to change notification settings - Fork 4.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
Assembly.Location returns /
instead of the actual path intermittently
#90657
Comments
Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov Issue DetailsLarge internal Microsoft workload observed
|
I suspect that this is a race condition caused by One thread can be changing the encoding from UTF8 to UTF16 while the other thread is operating on the string. The other thread may see encoding set to UTF8, but the actual payload can be converted to UTF16 already. It would explain how the method can return @AaronRobinsonMSFT @jkoritzinsky You are familiar with how SString works. Would you mind reviewing all places that access |
/
intermittently/
instead of the actual path intermittently
the race wouldnt be Linux specific would it? |
Depends. We have many Windows vs. non-Windows ifdefs in the vm. The race condition can be triggered by a code under non-Windows ifdef. |
It is also possible, quite likely actually, this is on all platforms and the Linux workload in question was simply the first to find it. |
Large internal Microsoft workload observed
Assembly.Location
sometimes returning/
instead of the actual path after upgrading to recent .NET 8 build on Linux.The text was updated successfully, but these errors were encountered: