Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

system.net.security.tests.negotiateauthenticationkerberostest.loopback_success #73343

Closed
runfoapp bot opened this issue Aug 4, 2022 · 37 comments · Fixed by #73515 or #74554
Closed

system.net.security.tests.negotiateauthenticationkerberostest.loopback_success #73343

runfoapp bot opened this issue Aug 4, 2022 · 37 comments · Fixed by #73515 or #74554
Labels
area-System.Net.Security test-bug Problem in test source code (most likely)
Milestone

Comments

@runfoapp
Copy link

runfoapp bot commented Aug 4, 2022

This test failed in CI rolling build 1920255.

https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-main-d6e349c2b9554af286/System.Net.Security.Tests/3/console.eb09806e.log?%3Fhelixlogtype%3Dresult

Unhandled exception. Xunit.Sdk.TrueException: Client authentication failed with Unsupported
Expected: True
Actual:   False
   at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/xunit.assert/Asserts/BooleanAsserts.cs:line 132
   at System.Net.Security.Tests.NegotiateAuthenticationKerberosTest.<>c.<Loopback_Success>b__2_0() in /_/src/libraries/System.Net.Security/tests/FunctionalTests/NegotiateAuthenticationKerberosTest.cs:line 48
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodInvoker.cs:line 64
--- End of stack trace from previous location ---
   at Microsoft.DotNet.RemoteExecutor.Program.Main(String[] args) in /_/src/Microsoft.DotNet.RemoteExecutor/src/Program.cs:line 94
    System.Net.Security.Tests.SslStreamCertificateTrustTest.SslStream_SendCertificateTrust_ThrowsOnUnsupportedPlatform [SKIP]
      Condition(s) not met: "DoesNotSupportSendingCustomCANamesInTls"
    System.Net.Security.Tests.NegotiateAuthenticationKerberosTest.Loopback_Success [FAIL]
      Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Remote process failed with an unhandled exception.
      Stack Trace:
        
        Child exception:
          Xunit.Sdk.TrueException: Client authentication failed with Unsupported
        Expected: True
        Actual:   False
        /_/src/libraries/System.Net.Security/tests/FunctionalTests/NegotiateAuthenticationKerberosTest.cs(48,0): at System.Net.Security.Tests.NegotiateAuthenticationKerberosTest.<>c.<Loopback_Success>b__2_0()
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodInvoker.cs(64,0): at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
        
        Child process:
          System.Net.Security.Tests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 System.Net.Security.Tests.NegotiateAuthenticationKerberosTest+<>c Void <Loopback_Success>b__2_0()
        
        
      Output:
        [Verbose] [Kerberos.NET.Server.KdcAsReqMessageHandler] AS-REQ requires pre-auth for user user
  Finished:    System.Net.Security.Tests

Runfo Tracking Issue: system.net.security.tests.negotiateauthenticationkerberostest.loopback_success

Build Definition Kind Run Name Console Core Dump Test Results Run Client
1926157 runtime-extra-platforms PR 73486 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.10.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-arm32v7-20210304164340-6616c63 console.log core dump runclient.py
1926157 runtime-extra-platforms PR 73486 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.11.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-arm32v7-20210304164347-5a7c380 console.log core dump runclient.py
1925560 runtime-extra-platforms PR 73374 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.10.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-arm32v7-20210304164340-6616c63 console.log core dump runclient.py
1925560 runtime-extra-platforms PR 73374 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.11.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-arm32v7-20210304164347-5a7c380 console.log core dump runclient.py
1925168 runtime-extra-platforms PR 73450 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.10.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-arm32v7-20210304164340-6616c63 console.log core dump runclient.py
1925168 runtime-extra-platforms PR 73450 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.11.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-arm32v7-20210304164347-5a7c380 console.log core dump runclient.py
1925111 runtime-extra-platforms PR 73445 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.10.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-arm32v7-20210304164340-6616c63 console.log core dump runclient.py
1925111 runtime-extra-platforms PR 73445 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.11.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-arm32v7-20210304164347-5a7c380 console.log core dump runclient.py
1925087 runtime-extra-platforms Rolling net7.0-Linux-Release-arm-CoreCLR_release-(Debian.10.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-arm32v7-20210304164340-6616c63 console.log core dump runclient.py
1925087 runtime-extra-platforms Rolling net7.0-Linux-Release-arm-CoreCLR_release-(Debian.11.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-arm32v7-20210304164347-5a7c380 console.log core dump runclient.py
1925032 runtime-extra-platforms PR 73442 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.10.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-arm32v7-20210304164340-6616c63 console.log core dump runclient.py
1925032 runtime-extra-platforms PR 73442 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.11.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-arm32v7-20210304164347-5a7c380 console.log core dump runclient.py
1924759 runtime-extra-platforms PR 73427 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.10.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-arm32v7-20210304164340-6616c63 console.log core dump runclient.py
1924759 runtime-extra-platforms PR 73427 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.11.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-arm32v7-20210304164347-5a7c380 console.log core dump runclient.py
1924473 runtime-extra-platforms PR 73283 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.10.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-arm32v7-20210304164340-6616c63 console.log core dump runclient.py
1924473 runtime-extra-platforms PR 73283 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.11.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-arm32v7-20210304164347-5a7c380 console.log core dump runclient.py
1924154 runtime-extra-platforms PR 73374 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.10.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-arm32v7-20210304164340-6616c63 console.log core dump runclient.py
1924154 runtime-extra-platforms PR 73374 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.11.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-arm32v7-20210304164347-5a7c380 console.log core dump runclient.py
1924154 runtime-extra-platforms PR 73374 net7.0-Linux-Release-arm64-NativeAOT_Release-(Ubuntu.1804.ArmArch.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm64v8-20220427172132-97d8652 console.log runclient.py
1924154 runtime-extra-platforms PR 73374 net7.0-Linux-Release-x64-NativeAOT_Release-(Debian.10.Amd64.Open)Ubuntu.1804.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-amd64-20210304164434-56c6673 console.log runclient.py
1924059 runtime-extra-platforms Rolling net7.0-Linux-Release-arm-CoreCLR_release-(Debian.10.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-arm32v7-20210304164340-6616c63 console.log core dump runclient.py
1924059 runtime-extra-platforms Rolling net7.0-Linux-Release-arm-CoreCLR_release-(Debian.11.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-arm32v7-20210304164347-5a7c380 console.log core dump runclient.py
1924059 runtime-extra-platforms Rolling net7.0-Linux-Release-arm64-NativeAOT_Release-(Ubuntu.1804.ArmArch.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm64v8-20220427172132-97d8652 console.log runclient.py
1924051 runtime-extra-platforms PR 71203 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.10.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-arm32v7-20210304164340-6616c63 console.log core dump runclient.py
1924051 runtime-extra-platforms PR 71203 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.11.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-arm32v7-20210304164347-5a7c380 console.log core dump runclient.py
1924051 runtime-extra-platforms PR 71203 net7.0-Linux-Release-x64-NativeAOT_Release-(Debian.10.Amd64.Open)Ubuntu.1804.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-amd64-20210304164434-56c6673 console.log runclient.py
1924051 runtime-extra-platforms PR 71203 net7.0-Linux-Release-arm64-NativeAOT_Release-(Ubuntu.1804.ArmArch.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm64v8-20220427172132-97d8652 console.log runclient.py
1924041 runtime-extra-platforms PR 73236 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.10.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-arm32v7-20210304164340-6616c63 console.log core dump runclient.py
1924041 runtime-extra-platforms PR 73236 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.11.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-arm32v7-20210304164347-5a7c380 console.log core dump runclient.py
1924041 runtime-extra-platforms PR 73236 net7.0-Linux-Release-x64-NativeAOT_Release-(Debian.10.Amd64.Open)Ubuntu.1804.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-amd64-20210304164434-56c6673 console.log runclient.py
1924041 runtime-extra-platforms PR 73236 net7.0-Linux-Release-arm64-NativeAOT_Release-(Ubuntu.1804.ArmArch.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm64v8-20220427172132-97d8652 console.log runclient.py
1923331 runtime-extra-platforms PR 71203 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.10.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-arm32v7-20210304164340-6616c63 console.log core dump runclient.py
1923331 runtime-extra-platforms PR 71203 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.11.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-arm32v7-20210304164347-5a7c380 console.log core dump runclient.py
1923331 runtime-extra-platforms PR 71203 net7.0-Linux-Release-arm64-NativeAOT_Release-(Ubuntu.1804.ArmArch.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm64v8-20220427172132-97d8652 console.log runclient.py
1923331 runtime-extra-platforms PR 71203 net7.0-Linux-Release-x64-NativeAOT_Release-(Debian.10.Amd64.Open)Ubuntu.1804.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-amd64-20210304164434-56c6673 console.log runclient.py
1923292 runtime-extra-platforms PR 73362 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.10.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-arm32v7-20210304164340-6616c63 console.log core dump runclient.py
1923292 runtime-extra-platforms PR 73362 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.11.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-arm32v7-20210304164347-5a7c380 console.log core dump runclient.py
1923208 runtime-extra-platforms PR 73374 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.10.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-arm32v7-20210304164340-6616c63 console.log core dump runclient.py
1923208 runtime-extra-platforms PR 73374 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.11.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-arm32v7-20210304164347-5a7c380 console.log core dump runclient.py
1923208 runtime-extra-platforms PR 73374 net7.0-Linux-Release-x64-NativeAOT_Release-(Debian.10.Amd64.Open)Ubuntu.1804.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-amd64-20210304164434-56c6673 console.log runclient.py
1923208 runtime-extra-platforms PR 73374 net7.0-Linux-Release-arm64-NativeAOT_Release-(Ubuntu.1804.ArmArch.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm64v8-20220427172132-97d8652 console.log runclient.py
1922689 runtime-extra-platforms PR 73283 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.10.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-arm32v7-20210304164340-6616c63 console.log core dump runclient.py
1922689 runtime-extra-platforms PR 73283 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.11.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-arm32v7-20210304164347-5a7c380 console.log core dump runclient.py
1922671 runtime-extra-platforms PR 73363 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.10.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-arm32v7-20210304164340-6616c63 console.log core dump runclient.py
1922671 runtime-extra-platforms PR 73363 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.11.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-arm32v7-20210304164347-5a7c380 console.log core dump runclient.py
1922671 runtime-extra-platforms PR 73363 net7.0-Linux-Release-x64-NativeAOT_Release-(Debian.10.Amd64.Open)Ubuntu.1804.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-amd64-20210304164434-56c6673 console.log runclient.py
1922671 runtime-extra-platforms PR 73363 net7.0-Linux-Release-arm64-NativeAOT_Release-(Ubuntu.1804.ArmArch.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm64v8-20220427172132-97d8652 console.log runclient.py
1922656 runtime-extra-platforms Rolling net7.0-Linux-Release-arm-CoreCLR_release-(Debian.10.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-arm32v7-20210304164340-6616c63 console.log core dump runclient.py
1922656 runtime-extra-platforms Rolling net7.0-Linux-Release-arm-CoreCLR_release-(Debian.11.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-arm32v7-20210304164347-5a7c380 console.log core dump runclient.py
1922656 runtime-extra-platforms Rolling net7.0-Linux-Release-arm64-NativeAOT_Release-(Ubuntu.1804.ArmArch.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm64v8-20220427172132-97d8652 console.log runclient.py
1922311 runtime-extra-platforms PR 71203 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.10.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-arm32v7-20210304164340-6616c63 console.log core dump runclient.py
1922311 runtime-extra-platforms PR 71203 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.11.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-arm32v7-20210304164347-5a7c380 console.log core dump runclient.py
1922311 runtime-extra-platforms PR 71203 net7.0-Linux-Release-arm64-NativeAOT_Release-(Ubuntu.1804.ArmArch.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm64v8-20220427172132-97d8652 console.log runclient.py
1922311 runtime-extra-platforms PR 71203 net7.0-Linux-Release-x64-NativeAOT_Release-(Debian.10.Amd64.Open)Ubuntu.1804.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-amd64-20210304164434-56c6673 console.log runclient.py
1922158 runtime-extra-platforms PR 73283 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.10.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-arm32v7-20210304164340-6616c63 console.log core dump runclient.py
1922158 runtime-extra-platforms PR 73283 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.11.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-arm32v7-20210304164347-5a7c380 console.log core dump runclient.py
1922158 runtime-extra-platforms PR 73283 net7.0-Linux-Release-x64-NativeAOT_Release-(Debian.10.Amd64.Open)Ubuntu.1804.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-amd64-20210304164434-56c6673 console.log runclient.py
1922158 runtime-extra-platforms PR 73283 net7.0-Linux-Release-arm64-NativeAOT_Release-(Ubuntu.1804.ArmArch.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm64v8-20220427172132-97d8652 console.log runclient.py
1922072 runtime-extra-platforms PR 73214 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.10.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-arm32v7-20210304164340-6616c63 console.log core dump runclient.py
1922072 runtime-extra-platforms PR 73214 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.11.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-arm32v7-20210304164347-5a7c380 console.log core dump runclient.py
1922072 runtime-extra-platforms PR 73214 net7.0-Linux-Release-x64-NativeAOT_Release-(Debian.10.Amd64.Open)Ubuntu.1804.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-amd64-20210304164434-56c6673 console.log runclient.py
1921669 runtime-extra-platforms PR 73258 net7.0-Linux-Release-x64-NativeAOT_Release-(Debian.10.Amd64.Open)Ubuntu.1804.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-amd64-20210304164434-56c6673 console.log runclient.py
1921669 runtime-extra-platforms PR 73258 net7.0-Linux-Release-arm64-NativeAOT_Release-(Ubuntu.1804.ArmArch.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm64v8-20220427172132-97d8652 console.log runclient.py
1921669 runtime-extra-platforms PR 73258 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.10.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-arm32v7-20210304164340-6616c63 console.log core dump runclient.py
1921669 runtime-extra-platforms PR 73258 net7.0-Linux-Release-arm-CoreCLR_release-(Debian.11.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-arm32v7-20210304164347-5a7c380 console.log core dump runclient.py
1921584 runtime-extra-platforms Rolling net7.0-Linux-Release-x64-NativeAOT_Release-(Debian.10.Amd64.Open)Ubuntu.1804.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-amd64-20210304164434-56c6673 console.log runclient.py
1921584 runtime-extra-platforms Rolling net7.0-Linux-Release-arm-CoreCLR_release-(Debian.10.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-arm32v7-20210304164340-6616c63 console.log core dump runclient.py
1921584 runtime-extra-platforms Rolling net7.0-Linux-Release-arm-CoreCLR_release-(Debian.11.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-helix-arm32v7-20210304164347-5a7c380 console.log core dump runclient.py
1921584 runtime-extra-platforms Rolling net7.0-Linux-Release-arm64-NativeAOT_Release-(Ubuntu.1804.ArmArch.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm64v8-20220427172132-97d8652 console.log runclient.py
1921169 runtime-extra-platforms PR 73216 net7.0-Linux-Release-arm64-NativeAOT_Release-(Ubuntu.1804.ArmArch.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm64v8-20220427172132-97d8652 console.log runclient.py
1921169 runtime-extra-platforms PR 73216 net7.0-Linux-Release-x64-NativeAOT_Release-(Debian.10.Amd64.Open)Ubuntu.1804.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-amd64-20210304164434-56c6673 console.log runclient.py
1921169 runtime-extra-platforms PR 73216 net7.0-Linux-Release-x64-NativeAOT_Release-(Debian.10.Amd64.Open)Ubuntu.1804.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-amd64-20210304164434-56c6673 console.log runclient.py
1921169 runtime-extra-platforms PR 73216 net7.0-Linux-Release-arm64-NativeAOT_Release-(Ubuntu.1804.ArmArch.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm64v8-20220427172132-97d8652 console.log runclient.py

Build Result Summary

Day Hit Count Week Hit Count Month Hit Count
8 24 24
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Aug 4, 2022
@ghost
Copy link

ghost commented Aug 4, 2022

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

Issue Details

Runfo Creating Tracking Issue (data being generated)

Author: runfoapp[bot]
Assignees: -
Labels:

area-System.Net

Milestone: -

@noahfalk noahfalk added the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Aug 4, 2022
@wfurt
Copy link
Member

wfurt commented Aug 4, 2022

cc: @filipnavara

@wfurt wfurt added area-System.Net.Security and removed untriaged New issue has not been triaged by the area owner area-System.Net labels Aug 4, 2022
@ghost
Copy link

ghost commented Aug 4, 2022

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

Issue Details

This test failed in CI rolling build 1920255.

https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-main-d6e349c2b9554af286/System.Net.Security.Tests/3/console.eb09806e.log?%3Fhelixlogtype%3Dresult

Unhandled exception. Xunit.Sdk.TrueException: Client authentication failed with Unsupported
Expected: True
Actual:   False
   at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/xunit.assert/Asserts/BooleanAsserts.cs:line 132
   at System.Net.Security.Tests.NegotiateAuthenticationKerberosTest.<>c.<Loopback_Success>b__2_0() in /_/src/libraries/System.Net.Security/tests/FunctionalTests/NegotiateAuthenticationKerberosTest.cs:line 48
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodInvoker.cs:line 64
--- End of stack trace from previous location ---
   at Microsoft.DotNet.RemoteExecutor.Program.Main(String[] args) in /_/src/Microsoft.DotNet.RemoteExecutor/src/Program.cs:line 94
    System.Net.Security.Tests.SslStreamCertificateTrustTest.SslStream_SendCertificateTrust_ThrowsOnUnsupportedPlatform [SKIP]
      Condition(s) not met: "DoesNotSupportSendingCustomCANamesInTls"
    System.Net.Security.Tests.NegotiateAuthenticationKerberosTest.Loopback_Success [FAIL]
      Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Remote process failed with an unhandled exception.
      Stack Trace:
        
        Child exception:
          Xunit.Sdk.TrueException: Client authentication failed with Unsupported
        Expected: True
        Actual:   False
        /_/src/libraries/System.Net.Security/tests/FunctionalTests/NegotiateAuthenticationKerberosTest.cs(48,0): at System.Net.Security.Tests.NegotiateAuthenticationKerberosTest.<>c.<Loopback_Success>b__2_0()
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodInvoker.cs(64,0): at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
        
        Child process:
          System.Net.Security.Tests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 System.Net.Security.Tests.NegotiateAuthenticationKerberosTest+<>c Void <Loopback_Success>b__2_0()
        
        
      Output:
        [Verbose] [Kerberos.NET.Server.KdcAsReqMessageHandler] AS-REQ requires pre-auth for user user
  Finished:    System.Net.Security.Tests
Build Kind Start Time
1920255 Rolling 2022-03-08
Author: runfoapp[bot]
Assignees: -
Labels:

area-System.Net, area-System.Net.Security, blocking-clean-ci

Milestone: -

@wfurt wfurt added this to the 7.0.0 milestone Aug 4, 2022
@filipnavara
Copy link
Member

There are multiple unrelated errors in the log:

  • NativeAOT failing because of some reflection in Kerberos.NET
  • Two builds failing with Unsupported in the Kerberos tests. In both cases it seems to be ARM32 and Debian (different machines though). It could be a misconfigured machine but I don't have access to anything even remotely similar to that configuration.

@filipnavara
Copy link
Member

filipnavara commented Aug 4, 2022

I submitted fix for the NativeAOT problem. For the other one I will try to open a test PR to redirect KRB5_TRACE logs into xUnit output to get more information.

@filipnavara
Copy link
Member

So, there's no Kerberos trace in the logs even in the latest builds. This matches the behavior when the environment variables are not correctly passed to the second process. It's a wild guess and I am not sure why would that happen specifically in the ARM32/Linux environment.

I think I can verify the theory easily.

@filipnavara
Copy link
Member

@filipnavara
Copy link
Member

Uff, looks like Azure Pipelines UI just doesn't show the test output but it's actually there:

      Output:
        [Verbose] [Kerberos.NET.Server.KdcAsReqMessageHandler] AS-REQ requires pre-auth for user user
        GSSAPI trace:
        [90] 1659694862.602038: Resolving unique ccache of type MEMORY
        [90] 1659694862.602039: Getting initial credentials for user@LINUX.CONTOSO.COM
        [90] 1659694862.602041: Sending unauthenticated request
        [90] 1659694862.602042: Sending request (194 bytes) to LINUX.CONTOSO.COM
        [90] 1659694862.602043: Resolving hostname 127.0.0.1
        [90] 1659694862.602044: Sending initial UDP request to dgram 127.0.0.1:46751
        [90] 1659694862.602045: Initiating TCP connection to stream 127.0.0.1:46751
        [90] 1659694862.602046: Sending TCP request to stream 127.0.0.1:46751
        [90] 1659694862.602047: Received answer (266 bytes) from stream 127.0.0.1:46751
        [90] 1659694862.602048: Terminating TCP connection to stream 127.0.0.1:46751
        [90] 1659694862.602049: Response was from master KDC
        [90] 1659694862.602050: Received error from KDC: -1765328359/Additional pre-authentication required
        [90] 1659694862.602053: Preauthenticating using KDC method data
        [90] 1659694862.602054: Processing preauth types: PA-ENC-TIMESTAMP (2), PA-ETYPE-INFO2 (19)
        [90] 1659694862.602055: Selected etype info: etype aes256-cts, salt "LINUX.CONTOSO.COMuser", params ""
        [90] 1659694862.602056: AS key obtained for encrypted timestamp: aes256-cts/E768
        [90] 1659694862.602058: Encrypted timestamp (for 1659694862.6): plain 3018A011180F32303232303830353130323130325AA103020106, encrypted 746B4F2FB802575CC02DD6813414AB0D7D1A2CE9CF3F4CF56A723AD5C047E92793B0EB551A10BE097F8A65547E8EBB914896EA9CC6FD
        [90] 1659694862.602059: Preauth module encrypted_timestamp (2) (real) returned: 0/Success
        [90] 1659694862.602060: Produced preauth for next request: PA-ENC-TIMESTAMP (2)
        [90] 1659694862.602061: Sending request (272 bytes) to LINUX.CONTOSO.COM
        [90] 1659694862.602062: Resolving hostname 127.0.0.1
        [90] 1659694862.602063: Sending initial UDP request to dgram 127.0.0.1:46751
        [90] 1659694862.602064: Initiating TCP connection to stream 127.0.0.1:46751
        [90] 1659694862.602065: Sending TCP request to stream 127.0.0.1:46751
        [90] 1659694862.602066: Received answer (715 bytes) from stream 127.0.0.1:46751
        [90] 1659694862.602067: Terminating TCP connection to stream 127.0.0.1:46751
        [90] 1659694862.602068: Response was from master KDC
        [90] 1659694862.602069: Processing preauth types: (empty)
        [90] 1659694862.602070: Produced preauth for next request: (empty)
        [90] 1659694862.602071: AS key determined by preauth: aes256-cts/E768
        [90] 1659694862.602072: Decrypt with preauth AS key failed: 1859794432/ASN.1 failed call to system time library
        [90] 1659694862.602073: Getting AS key, salt "LINUX.CONTOSO.COMuser", params ""
        [90] 1659694863.13085: AS key obtained from gak_fct: aes256-cts/E768
        [90] 1659694863.13086: Destroying ccache MEMORY:AbfyLWo

The interesting part is likely Decrypt with preauth AS key failed: 1859794432/ASN.1 failed call to system time library.

@wfurt
Copy link
Member

wfurt commented Aug 5, 2022

how about we disable the tests on Arm32 @filipnavara? I'll try to get hands on repro machine and I can try to collect more info next week.

@filipnavara
Copy link
Member

I am fine with disabling them and continuing to investigate. I'm just not quite sure how to disable the tests on particular architecture (aside from manual check here).

@wfurt
Copy link
Member

wfurt commented Aug 5, 2022

as it is transient, I think updating IsSupported would be fine.

@filipnavara
Copy link
Member

Submitted as #73445, needs a /azp run runtime-extra-platforms comment from someone with sufficient privileges.

@filipnavara
Copy link
Member

I managed to reproduce the issue with the Helix payload on Debian machine running in AWS on ARM64 machine (with ARM32 binaries). That's a good start for debugging it.

@filipnavara
Copy link
Member

The krb5 error comes from here and indeed the input date is wrong. The value is 28551105204820Z instead of 20220805204820Z. It's quite difficult to debug since this is part of the encrypted data...

@wfurt
Copy link
Member

wfurt commented Aug 6, 2022

is it possible the system time is far off? Do you know if it uses time_t or something else?

@filipnavara
Copy link
Member

The system time is correct, Kerberos.NET gets it right (printed it to console). It's wrong only inside the encrypted ASN.1 payload. I'll narrow it down.

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Aug 6, 2022
@filipnavara
Copy link
Member

So, it is not really corrupted. It's just that the expiration time was so far in the future that GSSAPI could not handle it. The interesting part is that it behaves differently on ARM32 but it succeeds on all other platforms, including x86.

@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Aug 6, 2022
@karelz karelz added the test-bug Problem in test source code (most likely) label Aug 7, 2022
@uweigand
Copy link
Contributor

This new test is failing on s390x, see https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-main-9f276d5b7fb54d338b/System.Net.Security.Tests/3/console.08289088.log?helixlogtype=result

Xunit.Sdk.TrueException: Server authentication failed with GenericFailure

Looking into this a bit more closely, we get the following error from GSSAPI:

GSSAPI operation failed with error - Unspecified GSS failure.  Minor code may provide more information (Keytab FILE:/tmp/tmpImjGtI.tmp is nonexistent or empty).

This in turn happens because the keytab file is in fact incorrect, specifically it contains length fields in little-endian byte order even though specifying a file version number of "2" to indicate big-endian byte order:

0000000 05 02 4b 00 00 00 02 00 11 00 4c 49 4e 55 58 2e
0000020 43 4f 4e 54 4f 53 4f 2e 43 4f 4d 04 00 48 54 54

According to https://web.mit.edu/kerberos/krb5-1.12/doc/formats/keytab_file_format.html:

There are two versions of the file format used by the FILE keytab type. The first byte of the file always has the value 5, and the value of the second byte contains the version number (1 or 2). Version 1 of the file format uses native byte order for integer representations. Version 2 always uses big-endian byte order.

So the first couple of bytes "05 02" should be followed by a big-endian length indication, but "4b 00 00 00" is clearly little-endian.

I understand in the context of this test case, the keytab file was written by Kerberos.NET, and this does indeed apparently attempt to write a big-endian length field: https://github.com/dotnet/Kerberos.NET/blob/559bec87d6eb1fb8698418c3aacafbbc7c32bdec/Kerberos.NET/Crypto/KeyEntry.cs#L264

However, it does so by unconditionally inverting bytes from native endianess, which works only if the host is little-endian. On a big-endian host this is incorrect.

How can we best proceed to fix this? I guess first of all this needs to be fixed in Kerberos.NET, but will the test case then pull in an updated version? Or should we just disable the test on big-endian hosts for now?

FYI @steveisok @directhex

@SteveSyfuhs
Copy link

Oops. PR to fix. Will go into a new nuget package once merged. dotnet/Kerberos.NET#307

@SteveSyfuhs
Copy link

Fixed in nuget v4.5.176 https://www.nuget.org/packages/Kerberos.NET/4.5.176. Uploading now, should be available for general distribution in a few minutes.

@uweigand
Copy link
Contributor

Fixed in nuget v4.5.176 https://www.nuget.org/packages/Kerberos.NET/4.5.176. Uploading now, should be available for general distribution in a few minutes.

Thanks! It looks like this is now on nuget.org, but it doesn't seem to be available yet in "dotnet-public" (https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json), where the runtime build is looking for it.

But the good news is that when I force it to use the 4.5.176 package from nuget.org, all System.Net.Security.Tests test cases now pass on s390x.

@wfurt
Copy link
Member

wfurt commented Aug 10, 2022

I think we may need to manual sync once again for updated Kerberos.NET package.
#71824 (comment)
cc: @MattGal @oleksandr-didyk

@am11
Copy link
Member

am11 commented Aug 10, 2022

We consume dotnet/command-line-api from dotnet-libraries feed, so dotnet/Kerberos.NET (also a library package) can use the same feed. Currently Kerberos.NET is set up with a personal account.

@uweigand
Copy link
Contributor

Any update on the package sync? The test is still failing on mainline on s390x.

@leecow
Copy link
Member

leecow commented Aug 24, 2022

@wfurt - what do we need to do to get the test updated with the new package

cc: @MattGal

@filipnavara
Copy link
Member

The NuGet has to be copied from the public nuget.org feed to one of those that are consumed by this repository (it is currently in dotnet-public iirc). It was a manual one off process but unfortunately I don't have the access to the resources to do it.

@leecow
Copy link
Member

leecow commented Aug 24, 2022

Thanks, @filipnavara; any ideas on who we might tap for help?

@wfurt
Copy link
Member

wfurt commented Aug 24, 2022

cc @dotnet/dnceng

@MattGal
Copy link
Member

MattGal commented Aug 25, 2022

Chatted with @wfurt , pushed Kerberos.NET @ 4.5.178 to dotnet-public.

@filipnavara
Copy link
Member

@uweigand #74554 should fix it. Thanks for the report!

@ghost ghost added in-pr There is an active PR which will close this issue when it is merged and removed in-pr There is an active PR which will close this issue when it is merged labels Aug 25, 2022
@karelz
Copy link
Member

karelz commented Aug 26, 2022

Fixed in main (8.0) in PR #74554 and in 7.0 (RC2) in PR #74600

@karelz
Copy link
Member

karelz commented Aug 27, 2022

@filipnavara this is still happening in main in latest Rolling runs - I will file a new issue

@filipnavara
Copy link
Member

@karelz It must be happening on some obscure platform combination that is not part of any normal/extra PR pipelines. I need a link to the failed runs to figure out what is going on.

The other issue showed some obscure build that looked like "Android" but was not the standard Android pipeline (where the tests are intentionally disabled).

@steveisok
Copy link
Member

We have a Linux-bionic configuration that will run on android, but without needing the dalvik vm.

I just recently moved it over to runtime-extra-platforms, so that's probably what you're seeing fail.

@ghost ghost locked as resolved and limited conversation to collaborators Sep 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Net.Security test-bug Problem in test source code (most likely)
Projects
None yet
10 participants