Skip to content
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

Fix 48403 - Assertion failed 'call->gtControlExpr == nullptr' #48503

Merged
merged 1 commit into from
Feb 25, 2021

Conversation

briansull
Copy link
Contributor

@briansull briansull commented Feb 19, 2021

In method fgMorphCopyBlock don't call gtCloneExpr on the addrSpill
We also don't call fgMorphTree on the addrSpill tree as well

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Feb 19, 2021
@briansull

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@briansull

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

Copy link
Member

@AndyAyersMS AndyAyersMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The morph changes seem unrelated to fixing the assert. Should they be PR'd separately?

@briansull

This comment has been minimized.

@briansull

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@briansull

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@briansull

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@JulieLeeMSFT JulieLeeMSFT added this to the 6.0.0 milestone Feb 22, 2021
@briansull

This comment has been minimized.

@briansull

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

 - Don't use gtCloneExpr on trees that have persistent side effects
 - Don't call gtCloneTree or fgMorpgTree when we have an addrSpill case
@briansull
Copy link
Contributor Author

/azp run runtime-coreclr jitstress

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@briansull
Copy link
Contributor Author

I have reworked this fix.
It is now a minimal fix that fixes the issue.

  • In method fgMorphCopyBlock don't call gtCloneExpr on the addrSpill
  • We also don't call fgMorphTree on the addrSpill tree as well

This is ready for checkin now.
@AndyAyersMS @sandreenko PTAL

Copy link
Member

@AndyAyersMS AndyAyersMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Thanks for reconsidering how to fix this.

@briansull
Copy link
Contributor Author

The only failures that I see in the JitStress runs are due to
eventpipe\eventsvalidation\ThreadPool\ThreadPool.cmd

Which is a currently known issue: #48727

@briansull briansull merged commit 9cfe696 into dotnet:master Feb 25, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Mar 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Assertion failed 'call->gtControlExpr == nullptr' in 'System.Text.Json.JsonParameterInfo1[Nullable1]
3 participants