dotnet / dotnet/runtime

System.Runtime.Numerics.Tests failing on linux-riscv64

Open
#130,562 2 comments 0 reactions 0 assignees View on GitHub
arch-riscv area-System.Numerics
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

Running tests back to back show some intermittent and some persistent failures.

See https://github.com/dotnet/runtime/pull/130546#discussion_r3563709819.

Build steps:
```
$ cd runtime
$ docker run --rm -v$(pwd):/runtime -w /runtime -e ROOTFS_DIR=/crossrootfs/riscv64 -it ubuntu
$ eng/common/native/install-dependencies.sh
$ apt install -y python3-venv
$ rootfsEnv="/usr/local/share/rootfs" && python3 -m venv "$rootfsEnv" && "$rootfsEnv/bin/python" -m pip install aiohttp zstandard && PYTHON_EXECUTABLE="$rootfsEnv/bin/python" ./eng/common/cross/build-rootfs.sh riscv64 noble --skipunmount --skipemulation

# note 'Release' configuration
$ ./build.sh clr+libs --cross --arch $arch --os $os --use-bootstrap -c Release
$ ./build.sh libs.tests --cross --arch $arch --os $os --use-bootstrap -c Release -p:ArchiveTests=true
$ tar czf testhost.tar.gz artifacts/bin/testhost
```

Copy from host to riscv64 machine:
```sh
$ cd runtime
$ scp testhost.tar.gz artifacts/helix/tests/linux.AnyCPU.Release/System.Runtime.Numerics.Tests.zip k1:/tmp
```

Running tests:

```sh
$ ssh k1
$ mkdir ~/testhost ~/System.Runtime.Numerics.Tests
$ tar xzf /tmp/testhost.tar.gz -C ~/testhost
$ cd System.Runtime.Numerics.Tests
$ unzip /tmp/System.Runtime.Numerics.Tests.zip
$ nano run.sh
```
run.sh contents:
```sh
#!/usr/bin/env bash

ITERATIONS=${1:-10}
# RUNTIME_ARGS=(--runtime-path ~/testhost/artifacts/bin/testhost/net11.0-linux-Release-riscv64)
RUNTIME_ARGS=(--runtime-path ~/.dotnet)

SUCCEEDED=0
FAILED=0

for ((i = 1; i <= ITERATIONS; i++)); do
echo "--- Iteration $i of $ITERATIONS ---"

./RunTests.sh "${RUNTIME_ARGS[@]}"

if [ $? -eq 0 ]; then
((SUCCEEDED++))
else
((FAILED++))
fi
done

echo ""
printf "Total iterations: %d\n" "$ITERATIONS"
printf " Failed: %d\n" "$FAILED"
printf " Succeeded: %d\n" "$SUCCEEDED"

if [ "$FAILED" -gt 0 ]; then
exit 1
fi
```

```sh
$ ./run.sh 100
--- Iteration 1 of 100 ---
========================= Begin custom configuration settings ==============================
export __IsXUnitLogCheckerSupported=1
export XUNIT_HIDE_PASSING_OUTPUT_DIAGNOSTICS=1
========================== End custom configuration settings ===============================
----- start la 11.7.2026 22.14.22 +0300 =============== To repro directly: =====================================================
pushd .
/home/am11/testhost/artifacts/bin/testhost/net11.0-linux-Release-riscv64/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
===========================================================================================================
~/System.Runtime.Numerics.Tests ~/System.Runtime.Numerics.Tests
Discovering: System.Runtime.Numerics.Tests (method display = ClassAndMethod, method display options = None)
Discovered: System.Runtime.Numerics.Tests (found 671 of 684 test cases)
Starting: System.Runtime.Numerics.Tests (parallel test collections = on [8 threads], stop on fail = off)
System.Numerics.Tests.ToStringTest.RunRegionSpecificStandardFormatToStringTests [FAIL]
Assert.Equal() Failure: Values differ
Expected: 305
Actual: 303
Stack Trace:
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1643,0): at System.Numerics.Tests.ToStringTest.VerifyExpectedStringResult(String expectedResult, String result)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1628,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, IFormatProvider provider, Boolean expectError, String expectedResult)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1604,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, String expectedResult, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(634,0): at System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests_Helper(Random random, String format, String negativeSign, Int32 precision, StringFormatter formatter, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(271,0): at System.Numerics.Tests.ToStringTest.RunRegionSpecificStandardFormatToStringTests()
/runtime/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs(37,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
/runtime/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs(134,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests [FAIL]
Assert.Equal() Failure: Values differ
Expected: 600
Actual: 597
Stack Trace:
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1643,0): at System.Numerics.Tests.ToStringTest.VerifyExpectedStringResult(String expectedResult, String result)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1628,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, IFormatProvider provider, Boolean expectError, String expectedResult)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1604,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, String expectedResult, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(634,0): at System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests_Helper(Random random, String format, String negativeSign, Int32 precision, StringFormatter formatter, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(136,0): at System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests()
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
/runtime/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs(37,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
/runtime/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs(134,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
Failed to parse string
System.Numerics.Tests.cast_fromTest.RunSByteExplicitCastFromBigIntegerTests [FAIL]
System.OverflowException : Arithmetic operation resulted in an overflow.
Stack Trace:
/runtime/src/libraries/System.Runtime.Numerics/src/System/Numerics/BigInteger.cs(2214,0): at System.Numerics.BigInteger.op_Explicit(BigInteger value)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/cast_from.cs(814,0): at System.Numerics.Tests.cast_fromTest.VerifySByteExplicitCastFromBigInteger(SByte value, BigInteger bigInteger)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/cast_from.cs(810,0): at System.Numerics.Tests.cast_fromTest.VerifySByteExplicitCastFromBigInteger(SByte value)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/cast_from.cs(78,0): at System.Numerics.Tests.cast_fromTest.RunSByteExplicitCastFromBigIntegerTests()
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
/runtime/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs(37,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
/runtime/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs(134,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
System.Numerics.Tests.cast_toTest.RunSByteImplicitCastToBigIntegerTests [FAIL]
System.OverflowException : Arithmetic operation resulted in an overflow.
Stack Trace:
/runtime/src/libraries/System.Runtime.Numerics/src/System/Numerics/BigInteger.cs(2214,0): at System.Numerics.BigInteger.op_Explicit(BigInteger value)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/cast_to.cs(522,0): at System.Numerics.Tests.cast_toTest.VerifySByteImplicitCastToBigInteger(SByte value)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/cast_to.cs(42,0): at System.Numerics.Tests.cast_toTest.RunSByteImplicitCastToBigIntegerTests()
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
/runtime/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs(37,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
/runtime/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs(134,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
System.Runtime.Numerics.Tests: [Long Running Test] 'System.Numerics.Tests.op_rightshiftTest.LargeNegativeBigIntegerShiftTest', Elapsed: 00:07:09
Finished: System.Runtime.Numerics.Tests
=== TEST EXECUTION SUMMARY ===
System.Runtime.Numerics.Tests Total: 3103, Errors: 0, Failed: 4, Skipped: 0, Time: 553.829s
~/System.Runtime.Numerics.Tests
----- end la 11.7.2026 22.23.41 +0300 ----- exit code 1 ----------------------------------------------------------
ulimit -c value: 0
cat /proc/sys/kernel/core_pattern: |/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -F%F -- %E
cat /proc/sys/kernel/core_uses_pid: 1
cat: /proc/sys/kernel/coredump_filter: No such file or directory
cat /proc/sys/kernel/coredump_filter:
Looking around for any Linux dumps...
Looking for files matching core.* ...
--- Iteration 2 of 100 ---
========================= Begin custom configuration settings ==============================
export __IsXUnitLogCheckerSupported=1
export XUNIT_HIDE_PASSING_OUTPUT_DIAGNOSTICS=1
========================== End custom configuration settings ===============================
----- start la 11.7.2026 22.23.41 +0300 =============== To repro directly: =====================================================
pushd .
/home/am11/testhost/artifacts/bin/testhost/net11.0-linux-Release-riscv64/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
===========================================================================================================
~/System.Runtime.Numerics.Tests ~/System.Runtime.Numerics.Tests
Discovering: System.Runtime.Numerics.Tests (method display = ClassAndMethod, method display options = None)
Discovered: System.Runtime.Numerics.Tests (found 671 of 684 test cases)
Starting: System.Runtime.Numerics.Tests (parallel test collections = on [8 threads], stop on fail = off)
Failed to parse string
System.Numerics.Tests.ToStringTest.RunRegionSpecificStandardFormatToStringTests [FAIL]
Assert.Equal() Failure: Values differ
Expected: 305
Actual: 303
Stack Trace:
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1643,0): at System.Numerics.Tests.ToStringTest.VerifyExpectedStringResult(String expectedResult, String result)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1628,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, IFormatProvider provider, Boolean expectError, String expectedResult)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1604,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, String expectedResult, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(634,0): at System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests_Helper(Random random, String format, String negativeSign, Int32 precision, StringFormatter formatter, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(271,0): at System.Numerics.Tests.ToStringTest.RunRegionSpecificStandardFormatToStringTests()
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
/runtime/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs(37,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
/runtime/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs(134,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests [FAIL]
Assert.Equal() Failure: Values differ
Expected: 600
Actual: 597
Stack Trace:
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1643,0): at System.Numerics.Tests.ToStringTest.VerifyExpectedStringResult(String expectedResult, String result)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1628,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, IFormatProvider provider, Boolean expectError, String expectedResult)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1604,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, String expectedResult, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(634,0): at System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests_Helper(Random random, String format, String negativeSign, Int32 precision, StringFormatter formatter, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(136,0): at System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests()
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
/runtime/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs(37,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
/runtime/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs(134,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
System.Runtime.Numerics.Tests: [Long Running Test] 'System.Numerics.Tests.op_rightshiftTest.LargeNegativeBigIntegerShiftTest', Elapsed: 00:07:02
Finished: System.Runtime.Numerics.Tests
=== TEST EXECUTION SUMMARY ===
System.Runtime.Numerics.Tests Total: 3103, Errors: 0, Failed: 2, Skipped: 0, Time: 534.666s
~/System.Runtime.Numerics.Tests
----- end la 11.7.2026 22.32.41 +0300 ----- exit code 1 ----------------------------------------------------------
ulimit -c value: 0
cat /proc/sys/kernel/core_pattern: |/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -F%F -- %E
cat /proc/sys/kernel/core_uses_pid: 1
cat: /proc/sys/kernel/coredump_filter: No such file or directory
cat /proc/sys/kernel/coredump_filter:
Looking around for any Linux dumps...
Looking for files matching core.* ...
--- Iteration 3 of 100 ---
========================= Begin custom configuration settings ==============================
export __IsXUnitLogCheckerSupported=1
export XUNIT_HIDE_PASSING_OUTPUT_DIAGNOSTICS=1
========================== End custom configuration settings ===============================
----- start la 11.7.2026 22.32.41 +0300 =============== To repro directly: =====================================================
pushd .
/home/am11/testhost/artifacts/bin/testhost/net11.0-linux-Release-riscv64/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
===========================================================================================================
~/System.Runtime.Numerics.Tests ~/System.Runtime.Numerics.Tests
Discovering: System.Runtime.Numerics.Tests (method display = ClassAndMethod, method display options = None)
Discovered: System.Runtime.Numerics.Tests (found 671 of 684 test cases)
Starting: System.Runtime.Numerics.Tests (parallel test collections = on [8 threads], stop on fail = off)
System.Numerics.Tests.ToStringTest.RunRegionSpecificStandardFormatToStringTests [FAIL]
Assert.Equal() Failure: Values differ
Expected: 305
Actual: 303
Stack Trace:
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1643,0): at System.Numerics.Tests.ToStringTest.VerifyExpectedStringResult(String expectedResult, String result)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1628,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, IFormatProvider provider, Boolean expectError, String expectedResult)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1604,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, String expectedResult, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(634,0): at System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests_Helper(Random random, String format, String negativeSign, Int32 precision, StringFormatter formatter, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(271,0): at System.Numerics.Tests.ToStringTest.RunRegionSpecificStandardFormatToStringTests()
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
/runtime/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs(37,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
/runtime/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs(134,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
Failed to parse string
System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests [FAIL]
Assert.Equal() Failure: Values differ
Expected: 600
Actual: 597
Stack Trace:
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1643,0): at System.Numerics.Tests.ToStringTest.VerifyExpectedStringResult(String expectedResult, String result)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1628,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, IFormatProvider provider, Boolean expectError, String expectedResult)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1604,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, String expectedResult, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(634,0): at System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests_Helper(Random random, String format, String negativeSign, Int32 precision, StringFormatter formatter, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(136,0): at System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests()
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
/runtime/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs(37,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
/runtime/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs(134,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
System.Runtime.Numerics.Tests: [Long Running Test] 'System.Numerics.Tests.op_rightshiftTest.LargeNegativeBigIntegerShiftTest', Elapsed: 00:07:27
Finished: System.Runtime.Numerics.Tests
=== TEST EXECUTION SUMMARY ===
System.Runtime.Numerics.Tests Total: 3103, Errors: 0, Failed: 2, Skipped: 0, Time: 557.647s
~/System.Runtime.Numerics.Tests
----- end la 11.7.2026 22.42.04 +0300 ----- exit code 1 ----------------------------------------------------------
ulimit -c value: 0
cat /proc/sys/kernel/core_pattern: |/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -F%F -- %E
cat /proc/sys/kernel/core_uses_pid: 1
cat: /proc/sys/kernel/coredump_filter: No such file or directory
cat /proc/sys/kernel/coredump_filter:
Looking around for any Linux dumps...
Looking for files matching core.* ...
--- Iteration 4 of 100 ---
========================= Begin custom configuration settings ==============================
export __IsXUnitLogCheckerSupported=1
export XUNIT_HIDE_PASSING_OUTPUT_DIAGNOSTICS=1
========================== End custom configuration settings ===============================
----- start la 11.7.2026 22.42.04 +0300 =============== To repro directly: =====================================================
pushd .
/home/am11/testhost/artifacts/bin/testhost/net11.0-linux-Release-riscv64/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
===========================================================================================================
~/System.Runtime.Numerics.Tests ~/System.Runtime.Numerics.Tests
Discovering: System.Runtime.Numerics.Tests (method display = ClassAndMethod, method display options = None)
Discovered: System.Runtime.Numerics.Tests (found 671 of 684 test cases)
Starting: System.Runtime.Numerics.Tests (parallel test collections = on [8 threads], stop on fail = off)
System.Numerics.Tests.ToStringTest.RunRegionSpecificStandardFormatToStringTests [FAIL]
Assert.Equal() Failure: Values differ
Expected: 305
Actual: 303
Stack Trace:
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1643,0): at System.Numerics.Tests.ToStringTest.VerifyExpectedStringResult(String expectedResult, String result)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1628,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, IFormatProvider provider, Boolean expectError, String expectedResult)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1604,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, String expectedResult, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(634,0): at System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests_Helper(Random random, String format, String negativeSign, Int32 precision, StringFormatter formatter, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(271,0): at System.Numerics.Tests.ToStringTest.RunRegionSpecificStandardFormatToStringTests()
/runtime/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs(37,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
/runtime/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs(57,0): at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests [FAIL]
Assert.Equal() Failure: Values differ
Expected: 600
Actual: 597
Stack Trace:
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1643,0): at System.Numerics.Tests.ToStringTest.VerifyExpectedStringResult(String expectedResult, String result)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1628,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, IFormatProvider provider, Boolean expectError, String expectedResult)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1604,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, String expectedResult, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(634,0): at System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests_Helper(Random random, String format, String negativeSign, Int32 precision, StringFormatter formatter, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(136,0): at System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests()
/runtime/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs(37,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
/runtime/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs(134,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
Failed to parse string
System.Numerics.Tests.RotateRightTest.RunRotateTests [FAIL]
System.OverflowException : Arithmetic operation resulted in an overflow.
Stack Trace:
/runtime/src/libraries/System.Runtime.Numerics/src/System/Numerics/BigInteger.cs(2214,0): at System.Numerics.BigInteger.op_Explicit(BigInteger value)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/MyBigInt.cs(894,0): at System.Numerics.Tests.MyBigIntImp.RotateLeft(List`1 bytes1, List`1 bytes2)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/MyBigInt.cs(118,0): at System.Numerics.Tests.MyBigIntImp.DoBinaryOperatorMine(BigInteger num1, BigInteger num2, String op, BigInteger& num3)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/stackcalculator.cs(71,0): at System.Numerics.Tests.StackCalc.DoNextOperation()
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/Rotate.cs(226,0): at System.Numerics.Tests.RotateTestBase.VerifyRotateString(String opstring)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/Rotate.cs(26,0): at System.Numerics.Tests.RotateTestBase.RunRotateTests()
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
/runtime/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs(37,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
/runtime/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs(134,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
System.Numerics.Tests.RotateRightTest.RunSmallTests [FAIL]
System.OverflowException : Arithmetic operation resulted in an overflow.
Stack Trace:
/runtime/src/libraries/System.Runtime.Numerics/src/System/Numerics/BigInteger.cs(2214,0): at System.Numerics.BigInteger.op_Explicit(BigInteger value)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/MyBigInt.cs(894,0): at System.Numerics.Tests.MyBigIntImp.RotateLeft(List`1 bytes1, List`1 bytes2)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/MyBigInt.cs(118,0): at System.Numerics.Tests.MyBigIntImp.DoBinaryOperatorMine(BigInteger num1, BigInteger num2, String op, BigInteger& num3)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/stackcalculator.cs(71,0): at System.Numerics.Tests.StackCalc.DoNextOperation()
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/Rotate.cs(226,0): at System.Numerics.Tests.RotateTestBase.VerifyRotateString(String opstring)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/Rotate.cs(214,0): at System.Numerics.Tests.RotateTestBase.RunSmallTests()
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
/runtime/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs(37,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
/runtime/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs(134,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
System.Runtime.Numerics.Tests: [Long Running Test] 'System.Numerics.Tests.op_rightshiftTest.LargeNegativeBigIntegerShiftTest', Elapsed: 00:07:24
Finished: System.Runtime.Numerics.Tests
=== TEST EXECUTION SUMMARY ===
System.Runtime.Numerics.Tests Total: 3103, Errors: 0, Failed: 4, Skipped: 0, Time: 558.224s
~/System.Runtime.Numerics.Tests
----- end la 11.7.2026 22.51.27 +0300 ----- exit code 1 ----------------------------------------------------------
ulimit -c value: 0
cat /proc/sys/kernel/core_pattern: |/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -F%F -- %E
cat /proc/sys/kernel/core_uses_pid: 1
cat: /proc/sys/kernel/coredump_filter: No such file or directory
cat /proc/sys/kernel/coredump_filter:
Looking around for any Linux dumps...
Looking for files matching core.* ...
--- Iteration 5 of 100 ---
========================= Begin custom configuration settings ==============================
export __IsXUnitLogCheckerSupported=1
export XUNIT_HIDE_PASSING_OUTPUT_DIAGNOSTICS=1
========================== End custom configuration settings ===============================
----- start la 11.7.2026 22.51.27 +0300 =============== To repro directly: =====================================================
pushd .
/home/am11/testhost/artifacts/bin/testhost/net11.0-linux-Release-riscv64/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
===========================================================================================================
~/System.Runtime.Numerics.Tests ~/System.Runtime.Numerics.Tests
Discovering: System.Runtime.Numerics.Tests (method display = ClassAndMethod, method display options = None)
Discovered: System.Runtime.Numerics.Tests (found 671 of 684 test cases)
Starting: System.Runtime.Numerics.Tests (parallel test collections = on [8 threads], stop on fail = off)
Failed to parse string
System.Numerics.Tests.ToStringTest.RunRegionSpecificStandardFormatToStringTests [FAIL]
Assert.Equal() Failure: Values differ
Expected: 305
Actual: 303
Stack Trace:
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1643,0): at System.Numerics.Tests.ToStringTest.VerifyExpectedStringResult(String expectedResult, String result)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1628,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, IFormatProvider provider, Boolean expectError, String expectedResult)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1604,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, String expectedResult, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(634,0): at System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests_Helper(Random random, String format, String negativeSign, Int32 precision, StringFormatter formatter, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(271,0): at System.Numerics.Tests.ToStringTest.RunRegionSpecificStandardFormatToStringTests()
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
/runtime/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs(37,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
/runtime/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs(134,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests [FAIL]
Assert.Equal() Failure: Values differ
Expected: 600
Actual: 597
Stack Trace:
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1643,0): at System.Numerics.Tests.ToStringTest.VerifyExpectedStringResult(String expectedResult, String result)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1628,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, IFormatProvider provider, Boolean expectError, String expectedResult)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1604,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, String expectedResult, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(634,0): at System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests_Helper(Random random, String format, String negativeSign, Int32 precision, StringFormatter formatter, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(136,0): at System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests()
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
/runtime/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs(37,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
/runtime/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs(134,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
System.Runtime.Numerics.Tests: [Long Running Test] 'System.Numerics.Tests.op_rightshiftTest.LargeNegativeBigIntegerShiftTest', Elapsed: 00:07:03
Finished: System.Runtime.Numerics.Tests
=== TEST EXECUTION SUMMARY ===
System.Runtime.Numerics.Tests Total: 3103, Errors: 0, Failed: 2, Skipped: 0, Time: 543.541s
~/System.Runtime.Numerics.Tests
----- end la 11.7.2026 23.00.36 +0300 ----- exit code 1 ----------------------------------------------------------
ulimit -c value: 0
cat /proc/sys/kernel/core_pattern: |/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -F%F -- %E
cat /proc/sys/kernel/core_uses_pid: 1
cat: /proc/sys/kernel/coredump_filter: No such file or directory
cat /proc/sys/kernel/coredump_filter:
Looking around for any Linux dumps...
Looking for files matching core.* ...
--- Iteration 6 of 100 ---
========================= Begin custom configuration settings ==============================
export __IsXUnitLogCheckerSupported=1
export XUNIT_HIDE_PASSING_OUTPUT_DIAGNOSTICS=1
========================== End custom configuration settings ===============================
----- start la 11.7.2026 23.00.36 +0300 =============== To repro directly: =====================================================
pushd .
/home/am11/testhost/artifacts/bin/testhost/net11.0-linux-Release-riscv64/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
===========================================================================================================
~/System.Runtime.Numerics.Tests ~/System.Runtime.Numerics.Tests
Discovering: System.Runtime.Numerics.Tests (method display = ClassAndMethod, method display options = None)
Discovered: System.Runtime.Numerics.Tests (found 671 of 684 test cases)
Starting: System.Runtime.Numerics.Tests (parallel test collections = on [8 threads], stop on fail = off)
System.Numerics.Tests.ToStringTest.RunRegionSpecificStandardFormatToStringTests [FAIL]
Assert.Equal() Failure: Values differ
Expected: 305
Actual: 303
Stack Trace:
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1643,0): at System.Numerics.Tests.ToStringTest.VerifyExpectedStringResult(String expectedResult, String result)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1628,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, IFormatProvider provider, Boolean expectError, String expectedResult)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1604,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, String expectedResult, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(634,0): at System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests_Helper(Random random, String format, String negativeSign, Int32 precision, StringFormatter formatter, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(271,0): at System.Numerics.Tests.ToStringTest.RunRegionSpecificStandardFormatToStringTests()
/runtime/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs(37,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
/runtime/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs(57,0): at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests [FAIL]
Assert.Equal() Failure: Values differ
Expected: 600
Actual: 597
Stack Trace:
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1643,0): at System.Numerics.Tests.ToStringTest.VerifyExpectedStringResult(String expectedResult, String result)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1628,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, IFormatProvider provider, Boolean expectError, String expectedResult)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(1604,0): at System.Numerics.Tests.ToStringTest.VerifyToString(String test, String format, String expectedResult, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(634,0): at System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests_Helper(Random random, String format, String negativeSign, Int32 precision, StringFormatter formatter, Boolean expectError)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs(136,0): at System.Numerics.Tests.ToStringTest.RunStandardFormatToStringTests()
/runtime/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs(37,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
/runtime/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs(134,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
Failed to parse string
System.Runtime.Numerics.Tests: [Long Running Test] 'System.Numerics.Tests.op_rightshiftTest.LargeNegativeBigIntegerShiftTest', Elapsed: 00:07:06
System.Numerics.Tests.op_rightshiftTest.RunSmallTests [FAIL]
System.OverflowException : Arithmetic operation resulted in an overflow.
Stack Trace:
/runtime/src/libraries/System.Runtime.Numerics/src/System/Numerics/BigInteger.cs(2214,0): at System.Numerics.BigInteger.op_Explicit(BigInteger value)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/MyBigInt.cs(704,0): at System.Numerics.Tests.MyBigIntImp.ShiftLeft(List`1 bytes1, List`1 bytes2)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/MyBigInt.cs(110,0): at System.Numerics.Tests.MyBigIntImp.DoBinaryOperatorMine(BigInteger num1, BigInteger num2, String op, BigInteger& num3)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/stackcalculator.cs(71,0): at System.Numerics.Tests.StackCalc.DoNextOperation()
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/op_rightshift.cs(226,0): at System.Numerics.Tests.op_rightshiftTestBase.VerifyRightShiftString(String opstring)
/runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/op_rightshift.cs(214,0): at System.Numerics.Tests.op_rightshiftTestBase.RunSmallTests()
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
/runtime/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs(134,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
Finished: System.Runtime.Numerics.Tests
=== TEST EXECUTION SUMMARY ===
System.Runtime.Numerics.Tests Total: 3103, Errors: 0, Failed: 3, Skipped: 0, Time: 554.638s
```

Contributor guide

Open the contributing guide

Research direction

Start with the failing tests in System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs, cast_from.cs, and cast_to.cs, then inspect System.Runtime.Numerics/src/System/Numerics/BigInteger.cs around line 2214. Reproduce the failures with the provided Release linux-riscv64 build and run.sh loop. Done means the affected tests pass consistently on linux-riscv64 without regressing the other reported cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, docker, linux
Domain
operating-systems, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.