runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[RyuJIT/arm32] Assertion failed 'farthestRefPhysRegRecord != nullptr'

Open BruceForstall opened this issue 9 years ago • 9 comments

At lsra.cpp Line: 5972

Example:

Assert failure(PID 5860 [0x000016e4], Thread: 4100 [0x1004]): Assertion failed 'farthestRefPhysRegRecord != nullptr' in 'Roslyn.Utilities.ReflectionUtilities:FindItem(ref,ref):ref' (IL size 117)

    File: c:\gh\coreclr\src\jit\lsra.cpp Line: 5972
    Image: c:\brucefo\tests\Windows_NT.arm.Checked\Tests\Core_Root\CoreRun.exe

Tests with this assert:

CoreMangLib\cti\system\collections\generic\queue\QueueCtor2\QueueCtor2.cmd
CoreMangLib\cti\system\collections\generic\stack\StackContains\StackContains.cmd
JIT\Performance\CodeQuality\Linq\Linq\Linq.cmd
JIT\Performance\CodeQuality\Roslyn\CscBench\CscBench.cmd
JIT\Performance\CodeQuality\Serialization\Deserialize\Deserialize.cmd
JIT\Performance\CodeQuality\Serialization\Serialize\Serialize.cmd
JIT\Regression\Dev11\External\dev11_149090\GCHole1\GCHole1.cmd
Loader\classloader\regressions\dev11_95728\dev11_95728\dev11_95728.cmd
managed\Compilation\Compilation\Compilation.cmd

BruceForstall avatar May 23 '17 17:05 BruceForstall

Update with recent commit be21b511fc3ee42a2db1c8ce70499efd8d82d37e

Checked build and ran on Rpi3.

Same assertion observed in one test.

FAILED   - [   1][ 289s]JIT/Performance/CodeQuality/Roslyn/CscBench/CscBench.sh
               BEGIN EXECUTION
               /mnt/albireo/mywork/device/rpi3/unittests/coreoverlays/coreoverlay.test20170608/corerun CscBench.exe

               Assert failure(PID 23207 [0x00005aa7], Thread: 23207 [0x5aa7]): Assertion failed 'farthestRefPhysRegRecord != nullptr' in 'Roslyn.Utilities.ReflectionUtilities:FindItem(ref,ref):ref' (IL size 117)

                   File: /opt/code/github/hqueue/coreclr/src/jit/lsra.cpp Line: 5972
                   Image: /mnt/albireo/mywork/device/rpi3/unittests/coreoverlays/coreoverlay.test20170608/corerun

               ./CscBench.sh: line 247: 23207 Aborted                 (core dumped) $_DebuggerFullPath "$CORE_ROOT/corerun" $ExePath $CLRTestExecutionArguments
               Expected: 100
               Actual: 134
               END EXECUTION - FAILED

Other assertion.

FAILED   - [   2][ 289s]JIT/Performance/CodeQuality/Serialization/Deserialize/Deserialize.sh
               Assert failure(PID 23232 [0x00005ac0], Thread: 23232 [0x5ac0]): Assertion failed 'varTypeIsSIMD(arg)' in 'System.DateTimeOffset:FromUnixTimeSeconds(long):struct' (IL size 104)

                   File: /opt/code/github/hqueue/coreclr/src/jit/lower.cpp Line: 991

FAILED   - [   3][ 289s]JIT/Performance/CodeQuality/Serialization/Serialize/Serialize.sh
               BEGIN EXECUTION
               /mnt/albireo/mywork/device/rpi3/unittests/coreoverlays/coreoverlay.test20170608/corerun Serialize.exe

               Assert failure(PID 23257 [0x00005ad9], Thread: 23257 [0x5ad9]): Assertion failed 'varTypeIsSIMD(arg)' in 'System.DateTimeOffset:FromUnixTimeSeconds(long):struct' (IL size 104)

                   File: /opt/code/github/hqueue/coreclr/src/jit/lower.cpp Line: 991
PASSED   - [   0][ 289s]JIT/Performance/CodeQuality/Linq/Linq/Linq.sh
PASSED   - [   4][ 289s]JIT/Regression/Dev11/External/dev11_149090/GCHole1/GCHole1.sh
PASSED   - [   5][ 289s]Loader/classloader/regressions/dev11_95728/dev11_95728/dev11_95728.sh
SKIPPED  - [   6][   1s]managed/Compilation/Compilation/Compilation.sh
               Not supported on this platform.

hqueue avatar Jun 09 '17 06:06 hqueue

Current Status

ab7f3407fa9 checked build.

Failure Lists

JIT/opt/Devirtualization/GitHub_10311/GitHub_10311.sh
JIT/Performance/CodeQuality/Roslyn/CscBench/CscBench.sh
JIT/Regression/JitBlue/DevDiv_278372/DevDiv_278372/DevDiv_278372.sh
JIT/Regression/JitBlue/DevDiv_362706/DevDiv_362706/DevDiv_362706.sh
JIT/Regression/JitBlue/DevDiv_367099/DevDiv_367099/DevDiv_367099.sh
JIT/Regression/JitBlue/DevDiv_370233/DevDiv_370233/DevDiv_370233.sh
JIT/Regression/JitBlue/DevDiv_377155/DevDiv_377155/DevDiv_377155.sh

sjsinju avatar Jun 26 '17 04:06 sjsinju

@BruceForstall Please assign this to me.

sjsinju avatar Jun 26 '17 06:06 sjsinju

Fixed dotnet/coreclr#12662

sjsinju avatar Jul 17 '17 01:07 sjsinju

Currently, I see this assertion in x86_arm_altjit runs with the following tests and stress configurations:

COMPlus_JitStressRegs=3

JIT\Methodical\fp\exgen\10w5d_cs_do\10w5d_cs_do.cmd
JIT\Methodical\fp\exgen\10w5d_cs_ro\10w5d_cs_ro.cmd


COMPlus_JitStress=2
COMPlus_JitStressRegs=3

JIT\Methodical\fp\exgen\10w5d_cs_do\10w5d_cs_do.cmd


COMPlus_JitStress=2
COMPlus_JitStressRegs=4

JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b54611\b54611\b54611.cmd

BruceForstall avatar Oct 06 '17 23:10 BruceForstall

@sjsinju Are you still looking at this?

BruceForstall avatar Oct 20 '17 19:10 BruceForstall

@BruceForstall @sjsinju is out-of-office until the first week of Nov.

hqueue avatar Oct 23 '17 10:10 hqueue

I am currently unable to reproduce any of these.

CarolEidt avatar Nov 02 '17 19:11 CarolEidt

I'll go ahead and close it for now, and reopen it if/when we see it again.

BruceForstall avatar Nov 02 '17 21:11 BruceForstall