Skip to content

Test failure: System.Numerics.Tests.ExtractBytesMembersTests.ToByteArray_FromStringTests_Advanced #39338

@BruceForstall

Description

@BruceForstall

release libraries, checked coreclr, Linux/arm32.

COMPlus_TieredCompilation=0
COMPlus_JitStress=2
~/build/runtime/artifacts/bin/System.Runtime.Numerics.Tests/net5.0-Release$ COMPlus_TieredCompilation=0 COMPlus_JitStress=2 ./RunTests.sh -r ~/build/runtime/artifacts/bin/testhost/net5.0-Linux-Release-arm
----- start Wed Jul 15 01:22:03 UTC 2020 =============== To repro directly: =====================================================
pushd .
/home/brucefo/build/runtime/artifacts/bin/testhost/net5.0-Linux-Release-arm/dotnet exec --runtimeconfig System.Runtime.Numerics.Tests.runtimeconfig.json --depsfile System.Runtime.Numerics.Tests.deps.json xunit.console.dll System.Runtime.Numerics.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing
popd
===========================================================================================================
~/build/runtime/artifacts/bin/System.Runtime.Numerics.Tests/net5.0-Release ~/build/runtime/artifacts/bin/System.Runtime.Numerics.Tests/net5.0-Release
  Discovering: System.Runtime.Numerics.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Runtime.Numerics.Tests (found 222 of 227 test cases)
  Starting:    System.Runtime.Numerics.Tests (parallel test collections = on, max threads = 4)
    System.Numerics.Tests.ExtractBytesMembersTests.ToByteArray_FromStringTests_Advanced(str: "-32514", isUnsigned: False, isBigEndian: False, expectedBytes: [254, 128]) [FAIL]
      Assert.Equal() Failure
      Expected: Byte[] [254, 128]
      Actual:   Byte[] [0]
      Stack Trace:
        /home/bruce/gh/runtime2/src/libraries/System.Runtime.Numerics/tests/BigInteger/ToByteArray.cs(185,0): at System.Numerics.Tests.ExtractBytesMembersTests.ToByteArray_FromStringTests_Advanced(String str, Boolean isUnsigned, Boolean isBigEndian, Byte[] expectedBytes)
    System.Numerics.Tests.ExtractBytesMembersTests.ToByteArray_FromStringTests_Advanced(str: "12364093636075302621581796971036731159910277399901"..., isUnsigned: False, isBigEndian: False, expectedBytes: [67, 184, 253, 169, 18, ...]) [FAIL]
      Assert.Equal() Failure
      Expected: Byte[] [67, 184, 253, 169, 18, ...]
      Actual:   Byte[] [0]
      Stack Trace:
        /home/bruce/gh/runtime2/src/libraries/System.Runtime.Numerics/tests/BigInteger/ToByteArray.cs(185,0): at System.Numerics.Tests.ExtractBytesMembersTests.ToByteArray_FromStringTests_Advanced(String str, Boolean isUnsigned, Boolean isBigEndian, Byte[] expectedBytes)
    System.Numerics.Tests.ExtractBytesMembersTests.ToByteArray_FromStringTests_Advanced(str: "12364093636075302621581796971036731159910277399901"..., isUnsigned: False, isBigEndian: True, expectedBytes: [0, 240, 29, 123, 162, ...]) [FAIL]
      Assert.Equal() Failure
      Expected: Byte[] [0, 240, 29, 123, 162, ...]
      Actual:   Byte[] [0]
      Stack Trace:
        /home/bruce/gh/runtime2/src/libraries/System.Runtime.Numerics/tests/BigInteger/ToByteArray.cs(185,0): at System.Numerics.Tests.ExtractBytesMembersTests.ToByteArray_FromStringTests_Advanced(String str, Boolean isUnsigned, Boolean isBigEndian, Byte[] expectedBytes)
    System.Numerics.Tests.ExtractBytesMembersTests.ToByteArray_FromStringTests_Advanced(str: "12364093636075302621581796971036731159910277399901"..., isUnsigned: True, isBigEndian: True, expectedBytes: [240, 29, 123, 162, 253, ...]) [FAIL]
      Assert.Equal() Failure
      Expected: Byte[] [240, 29, 123, 162, 253, ...]
      Actual:   Byte[] [0]
      Stack Trace:
        /home/bruce/gh/runtime2/src/libraries/System.Runtime.Numerics/tests/BigInteger/ToByteArray.cs(185,0): at System.Numerics.Tests.ExtractBytesMembersTests.ToByteArray_FromStringTests_Advanced(String str, Boolean isUnsigned, Boolean isBigEndian, Byte[] expectedBytes)
    System.Numerics.Tests.ExtractBytesMembersTests.ToByteArray_FromStringTests_Advanced(str: "12364093636075302621581796971036731159910277399901"..., isUnsigned: True, isBigEndian: False, expectedBytes: [67, 184, 253, 169, 18, ...]) [FAIL]
      Assert.Equal() Failure
      Expected: Byte[] [67, 184, 253, 169, 18, ...]
      Actual:   Byte[] [0]
      Stack Trace:
        /home/bruce/gh/runtime2/src/libraries/System.Runtime.Numerics/tests/BigInteger/ToByteArray.cs(185,0): at System.Numerics.Tests.ExtractBytesMembersTests.ToByteArray_FromStringTests_Advanced(String str, Boolean isUnsigned, Boolean isBigEndian, Byte[] expectedBytes)
    System.Numerics.Tests.ExtractBytesMembersTests.ToByteArray_FromStringTests_Advanced(str: "-1500566381192798663042470094195709329888702572609"..., isUnsigned: False, isBigEndian: False, expectedBytes: [128, 40, 250, 62, 31, ...]) [FAIL]
      Assert.Equal() Failure
      Expected: Byte[] [128, 40, 250, 62, 31, ...]
      Actual:   Byte[] [0]
      Stack Trace:
        /home/bruce/gh/runtime2/src/libraries/System.Runtime.Numerics/tests/BigInteger/ToByteArray.cs(185,0): at System.Numerics.Tests.ExtractBytesMembersTests.ToByteArray_FromStringTests_Advanced(String str, Boolean isUnsigned, Boolean isBigEndian, Byte[] expectedBytes)
    System.Numerics.Tests.ExtractBytesMembersTests.ToByteArray_FromStringTests_Advanced(str: "-1500566381192798663042470094195709329888702572609"..., isUnsigned: False, isBigEndian: True, expectedBytes: [226, 219, 195, 238, 220, ...]) [FAIL]
      Assert.Equal() Failure
      Expected: Byte[] [226, 219, 195, 238, 220, ...]
      Actual:   Byte[] [0]
      Stack Trace:
        /home/bruce/gh/runtime2/src/libraries/System.Runtime.Numerics/tests/BigInteger/ToByteArray.cs(185,0): at System.Numerics.Tests.ExtractBytesMembersTests.ToByteArray_FromStringTests_Advanced(String str, Boolean isUnsigned, Boolean isBigEndian, Byte[] expectedBytes)
    System.Numerics.Tests.ExtractBytesMembersTests.ToByteArray_FromStringTests_Advanced(str: "-1500566381192798663042470094195709329888702572609"..., isUnsigned: True, isBigEndian: True, expectedBytes: [226, 219, 195, 238, 220, ...]) [FAIL]
      Assert.Throws() Failure
      Expected: typeof(System.OverflowException)
      Actual:   (No exception was thrown)
      Stack Trace:
        /home/bruce/gh/runtime2/src/libraries/System.Runtime.Numerics/tests/BigInteger/ToByteArray.cs(180,0): at System.Numerics.Tests.ExtractBytesMembersTests.ToByteArray_FromStringTests_Advanced(String str, Boolean isUnsigned, Boolean isBigEndian, Byte[] expectedBytes)
    System.Numerics.Tests.ExtractBytesMembersTests.ToByteArray_FromStringTests_Advanced(str: "-1500566381192798663042470094195709329888702572609"..., isUnsigned: True, isBigEndian: False, expectedBytes: [128, 40, 250, 62, 31, ...]) [FAIL]
      Assert.Throws() Failure
      Expected: typeof(System.OverflowException)
      Actual:   (No exception was thrown)
      Stack Trace:
        /home/bruce/gh/runtime2/src/libraries/System.Runtime.Numerics/tests/BigInteger/ToByteArray.cs(180,0): at System.Numerics.Tests.ExtractBytesMembersTests.ToByteArray_FromStringTests_Advanced(String str, Boolean isUnsigned, Boolean isBigEndian, Byte[] expectedBytes)
  Finished:    System.Runtime.Numerics.Tests
=== TEST EXECUTION SUMMARY ===
   System.Runtime.Numerics.Tests  Total: 2089, Errors: 0, Failed: 9, Skipped: 0, Time: 112.620s
~/build/runtime/artifacts/bin/System.Runtime.Numerics.Tests/net5.0-Release
----- end Wed Jul 15 01:24:02 UTC 2020 ----- exit code 1 ----------------------------------------------------------

I was trying to reproduce a crash in this test for JitStress=2 JitStressRegs=3, but ended up seeing this failure instead. Passes without JitStress=2.

https://dev.azure.com/dnceng/public/_build/results?buildId=728164&view=ms.vss-test-web.build-test-results-tab&runId=22542524&resultId=121344&paneView=dotnet-dnceng.dnceng-build-release-tasks.helix-test-information-tab

Metadata

Metadata

Assignees

Labels

JitStressCLR JIT issues involving JIT internal stress modesarch-arm32area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIos-linuxLinux OS (any supported distro)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions