You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Assertion failed '(emitThisGCrefRegs & regMask) == 0' during 'Emit code' (IL size 129) #65311
The following program hits a JIT assert on win-x86.
Reproduction Steps
// Generated by Fuzzlyn v1.5 on 2022-02-13 16:58:00// Run on X86 Windows// Seed: 17417076199071509021// Reduced from 70.5 KiB to 0.7 KiB in 00:02:32// Hits JIT assert in Release:// Assertion failed '(emitThisGCrefRegs & regMask) == 0' in 'Program:Main(Fuzzlyn.ExecutionServer.IRuntime)' during 'Emit code' (IL size 129)// // File: D:\a\_work\1\s\src\coreclr\jit\emitxarch.cpp Line: 12182// publicclassC0{publicintF1;publicshortF2;}publicclassProgram{publicstaticlongs_1;publicstaticC0s_3;publicstaticvoidMain(){boolvr0=default(bool);s_3.F2=s_3.F2++;if(!vr0){if(vr0){vr0=s_3.F2<=s_3.F1;shortvr2=(short)s_1;sbytevr1=(sbyte)vr2;try{vr1>>=s_3.F1;}finally{vr0=vr0;}System.Console.WriteLine(vr1);}}System.Console.WriteLine(vr0);}}
Expected behavior
No assert hit.
Actual behavior
Assert hit.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
Activity
ghost added
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Activity
EgorBo commentedon Feb 14, 2022
I've verified that it's not "fix too wide nullchecks" related
BruceForstall commentedon Feb 15, 2022
@EgorBo The issues you closed as "dup" are a different assert; is it the same issue?
EgorBo commentedon Feb 15, 2022
@BruceForstall oops, indeed, the assert text looks similar but not the same, I'll re-open one of them
EgorBo commentedon Feb 15, 2022
Filed #65395
BruceForstall commentedon Aug 10, 2022
I can't repro this. I'm going to presume it was fixed in the last 6 months.
It does repro in .NET 6, but doesn't appear to justify a .NET 6 servicing fix.