-
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
JITted code throws NullRefException in release #56980
Comments
Took a quick look; proximate cause is that VN thinks the base of an indir is null, and that feeds a nullcheck, so the codegen above is the nullcheck of a null.
Now WHY VN thinks that is not immediately clear.... likely we are missing something when modelling the memory updates done earlier in the method, and so think that bit of the struct was not explicitly initialized. |
Think the issue may originate here:
We seem to lose the fact that we're storing to the |
@sandreenko if this is similar to issues you're already working on, do you want to take this over? |
@sandreenko if this is similar to issues you're already working on, do you want to take this over? sure. |
Run on x64 Windows:
Disassembly looks quite strange:
cc @dotnet/jit-contrib
The text was updated successfully, but these errors were encountered: