Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

System.Net.Http.Tests.WarningHeaderValueTest.GetWarningLength_DifferentInvalidScenarios_AllReturnZero failing in CI #85687

Closed
jakobbotsch opened this issue May 2, 2023 · 4 comments
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI blocking-clean-ci-optional Blocking optional rolling runs
Milestone

Comments

@jakobbotsch
Copy link
Member

jakobbotsch commented May 2, 2023

Example run: https://dev.azure.com/dnceng-public/public/_build/results?buildId=259786&view=results
win-x64 System.Net.Http.WinHttpHandler.Unit.Tests
Log: https://helixre107v0xdcypoyl9e7f.blob.core.windows.net/dotnet-runtime-refs-pull-85323-merge-86f225c0d2434d34b0/System.Net.Http.Unit.Tests/3/console.80af5888.log?helixlogtype=result

  Starting:    System.Net.Http.Unit.Tests (parallel test collections = on, max threads = 4)
    System.Net.Http.Tests.WarningHeaderValueTest.GetWarningLength_DifferentInvalidScenarios_AllReturnZero [FAIL]
      Assert.Equal() Failure
      Expected: 0
      Actual:   11
      Stack Trace:
        /_/src/libraries/System.Net.Http/tests/UnitTests/Headers/WarningHeaderValueTest.cs(271,0): at System.Net.Http.Tests.WarningHeaderValueTest.CheckInvalidWarningViaLength(String input, Int32 startIndex)
        /_/src/libraries/System.Net.Http/tests/UnitTests/Headers/WarningHeaderValueTest.cs(175,0): at System.Net.Http.Tests.WarningHeaderValueTest.GetWarningLength_DifferentInvalidScenarios_AllReturnZero()
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodInvoker.cs(59,0): at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
  Finished:    System.Net.Http.Unit.Tests

@tannergooding This looks like fallout from #85536, can you take a look?

The miscompilation happens inside System.Net.Http.Headers.WarningHeaderValue:TryReadCode(System.String,byref,byref): https://www.diffchecker.com/dZckckLw/

Repros without stress too.

@ghost ghost added the untriaged New issue has not been triaged by the area owner label May 2, 2023
@ghost
Copy link

ghost commented May 2, 2023

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

Issue Details

Example run: https://dev.azure.com/dnceng-public/public/_build/results?buildId=259786&view=results
win-x64 System.Net.Http.WinHttpHandler.Unit.Tests
Log: https://helixre107v0xdcypoyl9e7f.blob.core.windows.net/dotnet-runtime-refs-pull-85323-merge-86f225c0d2434d34b0/System.Net.Http.Unit.Tests/3/console.80af5888.log?helixlogtype=result

  Starting:    System.Net.Http.Unit.Tests (parallel test collections = on, max threads = 4)
    System.Net.Http.Tests.WarningHeaderValueTest.GetWarningLength_DifferentInvalidScenarios_AllReturnZero [FAIL]
      Assert.Equal() Failure
      Expected: 0
      Actual:   11
      Stack Trace:
        /_/src/libraries/System.Net.Http/tests/UnitTests/Headers/WarningHeaderValueTest.cs(271,0): at System.Net.Http.Tests.WarningHeaderValueTest.CheckInvalidWarningViaLength(String input, Int32 startIndex)
        /_/src/libraries/System.Net.Http/tests/UnitTests/Headers/WarningHeaderValueTest.cs(175,0): at System.Net.Http.Tests.WarningHeaderValueTest.GetWarningLength_DifferentInvalidScenarios_AllReturnZero()
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodInvoker.cs(59,0): at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
  Finished:    System.Net.Http.Unit.Tests

@tannergooding This looks like fallout from #85536, can you take a look?

The miscompilation happens inside System.Net.Http.Headers.WarningHeaderValue:TryReadCode(System.String,byref,byref): https://www.diffchecker.com/dZckckLw/

Author: jakobbotsch
Assignees: -
Labels:

area-System.Net.Http

Milestone: -

@jakobbotsch jakobbotsch added area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI and removed area-System.Net.Http untriaged New issue has not been triaged by the area owner labels May 2, 2023
@jakobbotsch jakobbotsch added this to the 8.0.0 milestone May 2, 2023
@ghost
Copy link

ghost commented May 2, 2023

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

Issue Details

Example run: https://dev.azure.com/dnceng-public/public/_build/results?buildId=259786&view=results
win-x64 System.Net.Http.WinHttpHandler.Unit.Tests
Log: https://helixre107v0xdcypoyl9e7f.blob.core.windows.net/dotnet-runtime-refs-pull-85323-merge-86f225c0d2434d34b0/System.Net.Http.Unit.Tests/3/console.80af5888.log?helixlogtype=result

  Starting:    System.Net.Http.Unit.Tests (parallel test collections = on, max threads = 4)
    System.Net.Http.Tests.WarningHeaderValueTest.GetWarningLength_DifferentInvalidScenarios_AllReturnZero [FAIL]
      Assert.Equal() Failure
      Expected: 0
      Actual:   11
      Stack Trace:
        /_/src/libraries/System.Net.Http/tests/UnitTests/Headers/WarningHeaderValueTest.cs(271,0): at System.Net.Http.Tests.WarningHeaderValueTest.CheckInvalidWarningViaLength(String input, Int32 startIndex)
        /_/src/libraries/System.Net.Http/tests/UnitTests/Headers/WarningHeaderValueTest.cs(175,0): at System.Net.Http.Tests.WarningHeaderValueTest.GetWarningLength_DifferentInvalidScenarios_AllReturnZero()
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodInvoker.cs(59,0): at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
  Finished:    System.Net.Http.Unit.Tests

@tannergooding This looks like fallout from #85536, can you take a look?

The miscompilation happens inside System.Net.Http.Headers.WarningHeaderValue:TryReadCode(System.String,byref,byref): https://www.diffchecker.com/dZckckLw/

Author: jakobbotsch
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@jakobbotsch jakobbotsch added the blocking-clean-ci-optional Blocking optional rolling runs label May 2, 2023
@jakobbotsch
Copy link
Member Author

I wonder if this could be the cause for #85659 and #85637 as well, those are on xarch too.

@jakobbotsch
Copy link
Member Author

Fixed by #85714

@ghost ghost locked as resolved and limited conversation to collaborators Jun 3, 2023
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI blocking-clean-ci-optional Blocking optional rolling runs
Projects
None yet
Development

No branches or pull requests

1 participant