-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
IOException when creating a global mutex on macOS #100135
Comments
I'm not sure whether this is actionable without more information. What version of framework was used to run the app? I went all the way back to .NET 6 and the |
@filipnavara Unfortunately, I don't have more information, apart from it being .Net 6+. Though that exception message is associated with |
Hi @filipnavara, I'm the guy who opened the original issue. My app's target framework is net7.0 (installed SDKs are 7.0.311 and 7.0.313). Please let me know what other info you would like. |
I have experience this, too, on .NET 8.0.6 on macOS. Same stack trace. |
Description
We have a customer that reported getting the following exception when our code is creating a global named
Mutex
on macOS (see postsharp/Metalama#272):The exception happened consistently, but did not reoccur after restarting the machine, so it seems it's caused by some corrupted temporary state.
What could have caused this situation? Could it be a bug in our code, or a bug in the macOS implementation of
Mutex
? What should we do to avoid this problem in the future?Reproduction Steps
I do not have a reproduction. The relevant code on our side is here, but it boils down to:
Expected behavior
Either the exception is not thrown at all, or there is more information on the actual cause of the exception.
Actual behavior
The exception described above is thrown.
The text was updated successfully, but these errors were encountered: