Skip to content

ClientAndServer_OneOrBothUseDefault_Ok - fails with NullReferenceException #2353

Closed
@ViktorHofer

Description

@ViktorHofer

https://dnceng.visualstudio.com/public/_build/results?buildId=395007&view=ms.vss-test-web.build-test-results-tab&runId=12313218&resultId=165447&paneView=debug

Configuration: System.NullReferenceException : Object reference not set to an instance of an object.

System.NullReferenceException : Object reference not set to an instance of an object.
  at System.Net.Security.SslSessionsCache.CacheCredential(SafeFreeCredentials creds, Byte[] thumbPrint, SslProtocols sslProtocols, Boolean isServer, EncryptionPolicy encryptionPolicy) in /_/src/System.Net.Security/src/System/Net/Security/SslSessionsCache.cs:line 199
   at System.Net.Security.SecureChannel.GenerateToken(Byte[] input, Int32 offset, Int32 count, Byte[]& output) in /_/src/System.Net.Security/src/System/Net/Security/SecureChannel.cs:line 843
   at System.Net.Security.SecureChannel.NextMessage(Byte[] incoming, Int32 offset, Int32 count) in /_/src/System.Net.Security/src/System/Net/Security/SecureChannel.cs:line 735
   at System.Net.Security.SslStream.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) in /_/src/System.Net.Security/src/System/Net/Security/SslStream.Implementation.cs:line 447
   at System.Net.Security.SslStream.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) in /_/src/System.Net.Security/src/System/Net/Security/SslStream.Implementation.cs:line 663
   at System.Net.Security.SslStream.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) in /_/src/System.Net.Security/src/System/Net/Security/SslStream.Implementation.cs:line 617
   at System.Net.Security.SslStream.PartialFrameCallback(AsyncProtocolRequest asyncRequest) in /_/src/System.Net.Security/src/System/Net/Security/SslStream.Implementation.cs:line 798
--- End of stack trace from previous location ---
   at System.Net.Security.SslStream.<ThrowIfExceptional>g__ThrowExceptional|141_0(ExceptionDispatchInfo e) in /_/src/System.Net.Security/src/System/Net/Security/SslStream.cs:line 844
   at System.Net.Security.SslStream.ThrowIfExceptional() in /_/src/System.Net.Security/src/System/Net/Security/SslStream.cs:line 845
   at System.Net.Security.SslStream.InternalEndProcessAuthentication(LazyAsyncResult lazyResult) in /_/src/System.Net.Security/src/System/Net/Security/SslStream.Implementation.cs:line 440
   at System.Net.Security.SslStream.EndProcessAuthentication(IAsyncResult result) in /_/src/System.Net.Security/src/System/Net/Security/SslStream.Implementation.cs:line 411
   at System.Net.Security.SslStream.EndAuthenticateAsClient(IAsyncResult asyncResult) in /_/src/System.Net.Security/src/System/Net/Security/SslStream.cs:line 241
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) in /_/src/System.Private.CoreLib/shared/System/Threading/Tasks/FutureFactory.cs:line 513
--- End of stack trace from previous location ---
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in /_/src/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 83
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in /_/src/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 111
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks, Int32 millisecondsTimeout) in /_/src/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 71
   at System.Net.Security.Tests.SslStreamSystemDefaultTest.ClientAndServer_OneOrBothUseDefault_Ok(Nullable`1 clientProtocols, Nullable`1 serverProtocols) in /_/src/System.Net.Security/tests/FunctionalTests/SslStreamSystemDefaultsTest.cs:line 63
--- End of stack trace from previous location ---

cc @davidsh, @wfurt, @scalablecory, @eiriktsarpalis, @karelz

Runfo Tracking Issue: Runtime test ClientAndServer_OneOrBothUseDefault_Ok

Build Definition Kind Run Name Console Core Dump Test Results Run Client
1254354 runtime PR 55298 net6.0-windows-Debug-x64-CoreCLR_release-Windows.10.Amd64.Client21H1.Open console.log runclient.py
1254354 runtime PR 55298 net6.0-windows-Debug-x64-CoreCLR_release-Windows.10.Amd64.Client21H1.Open console.log runclient.py
1254354 runtime PR 55298 net6.0-windows-Debug-x64-CoreCLR_release-Windows.10.Amd64.Client21H1.Open console.log runclient.py
1254354 runtime PR 55298 net6.0-windows-Debug-x64-CoreCLR_release-Windows.10.Amd64.Client21H1.Open console.log runclient.py
1254354 runtime PR 55298 net6.0-windows-Debug-x64-CoreCLR_release-Windows.10.Amd64.Client21H1.Open console.log runclient.py
1254354 runtime PR 55298 net6.0-windows-Debug-x64-CoreCLR_release-Windows.10.Amd64.Client21H1.Open console.log runclient.py
1254354 runtime PR 55298 net6.0-windows-Debug-x64-CoreCLR_release-Windows.10.Amd64.Client21H1.Open console.log runclient.py
1254354 runtime PR 55298 net6.0-windows-Debug-x64-CoreCLR_release-Windows.10.Amd64.Client21H1.Open console.log runclient.py
1254354 runtime PR 55298 net6.0-windows-Debug-x64-CoreCLR_release-Windows.10.Amd64.Client21H1.Open console.log runclient.py

Build Result Summary

Day Hit Count Week Hit Count Month Hit Count
0 0 1

Metadata

Metadata

Assignees

Labels

area-System.Net.Securityblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'bugos-windowstenet-reliabilityReliability/stability related issue (stress, load problems, etc.)test-run-coreTest failures in .NET Core test runs

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions