Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Sep 1, 2021

Backport of #58467 to release/6.0-rc1

/cc @lambdageek @thaystg

The WebView calls back into the runtime on a native thread that the runtime has not seen before. The callback goes through a wrapper method. The wrapper method is responsible for registering the thread with the runtime. We were incorrectly inserting debugger sequence points in the wrapper method. As a result, if the debugger begins a suspend (which turns on single stepping - which relies on sequence points), the unregistered thread would call back to the debugger which would crash because we have no info about the thread.

Customer Impact

Android apps that embed a WebView are running in a debugger and are using the Mono interpreter (default for .NET 6 Debug configurations), may crash at startup.

Testing

Manual testing.

Risk

Low. We already support not adding debugger sequence points in some wrapper methods. This PR adds prevents sequence points from being added to one additional type of wrapper method.

@ghost ghost added the area-Codegen-JIT-mono label Sep 1, 2021
@marek-safar marek-safar added the Servicing-consider Issue for next servicing release review label Sep 1, 2021
@mmitche mmitche added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Sep 1, 2021
@mmitche mmitche merged commit d7619cd into release/6.0-rc1 Sep 1, 2021
@mmitche mmitche deleted the backport/pr-58467-to-release/6.0-rc1 branch September 1, 2021 17:08
@ghost ghost locked as resolved and limited conversation to collaborators Oct 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Codegen-JIT-mono Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants