-
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
Assert debugging System.Private.CoreLib
in DEBUG
build
#108951
Comments
Tagging subscribers to this area: @tommcdon |
/cc @dotnet/dotnet-diag |
Thanks Aaron! @jeffschwMSFT - heads up, it looks like there was a bug in #108809 which was recently merged to .NET 9 release. Its not known yet whether the issue would be ultimately problematic for customers, but its possible. The fix in 108809 is intended to only activate for breakpoints on CALL opcodes when CET is enabled or the user opted-in via environment variable. However it appears that in cases where the fix was not intended to activate the variable which controls activation remains uninitialized rather than being explicitly set FALSE. This means the fix might activate in scenarios that we didn't consider or explicitly test for. Thinking about it for a few minutes I'm not aware of any obvious problem this would create, but at minimum there is a new source of risk that wasn't initially included in the decision to take the fix. I think the lower risk option is to make a quick 2nd fix to deterministically initialize the variable so I'm going to prioritize that route. The alternative is to leave the code as-is but increase the testing to prove that randomly enabling fix outside of its intended scope didn't create a problem. |
Exploratory testing with a private build where the m_fInPlaceSS variable is always initialized to true caused numerous failures (ExecutionEngineExceptions) in debugging tests. I haven't had time to investigate the exact sequence of events that leads to the failure and user error is of course possible but the conservative interpretation is that as-is we've got a non-deterministic crash bug in most debugging scenarios. |
Fixed by #109008 |
Looks like this was introduced in #108809
Running with the following:
/cc @tommcdon
The text was updated successfully, but these errors were encountered: