-
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
.NET 9 Applications can randomly freeze when being debugged #112747
Comments
Tagging subscribers to this area: @tommcdon |
Hi, I'm the one who reported this issue initially. I'm still seeing the problem a few times a day, let me know if I can try any settings or send you any information that could help you track this down. |
Hi @Ollhax! We have a speculative fix for the issue. Would you mind giving it a try to determine if it resolves the issue? I suggest testing on a non-production machine as these are test-only binaries I built locally. To test the changes:
After testing is complete, please restore the original clrjit.dll, coreclr.dll, mscordaccore.dll, mscordbi.dll, System.Private.CoreLib.dll back to %ProgramFiles%\dotnet\shared\Microsoft.NETCore.App\9.0.2, and re-enable debugger library signing checks. |
Alright, I'll give this a try tomorrow 👍 |
Description
Debugging a .NET 9 application with Visual Studio can randomly end up freezing the debuggee.
See this issue
Reproduction Steps
Debug an application with many threads that exit while trying to step through code.
Expected behavior
Debuggee does not freeze.
Actual behavior
Debuggee gets stuck with the runtime waiting for all threads to synchronize, but one of the threads being waited has exited so it will never complete.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: