dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.55k stars 4.54k forks source link

Assertion in BigIntegerCalculator #103247

Open MichalStrehovsky opened 3 weeks ago

MichalStrehovsky commented 3 weeks ago

Sounds related to #103052, cc @lambdageek

Process terminated. Assertion failed.
   at System.Diagnostics.DebugProvider.Fail(String message, String detailMessage) in /_/src/libraries/System.Private.CoreLib/src/System/Diagnostics/DebugProvider.cs:line 22
   at System.Diagnostics.Debug.Fail(String message, String detailMessage) in /_/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Debug.cs:line 133
   at System.Diagnostics.Debug.Assert(Boolean condition, String message, String detailMessage) in /_/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Debug.cs:line 97
   at System.Diagnostics.Debug.Assert(Boolean condition) in /_/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Debug.cs:line 82
   at System.Numerics.BigIntegerCalculator.<Multiply>g__MultiplyKaratsuba|57_0(ReadOnlySpan`1 left, ReadOnlySpan`1 right, Span`1 bits, Int32 n) in /_/src/libraries/System.Runtime.Numerics/src/System/Numerics/BigIntegerCalculator.SquMul.cs:line 256
   at System.Numerics.BigIntegerCalculator.<Multiply>g__MultiplyKaratsuba|57_0(ReadOnlySpan`1 left, ReadOnlySpan`1 right, Span`1 bits, Int32 n) in /_/src/libraries/System.Runtime.Numerics/src/System/Numerics/BigIntegerCalculator.SquMul.cs:line 309
   at System.Numerics.BigIntegerCalculator.<Multiply>g__MultiplyKaratsuba|57_0(ReadOnlySpan`1 left, ReadOnlySpan`1 right, Span`1 bits, Int32 n) in /_/src/libraries/System.Runtime.Numerics/src/System/Numerics/BigIntegerCalculator.SquMul.cs:line 309
   at System.Numerics.BigIntegerCalculator.Multiply(ReadOnlySpan`1 left, ReadOnlySpan`1 right, Span`1 bits) in /_/src/libraries/System.Runtime.Numerics/src/System/Numerics/BigIntegerCalculator.SquMul.cs:line 245
   at System.Numerics.BigInteger.Multiply(ReadOnlySpan`1 left, Int32 leftSign, ReadOnlySpan`1 right, Int32 rightSign) in /_/src/libraries/System.Runtime.Numerics/src/System/Numerics/BigInteger.cs:line 2762
   at System.Numerics.BigInteger.op_Multiply(BigInteger left, BigInteger right) in /_/src/libraries/System.Runtime.Numerics/src/System/Numerics/BigInteger.cs:line 2692
   at System.Numerics.Tests.modpowTest.FastReducer_AssertFailure_RegressionTest(BigInteger value, Int32 exponent, BigInteger modulus) in /_/src/libraries/System.Runtime.Numerics/tests/BigInteger/modpow.cs:line 404
   at System.Object.InvokeStub_modpowTest.FastReducer_AssertFailure_RegressionTest(Object , Span`1 )
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 136
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs:line 133
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBase.cs:line 56
   at Xunit.Sdk.TestInvoker`1[[Xunit.Sdk.IXunitTestCase, xunit.core, Version=2.6.7.0, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c]].CallTestMethod(Object testClassInstance) in /_/src/xunit.execution/Sdk/Frameworks/Runners/TestInvoker.cs:line 151
   at Xunit.Sdk.TestInvoker`1.<>c__DisplayClass48_0.<<InvokeTestMethodAsync>b__1>d[[Xunit.Sdk.IXunitTestCase, xunit.core, Version=2.6.7.0, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c]].MoveNext() in /_/src/xunit.execution/Sdk/Frameworks/Runners/TestInvoker.cs:line 278

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=701999 Build error leg or test failing: System.Runtime.Numerics.Tests.WorkItemExecution Pull request: https://github.com/dotnet/runtime/pull/103151

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "modpowTest.FastReducer_AssertFailure_RegressionTest",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=701999 Error message validated: [modpowTest.FastReducer_AssertFailure_RegressionTest] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 6/10/2024 9:21:49 PM UTC

Report

Build Definition Test Pull Request
729164 dotnet/runtime WasmTestOnFirefox-MT-System.Runtime.Numerics.Tests.WorkItemExecution dotnet/runtime#104149
727444 dotnet/runtime WasmTestOnChrome-MT-System.Runtime.Numerics.Tests.WorkItemExecution dotnet/runtime#104297
727021 dotnet/runtime System.Runtime.Numerics.Tests.WorkItemExecution dotnet/runtime#103889
721033 dotnet/runtime System.Runtime.Numerics.Tests.WorkItemExecution dotnet/runtime#103697
716357 dotnet/runtime WasmTestOnChrome-MT-System.Runtime.Numerics.Tests.WorkItemExecution
711204 dotnet/runtime System.Runtime.Numerics.Tests.WorkItemExecution dotnet/runtime#103361
707719 dotnet/runtime System.Runtime.Numerics.Tests.WorkItemExecution dotnet/runtime#103463
707628 dotnet/runtime System.Numerics.Tests.modpowTest.FastReducer_AssertFailure_RegressionTest dotnet/runtime#103419
707110 dotnet/runtime System.Runtime.Numerics.Tests.WorkItemExecution dotnet/runtime#103441
701999 dotnet/runtime System.Runtime.Numerics.Tests.WorkItemExecution dotnet/runtime#103151

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 3 10
dotnet-policy-service[bot] commented 3 weeks ago

Tagging subscribers to this area: @dotnet/area-system-numerics See info in area-owners.md if you want to be subscribed.

kzrnm commented 3 weeks ago

I suspect that this error may be due to parallel execution. See #103423 for details.