Skip to content

ClientWebSocket_Abort_CloseOutputAsync failed in CI on Unix #17602

Closed
dotnet/corefx
#9412

Description

@stephentoub

http://dotnet-ci.cloudapp.net/job/dotnet_corefx/job/master/job/osx_debug_prtest/2082/consoleText

System.Net.WebSockets.Client.Tests.ClientWebSocketTest.ClientWebSocket_Abort_CloseOutputAsync(server: wss://corefx-net.cloudapp.net/WebSocket/EchoWebSocket.ashx) [FAIL]
        System.InvalidOperationException : This operation is only allowed using a successfully authenticated context.
        Stack Trace:
  Using /Users/dotnet-bot/j/workspace/dotnet_corefx/master/osx_debug_prtest@2/packages/ as folder for resolving package dependencies.
  Executing in /Users/dotnet-bot/j/workspace/dotnet_corefx/master/osx_debug_prtest@2/bin/tests/AnyOS.AnyCPU.Debug/System.Composition.Tests/netcoreapp1.0
  Executing in unpack directory, do not have to copy files
  Hard linking dependent files...
              at System.Net.Security.SslState.CheckThrow(Boolean authSucessCheck)
              at System.Net.Security.SslState.get_SecureStream()
              at System.Net.Security.SslStream.EndWrite(IAsyncResult asyncResult)
              at System.Net.Security.SslStream.<>c.<WriteAsync>b__86_1(IAsyncResult iar)
              at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
           --- End of stack trace from previous location where exception was thrown ---
              at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
              at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
              at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult()
              at System.Net.WebSockets.WebSocketHandle.ManagedClientWebSocket.<SendFrameAsync>d__59.MoveNext()
           --- End of stack trace from previous location where exception was thrown ---
              at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
              at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
              at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult()
              at System.Net.WebSockets.WebSocketHandle.ManagedClientWebSocket.<SendCloseFrameAsync>d__69.MoveNext()
           --- End of stack trace from previous location where exception was thrown ---
              at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
              at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
              at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
              at System.Net.WebSockets.Client.Tests.ClientWebSocketTest.<>c.<<ClientWebSocket_Abort_CloseOutputAsync>b__37_0>d.MoveNext()
           --- End of stack trace from previous location where exception was thrown ---
              at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
              at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
              at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
              at System.Net.WebSockets.Client.Tests.ClientWebSocketTest.<TestCancellation>d__44.MoveNext()
           --- End of stack trace from previous location where exception was thrown ---
              at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
              at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
              at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
              at System.Net.WebSockets.Client.Tests.ClientWebSocketTest.<ClientWebSocket_Abort_CloseOutputAsync>d__37.MoveNext()
           --- End of stack trace from previous location where exception was thrown ---
              at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
              at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
           --- End of stack trace from previous location where exception was thrown ---
              at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
              at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
           --- End of stack trace from previous location where exception was thrown ---
              at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
              at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

Activity

  1. self-assigned this
    on Jun 14, 2016
  2. stephentoub commented on Jun 14, 2016

    @stephentoub
    MemberAuthor

    Related but different test, same issue here:
    http://dotnet-ci.cloudapp.net/job/dotnet_corefx/job/master/job/osx_release/502/consoleText

     System.Net.WebSockets.Client.Tests.ClientWebSocketTest.Abort_SendAndAbort_Success(server: wss://corefx-net.cloudapp.net/WebSocket/EchoWebSocket.ashx) [FAIL]
            System.InvalidOperationException : This operation is only allowed using a successfully authenticated context.
            Stack Trace:
                  at System.Net.Security.SslState.CheckThrow(Boolean authSucessCheck)
                  at System.Net.Security.SslState.get_SecureStream()
                  at System.Net.Security.SslStream.<>c.<WriteAsync>b__86_1(IAsyncResult iar)
                  at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
               --- End of stack trace from previous location where exception was thrown ---
                  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
                  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
                  at System.Net.WebSockets.WebSocketHandle.ManagedClientWebSocket.<SendFrameAsync>d__59.MoveNext()
               --- End of stack trace from previous location where exception was thrown ---
                  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
                  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
                  at System.Net.WebSockets.Client.Tests.ClientWebSocketTest.<>c.<<Abort_SendAndAbort_Success>b__34_0>d.MoveNext()
               --- End of stack trace from previous location where exception was thrown ---
                  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
                  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
                  at System.Net.WebSockets.Client.Tests.ClientWebSocketTest.<TestCancellation>d__44.MoveNext()
               --- End of stack trace from previous location where exception was thrown ---
                  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
                  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
                  at System.Net.WebSockets.Client.Tests.ClientWebSocketTest.<Abort_SendAndAbort_Success>d__34.MoveNext()
               --- End of stack trace from previous location where exception was thrown ---
                  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
                  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
               --- End of stack trace from previous location where exception was thrown ---
                  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
                  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
               --- End of stack trace from previous location where exception was thrown ---
                  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
                  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
  3. bartonjs commented on Jun 17, 2016

    @bartonjs
    Member

    This was seen in the wild (or, rather, CI) again :(.

  4. stephentoub commented on Jun 19, 2016

    @stephentoub
    MemberAuthor

    Re-closing. The occurrence seen was not run with the fix.

  5. transferred this issue fromdotnet/corefxon Jan 31, 2020
  6. added this to the 1.1.0 milestone on Jan 31, 2020
  7. ghost locked as resolved and limited conversation to collaborators on Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-System.Netos-linux

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions