Repository navigation
ClientAndServer_OneOrBothUseDefault_Ok - fails with NullReferenceException #2353
Copy link
Copy link
Closed
Labels
area-System.Net.Securityblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'bugos-windowstenet-reliabilityReliability/stability related issue (stress, load problems, etc.)Reliability/stability related issue (stress, load problems, etc.)test-run-coreTest failures in .NET Core test runsTest failures in .NET Core test runs
Milestone
Description
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 |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-System.Net.Securityblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'bugos-windowstenet-reliabilityReliability/stability related issue (stress, load problems, etc.)Reliability/stability related issue (stress, load problems, etc.)test-run-coreTest failures in .NET Core test runsTest failures in .NET Core test runs
Activity
karelz commentedon Dec 5, 2019
Triage: @davidsh thinks we have a bug SslSessionCache (long existing probably)
wfurt commentedon Jan 29, 2020
I see ~ 3K failures in the last 90 days - all on Windows failing for few different reasons.
#2352 is probably the same root cause.
[-]System.Net.Security.Tests.ApmSslStreamSystemDefaultTest.ClientAndServer_OneOrBothUseDefault_Ok(clientProtocols: Tls | Tls11 | Tls12, serverProtocols: null) test failing in CI with NullReferenceException[/-][+]ClientAndServer_OneOrBothUseDefault_Ok- fails with NullReferenceException[/+][-]ClientAndServer_OneOrBothUseDefault_Ok- fails with NullReferenceException[/-][+]ClientAndServer_OneOrBothUseDefault_Ok - fails with NullReferenceException[/+]karelz commentedon May 7, 2020
@wfurt thinks it is related/duplicate also to failures in #34337 and #30724 ... and to #2352 mentioned above.
5 remaining items
aik-jahoda commentedon May 22, 2020
I'm able to reproduce similar null reference exception and I expect it is from the same root cause thus reopening.
directhex commentedon Sep 30, 2020
Definitely still a problem, e.g. https://helix.dot.net/api/2019-06-17/jobs/7ad9e59f-28f1-4e71-8f8c-69ddbc03698d/workitems/System.Net.Security.Tests/files/console.0b2bbc5d.log was within the last 2 weeks
aik-jahoda commentedon Jan 7, 2021
Closed by #36875, please reopen in case of next occurence
Anipik commentedon Feb 8, 2021
Failed here https://dev.azure.com/dnceng/public/_build/results?buildId=982443&view=results
log https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-master-d220956cb6aa4d46ab/System.Net.Security.Tests/console.d5707fc8.log?sv=2019-07-07&se=2021-02-27T17%3A34%3A03Z&sr=c&sp=rl&sig=6Ku0E7%2Bp7kYVfpVL71sgrbJhO0XT9SDCuydUcFeKTQ4%3D
karelz commentedon May 12, 2021
No hits of NullReference anymore -- remaining ObjectDisposedException failures tracked in #30724.