Repository navigation
Conversation
…kpoint When an app is debugged with a managed-only debugger, a breakpoint instruction executed by native code in the app (for example a profiler or native library calling DebugBreak when a debugger is attached) can go unhandled and terminate the app with 0x80000003. Continue past such breakpoints instead. Setting DOTNET_DbgSkipUnhandledNativeBreakpoint=0 in the debugger's environment restores the previous behavior. Also keep runtime startup intact when a breakpoint during startup is continued. This is a speculative fix for dotnet#137466. Co-authored-by: Copilot <[email protected]> Copilot-Session: 6bc78aaf-5d8c-4be8-ba2f-5a50fa39b7cd
|
Azure Pipelines: Successfully started running 3 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @steveisok, @tommcdon, @dotnet/dotnet-diag |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When an app is debugged with a managed-only debugger, a breakpoint instruction executed by native code in the app (for example, a profiler or native library that calls
DebugBreakwhen it detects an attached debugger) can go unhandled and terminate the app with exit code0x80000003. With this change, execution continues past such breakpoints so the debug session stays alive. Mixed-mode (native + managed) debugging is unchanged.Setting
DOTNET_DbgSkipUnhandledNativeBreakpoint=0in the debugger's environment restores the previous behavior.This is a speculative fix for the issue described in #137466. The root cause of the customer reports has not been confirmed yet.
Validation (Windows x64, Debug):
build.cmd clr -c Debug -a x64succeeds.DebugBreak/__debugbreakwhile a managed-only debugger is attached terminates with0x80000003without this change, and continues and exits normally with it.No tests are included in this PR; coverage is being added to the internal debugger test suite.