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

JIT: Assertion failed 'arg->OperIsStore() || arg->OperIsCopyBlkOp()' in PGO testing #68472

Closed
AndyAyersMS opened this issue Apr 24, 2022 · 2 comments · Fixed by #68481
Closed
Assignees
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Comments

@AndyAyersMS
Copy link
Member

x64 windows. seems to be a recent regression

5 different legs hit this error. https://dev.azure.com/dnceng/public/_build/results?buildId=1735161&view=ms.vss-test-web.build-test-results-tab

This one is probably the simplest to repro:

set COMPlus_TieredCompilation=1
set COMPlus_ReadyToRun=0
set COMPlus_TC_QuickJitForLoops=1
set COMPlus_TieredPGO=1

C:\h\w\ACB30978\w\B2480937\e>dotnet C:\h\w\ACB30978\p\xunit\xunit.console.dll JIT\Regression\JIT.Regression.XUnitWrapper.dll -parallel collections -nocolor -noshadow -xml testResults.xml -trait TestGroup=JIT.Regression 
Microsoft.DotNet.XUnitConsoleRunner v2.5.0 (64-bit .NET 6.0.0-rtm.21522.10)
  Discovering: JIT.Regression.XUnitWrapper (method display = ClassAndMethod, method display options = None)
  Discovered:  JIT.Regression.XUnitWrapper (found 611 of 1595 test cases)
  Starting:    JIT.Regression.XUnitWrapper (parallel test collections = on, max threads = 4)
    JIT\Regression\JitBlue\Runtime_56953\Runtime_56953\Runtime_56953.cmd [FAIL]
      
      Assert failure(PID 84 [0x00000054], Thread: 3936 [0x0f60]): Assertion failed 'arg->OperIsStore() || arg->OperIsCopyBlkOp()' in 'System.String:SplitInternal(System.ReadOnlySpan`1[Char],int,int):System.String[]:this' during 'Lowering nodeinfo' (IL size 224; hash 0x1e680f85; Tier0-FullOpts)
      
          File: D:\a\_work\1\s\src\coreclr\jit\lower.cpp Line: 6428
          Image: C:\h\w\ACB30978\p\corerun.exe

cc @dotnet/jit-contrib

@dotnet-issue-labeler dotnet-issue-labeler bot added area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI untriaged New issue has not been triaged by the area owner labels Apr 24, 2022
@ghost
Copy link

ghost commented Apr 24, 2022

Tagging subscribers to this area: @JulieLeeMSFT
See info in area-owners.md if you want to be subscribed.

Issue Details

x64 windows. seems to be a recent regression

5 different legs hit this error. https://dev.azure.com/dnceng/public/_build/results?buildId=1735161&view=ms.vss-test-web.build-test-results-tab

This one is probably the simplest to repro:

set COMPlus_TieredCompilation=1
set COMPlus_ReadyToRun=0
set COMPlus_TC_QuickJitForLoops=1
set COMPlus_TieredPGO=1

C:\h\w\ACB30978\w\B2480937\e>dotnet C:\h\w\ACB30978\p\xunit\xunit.console.dll JIT\Regression\JIT.Regression.XUnitWrapper.dll -parallel collections -nocolor -noshadow -xml testResults.xml -trait TestGroup=JIT.Regression 
Microsoft.DotNet.XUnitConsoleRunner v2.5.0 (64-bit .NET 6.0.0-rtm.21522.10)
  Discovering: JIT.Regression.XUnitWrapper (method display = ClassAndMethod, method display options = None)
  Discovered:  JIT.Regression.XUnitWrapper (found 611 of 1595 test cases)
  Starting:    JIT.Regression.XUnitWrapper (parallel test collections = on, max threads = 4)
    JIT\Regression\JitBlue\Runtime_56953\Runtime_56953\Runtime_56953.cmd [FAIL]
      
      Assert failure(PID 84 [0x00000054], Thread: 3936 [0x0f60]): Assertion failed 'arg->OperIsStore() || arg->OperIsCopyBlkOp()' in 'System.String:SplitInternal(System.ReadOnlySpan`1[Char],int,int):System.String[]:this' during 'Lowering nodeinfo' (IL size 224; hash 0x1e680f85; Tier0-FullOpts)
      
          File: D:\a\_work\1\s\src\coreclr\jit\lower.cpp Line: 6428
          Image: C:\h\w\ACB30978\p\corerun.exe

cc @dotnet/jit-contrib

Author: AndyAyersMS
Assignees: -
Labels:

area-CodeGen-coreclr, untriaged

Milestone: -

@jakobbotsch
Copy link
Member

I'm guessing it's from #68140, I removed an IsNothingNode() check from that assert. I must have missed changing this place to make it null instead of GT_NOP.

@jakobbotsch jakobbotsch self-assigned this Apr 24, 2022
@jakobbotsch jakobbotsch removed the untriaged New issue has not been triaged by the area owner label Apr 25, 2022
jakobbotsch added a commit to jakobbotsch/runtime that referenced this issue Apr 25, 2022
Under JitRepeatOpts we sometimes turn early-arg stores into GT_NOP
nodes.

Fix dotnet#68472
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Apr 25, 2022
jakobbotsch added a commit that referenced this issue Apr 25, 2022
Under JitRepeatOpts we sometimes turn early-arg stores into GT_NOP
nodes.

Fix #68472
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Apr 25, 2022
@ghost ghost locked as resolved and limited conversation to collaborators May 25, 2022
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
None yet
Development

Successfully merging a pull request may close this issue.

2 participants