-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Adding null check to avoid abort when invalid IL is encountered #57522
Conversation
When a callvirt instruction is encountered on a static method, there is a hard abort/crash. This commit avoids the problem.
Here is a small program that shows the abort.
From this sample, the real problem is probably that |
Can we sync this with the Mono repo as well? |
/azp run sync-runtime-to-mono |
Azure Pipelines successfully started running 1 pipeline(s). |
@bholmes looks like the bot couldn't do the backport to mono/mono for some reason - could you open a PR manually |
|
The wasm test failures are caused by #57501. |
backport to .net6.0? |
/backport to release/6.0-rc1 |
Started backporting to release/6.0-rc1: https://github.com/dotnet/runtime/actions/runs/1147170411 |
When a callvirt instruction is encountered on a static method, there is
a hard abort/crash. This commit avoids the problem.