Skip to content

superpmi: test failure collecting b425314.cmd #74969

Description

@BruceForstall

Doing a SuperPMI collection of b425314.cmd causes the test to fail with a System.IndexOutOfRangeException.

With #74961,

set spmi_enable_collection=1
set spmi_collect_dir=c:\bugs\spmicollection3\test
mkdir %spmi_collect_dir%

call c:\gh\runtime\artifacts\tests\coreclr\windows.x64.Checked\JIT\Regression\CLR-x86-JIT\V2.0-Beta2\b425314\b425314\b425314.cmd -coreroot c:\gh\runtime\artifacts\tests\coreclr\windows.x64.Checked\Tests\Core_Root

BEGIN EXECUTION
 "c:\gh\runtime\artifacts\tests\coreclr\windows.x64.Checked\Tests\Core_Root\corerun.exe" -p "System.Reflection.Metadata.MetadataUpdater.IsSupported=false"  b425314.dll
CastClass: Checks=10003, Flips=227149748, Elapsed=00:00:03.2172447
Unbox: Checks=10003, Flips=230166991, Elapsed=00:00:03.0070399
GenericMethod: Checks=5604758, Flips=172649670, Elapsed=00:00:03.0011782
2 exceptions were thrown
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at CastClass.CheckVal(String str) in C:\gh\runtime\src\tests\JIT\Regression\CLR-x86-JIT\V2.0-Beta2\b425314\b425314.cs:line 463
   at CastClass.CheckObjects() in C:\gh\runtime\src\tests\JIT\Regression\CLR-x86-JIT\V2.0-Beta2\b425314\b425314.cs:line 530


System.Exception: Bad value 5
   at Unbox.CheckVal(Int32 val) in C:\gh\runtime\src\tests\JIT\Regression\CLR-x86-JIT\V2.0-Beta2\b425314\b425314.cs:line 606
   at Unbox.CheckObjects() in C:\gh\runtime\src\tests\JIT\Regression\CLR-x86-JIT\V2.0-Beta2\b425314\b425314.cs:line 671


System.Exception: Failure
   at Mutate.Main(String[] args) in C:\gh\runtime\src\tests\JIT\Regression\CLR-x86-JIT\V2.0-Beta2\b425314\b425314.cs:line 951
Test FAILED
Expected: 100
Actual: 101
END EXECUTION - FAILED
FAILED

Without #74961, repro with:

set CORE_ROOT=c:\gh\runtime\artifacts\tests\coreclr\windows.x64.Checked\Tests\Core_Root
set spmi_collect_dir=c:\bugs\spmicollection3\test
mkdir %spmi_collect_dir%
set spmi_jitlib=%CORE_ROOT%\clrjit.dll
set SuperPMIShimLogPath=%spmi_collect_dir%
set SuperPMIShimPath=%spmi_jitlib%
set COMPlus_EnableExtraSuperPmiQueries=1
set COMPlus_JitName=superpmi-shim-collector.dll
set COMPlus_JitPath=%CORE_ROOT%\%COMPlus_JitName%

c:\gh\runtime\artifacts\tests\coreclr\windows.x64.Checked\Tests\Core_Root\corerun.exe c:\gh\runtime\artifacts\tests\coreclr\windows.x64.Checked\JIT\Regression\CLR-x86-JIT\V2.0-Beta2\b425314\b425314\b425314.dll

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions