dotnet / runtime

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

`System.Numerics.Tensors.Tests.TensorSpanTests.TensorExtensionsTwoSpanInFloatOut` fails with `IndexOutOfRangeException` #107254

Open jakobbotsch opened 2 months ago

jakobbotsch commented 2 months ago

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=795134&view=ms.vss-test-web.build-test-results-tab&runId=20468106&resultId=187477&paneView=debug Build error leg or test failing: System.Numerics.Tensors.Tests.TensorSpanTests.TensorExtensionsTwoSpanInFloatOut

Error Message

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

{
  "ErrorPattern": "System.Numerics.Tensors.Tests.TensorSpanTests.TensorExtensionsTwoSpanInFloatOut.*FAIL",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=795134 Error message validated: [System.Numerics.Tensors.Tests.TensorSpanTests.TensorExtensionsTwoSpanInFloatOut.*FAIL] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 9/2/2024 11:26:56 AM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
dotnet-policy-service[bot] commented 2 months ago

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

v-wenyuxu commented 1 month ago

Failed in: runtime-coreclr libraries-jitstress 20240904.1

Failed tests:

net9.0-windows-Release-x64-jitminopts-Windows.10.Amd64.Open
    - System.Numerics.Tensors.Tests.TensorSpanTests.TensorExtensionsTwoSpanInFloatOut<Single>(tensorPrimitivesOperation: TensorPrimitivesTwoSpanInTOut`1 { Method = Single Distance(System.ReadOnlySpan`1[System.Single], System.ReadOnlySpan`1[System.Single]), Target = null }, tensorOperation: TensorTwoSpanInTOut`1 { Method = Single Distance[Single](System.Numerics.Tensors.ReadOnlyTensorSpan`1[System.Single] ByRef, System.Numerics.Tensors.ReadOnlyTensorSpan`1[System.Single] ByRef), Target = null })

Error message:

 Assert.All() Failure: 1 out of 12 items in the collection did not pass.
[11]: Item:  [1, 2, 3, 4, 5, ···]
      Error: Index was outside the bounds of the array.

Stack trace:

   at System.Numerics.Tensors.Tests.TensorSpanTests.TensorExtensionsTwoSpanInFloatOut[T](TensorPrimitivesTwoSpanInTOut`1 tensorPrimitivesOperation, TensorTwoSpanInTOut`1 tensorOperation) in /_/src/libraries/System.Numerics.Tensors/tests/TensorSpanTests.cs:line 499
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 174
BruceForstall commented 1 month ago

@dotnet/area-system-numerics-tensors PTAL -- this is failing widely.

v-wenyuxu commented 1 month ago

Failed in: runtime-coreclr libraries-jitstress-random 20240907.1

Failed tests:

net9.0-windows-Release-arm64-jitstress_random_1-Windows.11.Arm64.Open
    - System.Numerics.Tensors.Tests.TensorSpanTests.TensorExtensionsTwoSpanInFloatOut<Single>(tensorPrimitivesOperation: TensorPrimitivesTwoSpanInTOut`1 { Method = Single Distance(System.ReadOnlySpan`1[System.Single], System.ReadOnlySpan`1[System.Single]), Target = null }, tensorOperation: TensorTwoSpanInTOut`1 { Method = Single Distance[Single](System.Numerics.Tensors.ReadOnlyTensorSpan`1[System.Single] ByRef, System.Numerics.Tensors.ReadOnlyTensorSpan`1[System.Single] ByRef), Target = null })

Error message:

 Assert.All() Failure: 1 out of 12 items in the collection did not pass.
[11]: Item:  [1, 2, 3, 4, 5, ···]
      Error: Index was outside the bounds of the array.

Stack trace:

   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 174
JulieLeeMSFT commented 1 month ago

@jeffhandley, this is blocking JIT pipelines. Please disable the test if it will not be fixed soon. We want to make sure that our pipelines are green before RC2 snap. You can enable it after that. CC @tannergooding.

matouskozak commented 1 month ago

fyi: affecting Mono CI as well https://github.com/dotnet/runtime/issues/107244

tannergooding commented 1 month ago

Test has been disabled. Going to leave the issue open to track a proper fix.

BruceForstall commented 1 month ago

@tannergooding Is it really disabled? I just saw a failure in

https://dev.azure.com/dnceng-public/public/_build/results?buildId=805211&view=ms.vss-test-web.build-test-results-tab&runId=20809392&resultId=173889&paneView=debug

Maybe that's a slight variant of the test that's still enabled?