[RyuJIT/ARM32] Assertion failed '(unsigned)reg < ArrLen(regMasks)'
With recent commit 367d9b1dd1b, following assertion is observed
FAILED - [ 0][ 4s]JIT/CodeGenBringUpTests/div2/div2.sh
BEGIN EXECUTION
/mnt/albireo/mywork/device/rpi3/unittests/coreoverlays/coreoverlay.test20170818-2-Regression.Checked/corerun div2.exe
Assert failure(PID 17845 [0x000045b5], Thread: 17845 [0x45b5]): Assertion failed '(unsigned)reg < ArrLen(regMasks)' in 'System.SR:InternalGetResourceString(ref):ref' (IL size 390)
File: /opt/code/github/hqueue/coreclr/src/jit/target.h Line: 2108
Image: /mnt/albireo/mywork/device/rpi3/unittests/coreoverlays/coreoverlay.test20170818-2-Regression.Checked/corerun
./div2.sh: line 243: 17845 Aborted (core dumped) $_DebuggerFullPath "$CORE_ROOT/corerun" $ExePath $CLRTestExecutionArguments
Expected: 100
Actual: 134
END EXECUTION - FAILED
@CarolEidt I'm afraid this is also related to dotnet/coreclr#13198. From the commit 5dada64d4bc9eddb63579650e1fce4f5ffda0294 (#13198), above test is failing with another assertion as follows. Does fix dotnet/coreclr#13470 which you are working on also address this issue ?
FAILED - [ 0][ 4s]JIT/CodeGenBringUpTests/div2/div2.sh
BEGIN EXECUTION
/mnt/albireo/mywork/device/rpi3/unittests/coreoverlays/coreoverlay.test20170816.Checked.debugging/corerun div2.exe
Assert failure(PID 20147 [0x00004eb3], Thread: 20147 [0x4eb3]): Assertion failed 'reg1 != reg2' in 'System.RuntimeType:MakeGenericType(ref):ref:this' (IL size 236)
File: /opt/code/github/hqueue/coreclr/src/jit/emitarm.cpp Line: 2018
Image: /mnt/albireo/mywork/device/rpi3/unittests/coreoverlays/coreoverlay.test20170816.Checked.debugging/corerun
./div2.sh: line 243: 20147 Aborted (core dumped) $_DebuggerFullPath "$CORE_ROOT/corerun" $ExePath $CLRTestExecutionArguments
Expected: 100
Actual: 134
END EXECUTION - FAILED
With the latest master branch, about 4000 failures are observed with above assertion in pri0 tests.
With recent master 8e2d570c730, same assertion is observed in different location when running CoreCLR test with COMPlus_AltJit=*.
FAILED - [ 0][ 2s]JIT/CodeGenBringUpTests/div2/div2.sh
BEGIN EXECUTION
/mnt/albireo/mywork/device/rpi3/unittests/coreoverlays/coreoverlay.test20170825.Checked/corerun div2.exe
Assert failure(PID 29177 [0x000071f9], Thread: 29177 [0x71f9]): Assertion failed '(unsigned)reg < ArrLen(regMasks)' in 'System.Collections.Generic.Dictionary`2[__Canon,__Canon][System.__Canon,System.__Canon]:Resize(int,bool):this' (IL size 239)
File: /opt/code/github/hqueue/coreclr/src/jit/target.h Line: 2108
Image: /mnt/albireo/mywork/device/rpi3/unittests/coreoverlays/coreoverlay.test20170825.Checked/corerun
./div2.sh: line 243: 29177 Aborted (core dumped) $_DebuggerFullPath "$CORE_ROOT/corerun" $ExePath $CLRTestExecutionArguments
Expected: 100
Actual: 134
END EXECUTION - FAILED
6368 test from Pri0 tests are failed with the assertion.
Fixed with dotnet/coreclr#13579