-
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
Assertion failed 'assertion->op2.u1.iconFlags != GTF_EMPTY' #70790
Comments
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch Issue DetailsFailure in: pipeline: runtime-coreclr libraries-jitstressregs
@dotnet/jit-contrib
|
Presumably from #70521, cc @SingleAccretion |
Indeed looks related; I am taking a look already. |
So, as suspected, the assert has been surfaced by #70521, however, the cause has been there for a long time. In the dump (for the failure listed in the issue) we have the following tree (reconstructed manually): EQ
IND
LCL_VAR ref
COMMA
ASG
LCL_VAR V39
COMMA
ASG
LCL_VAR V114
CNS_INT 0x7F28B60008 $H // Neither this node nor $H are handles
ADD $H // Notice this is wrong (doesn't include the offset)
LCL_VAR V114 $H
CNS_INT 0xD70
LCL_VAR V39 As can be seen, CSE created a "base" VN with its "shared const" functionality, and that base VN was incorrectly assigned to the runtime/src/coreclr/jit/optcse.cpp Line 3266 in 4c6b53b
One thing that is not clear to me is how did the "base" VN turn out not to be a handle -- they're selected from values present in IR, it seems highly unlikely that user code could contain a non-handle value which was that close. Notably, CSE itself loses the "handle-ness" when it creates the "base" constant node, but here the source VN was not a handle. Will continue the investigation tomorrow. Edit: the "base" VN originated from a module ID (some VM pointer) that is not a handle. |
Failure in:
pipeline: runtime-coreclr libraries-jitstressregs
net7.0-Linux-Release-arm64-CoreCLR_checked-jitstressregs3
System.Text.Json.SourceGeneration.Roslyn3.11.Unit.Tests
https://dev.azure.com/dnceng/public/_build/results?buildId=1825354&view=ms.vss-test-web.build-test-results-tab&runId=48379878&paneView=debug&resultId=192608
@dotnet/jit-contrib
The text was updated successfully, but these errors were encountered: