dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.47k stars 4.76k forks source link

Test failure: System.Security.Cryptography.X509Certificates.Tests.PfxIterationCountTests_X509Certificate2.Import_IterationCountLimitExceeded_ThrowsInAllottedTime #105609

Closed v-wenyuxu closed 2 months ago

v-wenyuxu commented 4 months ago

Failed in: runtime-coreclr libraries-jitstress 20240728.1

Failed tests:

net9.0-windows-Release-arm64-disabler2r-Windows.11.Arm64.Open
    - System.Security.Cryptography.X509Certificates.Tests.PfxIterationCountTests_X509Certificate2.Import_IterationCountLimitExceeded_ThrowsInAllottedTime

Error message:

 Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Half-way through waiting for remote process.
Memory load: 38

Image Name                     PID Services                                    
========================= ======== ============================================
svchost.exe                    920 BrokerInfrastructure, DcomLaunch, Power,    
                                   SystemEventsBroker                          
svchost.exe                    476 RpcEptMapper, RpcSs                         
svchost.exe                    528 LSM                                         
svchost.exe                   1048 CryptSvc                                    
svchost.exe                   1056 TermService                                 
svchost.exe                   1128 lmhosts                                     
svchost.exe                   1176 NcbService                                  
svchost.exe                   1292 AppIDSvc                                    
svchost.exe                   1324 nsi                                         
svchost.exe                   1332 TimeBrokerSvc                               
svchost.exe                   1444 netprofm                                    
svchost.exe                   1516 Schedule                                    
svchost.exe                   1544 CoreMessagingRegistrar                      
svchost.exe                   1588 ProfSvc                                     
svchost.exe                   1616 UmRdpService                                
svchost.exe                   1756 vmicheartbeat                               
svchost.exe                   1780 UserManager                                 
svchost.exe                   1820 vmicshutdown                                
svchost.exe                   1828 vmickvpexchange                             
svchost.exe                   1836 LanmanWorkstation                           
svchost.exe                   1924 vmictimesync                                
svchost.exe                    640 DispBrokerDesktopSvc                        
svchost.exe                   2096 Dnscache                                    
svchost.exe                   2104 SessionEnv                                  
svchost.exe                   2148 EventLog                                    
svchost.exe                   2192 CertPropSvc                                 
svchost.exe                   2332 SysMain                                     
svchost.exe                   2340 EventSystem                                 
svchost.exe                   2356 Themes                                      
svchost.exe                   2508 SENS                                        
svchost.exe                   2532 Dhcp                                        
svchost.exe                   2584 AudioEndpointBuilder                        
svchost.exe                   2608 FontCache                                   
svchost.exe                   2692 Audiosrv                                    
svchost.exe                   2736 WinHttpAutoProxySvc                         
svchost.exe                   2812 TextInputManagementService                  
svchost.exe                   2868 DusmSvc                                     
svchost.exe                   2876 Wcmsvc                                      
svchost.exe                   2976 ShellHWDetection                            
svchost.exe                   2772 BFE, mpssvc                                 
svchost.exe                   3168 DiagTrack                                   
svchost.exe                   3176 DPS                                         
svchost.exe                   3184 iphlpsvc                                    
svchost.exe                   3232 LanmanServer                                
svchost.exe                   3288 StateRepository                   

Stack trace:

   at Microsoft.DotNet.RemoteExecutor.RemoteInvokeHandle.Dispose(Boolean disposing) in /_/src/Microsoft.DotNet.RemoteExecutor/src/RemoteInvokeHandle.cs:line 225
   at System.Security.Cryptography.X509Certificates.Tests.PfxIterationCountTests_X509Certificate2.Import_IterationCountLimitExceeded_ThrowsInAllottedTime() in /_/src/libraries/System.Security.Cryptography/tests/X509Certificates/PfxIterationCountTests.X509Certificate2.cs:line 47
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57

Known Issue Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "System.Security.Cryptography.X509Certificates.Tests.PfxIterationCountTests_X509Certificate2.Import_IterationCountLimitExceeded_ThrowsInAllottedTime [FAIL]",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=758024 Error message validated: [System.Security.Cryptography.X509Certificates.Tests.PfxIterationCountTests_X509Certificate2.Import_IterationCountLimitExceeded_ThrowsInAllottedTime [FAIL]] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 8/12/2024 2:00:03 PM UTC

Report

Build Definition Test Pull Request
812752 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.PfxIterationCountTests_X509Certificate2.Import_IterationCountLimitExceeded_ThrowsInAllottedTime dotnet/runtime#104731
811593 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.PfxIterationCountTests_X509Certificate2.Import_IterationCountLimitExceeded_ThrowsInAllottedTime dotnet/runtime#107836
811460 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.PfxIterationCountTests_X509Certificate2.Import_IterationCountLimitExceeded_ThrowsInAllottedTime dotnet/runtime#107960
797562 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.PfxIterationCountTests_X509Certificate2.Import_IterationCountLimitExceeded_ThrowsInAllottedTime dotnet/runtime#107353
797304 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.PfxIterationCountTests_X509Certificate2.Import_IterationCountLimitExceeded_ThrowsInAllottedTime dotnet/runtime#107291

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 3 5
dotnet-policy-service[bot] commented 4 months ago

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

jakobbotsch commented 3 months ago

Hit in innerloop run in https://dev.azure.com/dnceng-public/public/_build/results?buildId=772593&view=results without JitStress

SamMonoRT commented 2 months ago

@krwq @vcsjones - any ideas who might be the best owner for this issue?

dotnet-policy-service[bot] commented 2 months ago

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

jkotas commented 2 months ago

This is hit almost once a day.

vcsjones commented 2 months ago

This is slightly odd. Locally, the remote executor finish its work in < 1 second. Is CI so bogged down that it takes 5 seconds to spin up a process and run this functionality?

Does that only happen in stress runs?

We can extend the timeout to 10 seconds, but it seems like that shouldn't be needed.

jkotas commented 2 months ago

Is CI so bogged down that it takes 5 seconds to spin up a process and run this functionality?

It is not unusual for process start to take this long on overloaded CI machines.

One option is to move the tests that are sensitive to timeouts to outer loop.

Does that only happen in stress runs?

It just happened on a regular CI run in my PR (no stress).