System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_IncrementBy_IncrementByReadOnly failed with "Attempted to perform an unauthorized operation"
Build Information
Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1051241 Build error leg or test failing: System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_IncrementBy_IncrementByReadOnly Pull request: https://github.com/dotnet/runtime/pull/115993
Error Message
Fill the error message using step by step known issues guidance.
{
"ErrorMessage": ["System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_IncrementBy_IncrementByReadOnly [FAIL]", "System.UnauthorizedAccessException : Attempted to perform an unauthorized operation."],
"ErrorPattern": "",
"BuildRetry": false,
"ExcludeConsoleLog": false
}
Known issue validation
Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1051241
Error message validated: [System.UnauthorizedAccessException : Attempted to perform an unauthorized operation System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_IncrementBy_IncrementByReadOnly [FAIL]]
Result validation: :x: Known issue did not match with the provided build.
Validation performed at: 5/27/2025 2:38:43 PM UTC
Known issue validation
Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1051241
Error message validated: [System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_IncrementBy_IncrementByReadOnly [FAIL]]
Result validation: :white_check_mark: Known issue matched with the provided build.
Validation performed at: 5/27/2025 2:39:42 PM UTC
Known issue validation
Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1051241
Error message validated: [System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_IncrementBy_IncrementByReadOnly [FAIL] System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.]
Result validation: :white_check_mark: Known issue matched with the provided build.
Validation performed at: 5/27/2025 2:40:54 PM UTC
Report
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 0 | 2 | 9 |
Tagging subscribers to this area: @dotnet/area-system-diagnostics-performancecounter See info in area-owners.md if you want to be subscribed.
Failed in: runtime-coreclr libraries-jitstressregs 20250601.1
Failed tests:
net10.0-windows-Release-x86-jitstressregs1-Windows.10.Amd64.Open
- System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_CategoryType_SingleInstance
- System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_Create_Obsolete
- System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_DeleteCategory
- System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_CategoryType_MultiInstance
- System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_GetCounters
- System.Diagnostics.Tests.CounterSampleCalculatorTests.CounterSampleCalculator_ElapsedTime
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_CreateCounter_MultiInstanceReadOnly
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_Increment
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_CreateCounter_SetReadOnly
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_Increment_IncrementReadOnly
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_RemoveInstance
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_Decrement
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_IncrementBy_IncrementBy2
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_CreateCounter_Count0
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_IncrementBy_IncrementByReadOnly
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_NextSample_MultiInstance
Error message:
System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
Stack trace:
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 263
at System.Security.AccessControl.MutexSecurity.Persist(SafeWaitHandle handle) in /_/src/libraries/System.Threading.AccessControl/src/System/Security/AccessControl/MutexSecurity.cs:line 178
at System.Diagnostics.NetFrameworkUtils.EnterMutexWithoutGlobal(String mutexName, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 32
at System.Diagnostics.PerformanceCounterCategory.Delete(String categoryName) in /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs:line 376
at System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_CategoryType_SingleInstance() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterCategoryTests.cs:line 103
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 36
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57
Failed in: runtime-coreclr libraries-jitstress2-jitstressregs 20250614.1
Failed tests:
net10.0-windows-Release-x86-jitstress2_jitstressregs2-Windows.10.Amd64.Open
- System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_Create_Obsolete
- System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_Create_Invalid
- System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_DeleteCategory
- System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_CategoryType_MultiInstance
- System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_GetCounters
- System.Diagnostics.Tests.CounterSampleCalculatorTests.CounterSampleCalculator_ElapsedTime
Error message:
System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
Stack trace:
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 263
at System.Security.AccessControl.MutexSecurity.Persist(SafeWaitHandle handle) in /_/src/libraries/System.Threading.AccessControl/src/System/Security/AccessControl/MutexSecurity.cs:line 178
at System.Diagnostics.NetFrameworkUtils.EnterMutexWithoutGlobal(String mutexName, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 32
at System.Diagnostics.PerformanceCounterCategory.Create(String categoryName, String categoryHelp, PerformanceCounterCategoryType categoryType, CounterCreationDataCollection counterData) in /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs:line 222
at System.Diagnostics.PerformanceCounterCategory.Create(String categoryName, String categoryHelp, String counterName, String counterHelp) in /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs:line 183
at System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_Create_Obsolete() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterCategoryTests.cs:line 115
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 36
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57
Failed in: runtime-coreclr libraries-jitstressregs 20250622.1
Failed tests:
net10.0-windows-Release-x86-jitstressregs1-Windows.10.Amd64.Open
- System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_Create_Obsolete_CCD
- System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_CategoryType_SingleInstance
- System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_Create_Obsolete
- System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_DeleteCategory
- System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_CategoryType_MultiInstance
- System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_GetCounters
- System.Diagnostics.Tests.CounterSampleCalculatorTests.CounterSampleCalculator_ElapsedTime
Error message:
System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
Stack trace:
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 263
at System.Security.AccessControl.MutexSecurity.Persist(SafeWaitHandle handle) in /_/src/libraries/System.Threading.AccessControl/src/System/Security/AccessControl/MutexSecurity.cs:line 178
at System.Diagnostics.NetFrameworkUtils.EnterMutexWithoutGlobal(String mutexName, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 32
at System.Diagnostics.PerformanceCounterCategory.Create(String categoryName, String categoryHelp, PerformanceCounterCategoryType categoryType, CounterCreationDataCollection counterData) in /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs:line 222
at System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_Create_Obsolete_CCD() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterCategoryTests.cs:line 132
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 36
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57
Failed in: runtime-coreclr libraries-jitstress 20250623.1
Failed tests:
net10.0-windows-Release-x86-jitminopts-Windows.10.Amd64.Open
- System.Diagnostics.Tests.CounterCreationDataCollectionTests.PerformanceCounterCategory_CreateCategory
Error message:
System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
Stack trace:
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 263
at System.Security.AccessControl.NativeObjectSecurity.Persist(SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 368
at System.Security.AccessControl.NativeObjectSecurity.Persist(SafeHandle handle, AccessControlSections includeSections) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 361
at System.Security.AccessControl.MutexSecurity.Persist(SafeWaitHandle handle) in /_/src/libraries/System.Threading.AccessControl/src/System/Security/AccessControl/MutexSecurity.cs:line 178
at System.Threading.ThreadingAclExtensions.SetAccessControl(Mutex mutex, MutexSecurity mutexSecurity) in /_/src/libraries/System.Threading.AccessControl/src/System/Threading/ThreadingAclExtensions.cs:line 35
at System.Diagnostics.NetFrameworkUtils.EnterMutexWithoutGlobal(String mutexName, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 32
at System.Diagnostics.NetFrameworkUtils.EnterMutex(String name, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 19
at System.Diagnostics.PerformanceCounterCategory.Create(String categoryName, String categoryHelp, PerformanceCounterCategoryType categoryType, CounterCreationDataCollection counterData) in /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs:line 222
at System.Diagnostics.Tests.CounterCreationDataCollectionTests.PerformanceCounterCategory_CreateCategory() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/CounterCreationDataCollectionTests.cs:line 118
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 36
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57
Failed in: runtime-coreclr libraries-pgo 20250629.1
Failed tests:
net10.0-windows-Release-x86-syntheticpgo-Windows.10.Amd64.Open
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_Increment
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_CreateCounter_SetReadOnly
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_Increment_IncrementReadOnly
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_RemoveInstance
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_Decrement
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_IncrementBy_IncrementBy2
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_CreateCounter_Count0
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_IncrementBy_IncrementByReadOnly
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_NextSample_MultiInstance
Error message:
System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
Stack trace:
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 263
at System.Security.AccessControl.NativeObjectSecurity.Persist(SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 368
at System.Security.AccessControl.NativeObjectSecurity.Persist(SafeHandle handle, AccessControlSections includeSections) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 361
at System.Security.AccessControl.MutexSecurity.Persist(SafeWaitHandle handle) in /_/src/libraries/System.Threading.AccessControl/src/System/Security/AccessControl/MutexSecurity.cs:line 178
at System.Threading.ThreadingAclExtensions.SetAccessControl(Mutex mutex, MutexSecurity mutexSecurity) in /_/src/libraries/System.Threading.AccessControl/src/System/Threading/ThreadingAclExtensions.cs:line 35
at System.Diagnostics.NetFrameworkUtils.EnterMutexWithoutGlobal(String mutexName, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 32
at System.Diagnostics.NetFrameworkUtils.EnterMutex(String name, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 19
at System.Diagnostics.PerformanceCounterCategory.Delete(String categoryName) in /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs:line 376
at System.Diagnostics.Tests.Helpers.DeleteCategory(String categoryName) in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs:line 56
at System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_Increment() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterTests.cs:line 231
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 36
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57
Failed in: runtime-coreclr libraries-jitstress 20250703.1
Failed tests:
net10.0-windows-Release-x86-jitminopts-Windows.10.Amd64.Open
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_NextSample_MultiInstance
Error message:
System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
Stack trace:
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 263
at System.Security.AccessControl.NativeObjectSecurity.Persist(SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 368
at System.Security.AccessControl.NativeObjectSecurity.Persist(SafeHandle handle, AccessControlSections includeSections) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 361
at System.Security.AccessControl.MutexSecurity.Persist(SafeWaitHandle handle) in /_/src/libraries/System.Threading.AccessControl/src/System/Security/AccessControl/MutexSecurity.cs:line 178
at System.Threading.ThreadingAclExtensions.SetAccessControl(Mutex mutex, MutexSecurity mutexSecurity) in /_/src/libraries/System.Threading.AccessControl/src/System/Threading/ThreadingAclExtensions.cs:line 35
at System.Diagnostics.NetFrameworkUtils.EnterMutexWithoutGlobal(String mutexName, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 32
at System.Diagnostics.NetFrameworkUtils.EnterMutex(String name, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 19
at System.Diagnostics.PerformanceCounterCategory.Create(String categoryName, String categoryHelp, PerformanceCounterCategoryType categoryType, CounterCreationDataCollection counterData) in /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs:line 222
at System.Diagnostics.PerformanceCounterCategory.Create(String categoryName, String categoryHelp, PerformanceCounterCategoryType categoryType, String counterName, String counterHelp) in /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs:line 192
at System.Diagnostics.Tests.Helpers.CreateCategory(String categoryName, String counterName, PerformanceCounterCategoryType categoryType) in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs:line 33
at System.Diagnostics.Tests.Helpers.CreateCategory(String categoryName, PerformanceCounterCategoryType categoryType) in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs:line 23
at System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_NextSample_MultiInstance() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterTests.cs:line 309
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 36
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57
Failed in: runtime-coreclr libraries-jitstress2-jitstressregs 20250712.1
Failed tests:
net10.0-windows-Release-x64-jitstress2_jitstressregs1-Windows.10.Amd64.Open
- System.Diagnostics.Tests.CounterCreationDataCollectionTests.PerformanceCounterCategory_CreateCategory
Error message:
System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
Stack trace:
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 263
at System.Security.AccessControl.MutexSecurity.Persist(SafeWaitHandle handle) in /_/src/libraries/System.Threading.AccessControl/src/System/Security/AccessControl/MutexSecurity.cs:line 178
at System.Diagnostics.NetFrameworkUtils.EnterMutexWithoutGlobal(String mutexName, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 32
at System.Diagnostics.PerformanceCounterCategory.Create(String categoryName, String categoryHelp, PerformanceCounterCategoryType categoryType, CounterCreationDataCollection counterData) in /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs:line 222
at System.Diagnostics.Tests.CounterCreationDataCollectionTests.PerformanceCounterCategory_CreateCategory() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/CounterCreationDataCollectionTests.cs:line 118
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 36
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57
Failed in: runtime-coreclr libraries-jitstress2-jitstressregs 20250719.1
Failed tests:
net10.0-windows-Release-x86-jitstress2_jitstressregs0x2000-Windows.10.Amd64.Open
- System.Diagnostics.Tests.CounterCreationDataCollectionTests.PerformanceCounterCategory_CreateCategory
Error message:
System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
Stack trace:
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 263
at System.Security.AccessControl.MutexSecurity.Persist(SafeWaitHandle handle) in /_/src/libraries/System.Threading.AccessControl/src/System/Security/AccessControl/MutexSecurity.cs:line 178
at System.Diagnostics.NetFrameworkUtils.EnterMutexWithoutGlobal(String mutexName, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 32
at System.Diagnostics.PerformanceCounterCategory.Create(String categoryName, String categoryHelp, PerformanceCounterCategoryType categoryType, CounterCreationDataCollection counterData) in /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs:line 222
at System.Diagnostics.Tests.CounterCreationDataCollectionTests.PerformanceCounterCategory_CreateCategory() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/CounterCreationDataCollectionTests.cs:line 118
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 36
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57
Failed in: runtime-coreclr libraries-jitstress 20250727.1
Failed tests:
net10.0-windows-Release-x86-disabler2r-Windows.10.Amd64.Open
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_Decrement
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_IncrementBy_IncrementBy2
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_CreateCounter_Count0
Error message:
System.AggregateException : One or more errors occurred. (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.)
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
Stack trace:
at System.RetryHelper.Execute(Action test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName) in /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs:line 54
at System.Diagnostics.Tests.Helpers.CreateCategory(String categoryName, String counterName, PerformanceCounterCategoryType categoryType) in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs:line 66
at System.Diagnostics.Tests.Helpers.CreateCategory(String categoryName, PerformanceCounterCategoryType categoryType) in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs:line 54
at System.Diagnostics.Tests.PerformanceCounterTests.CreateCounterWithCategory(String categoryName, Boolean readOnly, PerformanceCounterCategoryType categoryType)
at System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_Decrement() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterTests.cs:line 208
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 36
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57
----- Inner Stack Trace #1 (System.UnauthorizedAccessException) -----
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 263
at System.Security.AccessControl.MutexSecurity.Persist(SafeWaitHandle handle) in /_/src/libraries/System.Threading.AccessControl/src/System/Security/AccessControl/MutexSecurity.cs:line 178
at System.Diagnostics.NetFrameworkUtils.EnterMutexWithoutGlobal(String mutexName, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 32
at System.Diagnostics.PerformanceCounterCategory.Create(String categoryName, String categoryHelp, PerformanceCounterCategoryType categoryType, CounterCreationDataCollection counterData) in /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs:line 222
at System.Diagnostics.Tests.Helpers.<>c__DisplayClass10_0.<CreateCategory>b__0() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs:line 68
at System.RetryHelper.Execute(Action test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName) in /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs:line 45
----- Inner Stack Trace #2 (System.UnauthorizedAccessException) -----
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/librari
Failed in: runtime-coreclr libraries-jitstress 20250731.1
Failed tests:
net10.0-windows-Release-x86-jitstress1_tiered-Windows.10.Amd64.Open
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_Increment_IncrementReadOnly
Error message:
System.AggregateException : One or more errors occurred. (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.)
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
Stack trace:
at System.RetryHelper.Execute(Action test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName) in /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs:line 54
at System.Diagnostics.Tests.Helpers.DeleteCategory(String categoryName) in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs:line 93
at System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_Increment_IncrementReadOnly() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterTests.cs:line 270
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57
----- Inner Stack Trace #1 (System.UnauthorizedAccessException) -----
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 263
at System.Security.AccessControl.NativeObjectSecurity.Persist(SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 368
at System.Security.AccessControl.NativeObjectSecurity.Persist(SafeHandle handle, AccessControlSections includeSections) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 361
at System.Security.AccessControl.MutexSecurity.Persist(SafeWaitHandle handle) in /_/src/libraries/System.Threading.AccessControl/src/System/Security/AccessControl/MutexSecurity.cs:line 178
at System.Threading.ThreadingAclExtensions.SetAccessControl(Mutex mutex, MutexSecurity mutexSecurity) in /_/src/libraries/System.Threading.AccessControl/src/System/Threading/ThreadingAclExtensions.cs:line 35
at System.Diagnostics.NetFrameworkUtils.EnterMutexWithoutGlobal(String mutexName, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 32
at System.Diagnostics.NetFrameworkUtils.EnterMutex(String name, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 19
at System.Diagnostics.PerformanceCounterCategory.Delete(String categoryName) in /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs:line 376
at System.Diagnostics.Tests.Helpers.<>c__DisplayClass12_0.<DeleteCategory>b__0() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs:line 95
at System.RetryHelper.Execute(Action test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName) in /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs:line 45
----- Inner Stack Trace #2 (System.UnauthorizedAccessException) -----
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Securi
Failed in: runtime-coreclr libraries-jitstress2-jitstressregs 20250802.1
Failed tests:
net10.0-windows-Release-x86-jitstress2_jitstressregs4-Windows.10.Amd64.Open
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_CreateCounter_MultiInstanceReadOnly
Error message:
System.AggregateException : One or more errors occurred. (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.)
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
Stack trace:
at System.RetryHelper.Execute(Action test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName) in /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs:line 54
at System.Diagnostics.Tests.Helpers.CreateCategory(String categoryName, String counterName, PerformanceCounterCategoryType categoryType) in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs:line 66
at System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_CreateCounter_MultiInstanceReadOnly() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterTests.cs:line 61
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 36
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57
----- Inner Stack Trace #1 (System.UnauthorizedAccessException) -----
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 263
at System.Security.AccessControl.MutexSecurity.Persist(SafeWaitHandle handle) in /_/src/libraries/System.Threading.AccessControl/src/System/Security/AccessControl/MutexSecurity.cs:line 178
at System.Diagnostics.NetFrameworkUtils.EnterMutexWithoutGlobal(String mutexName, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 32
at System.Diagnostics.PerformanceCounterCategory.Create(String categoryName, String categoryHelp, PerformanceCounterCategoryType categoryType, CounterCreationDataCollection counterData) in /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs:line 222
at System.Diagnostics.Tests.Helpers.<>c__DisplayClass10_0.<CreateCategory>b__0() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs:line 68
at System.RetryHelper.Execute(Action test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName) in /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs:line 45
----- Inner Stack Trace #2 (System.UnauthorizedAccessException) -----
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 263
at System.Security.AccessControl.MutexSecurity.Persist(SafeWaitHandle handle) in /_/src/libraries/System.Threading.AccessControl/src/System/Security/AccessControl/MutexSecurity.cs:line 178
at System.Diagnostics.NetFrameworkUtils.EnterMutexWithoutGlobal(String mutexName, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 32
at System.Diagnostics.PerformanceCounterCategory.Create(String categoryName, String categoryHelp, PerformanceCounterCategoryType categoryType, CounterCreationDataCollection counterData) in /_/src/libr
Failed in: runtime-coreclr libraries-jitstress2-jitstressregs 20250809.1
Failed tests:
net10.0-windows-Release-x86-jitstress2_jitstressregs3-Windows.10.Amd64.Open
- System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_DeleteCategory_Invalid
Error message:
Assert.Throws() Failure: Exception type was not an exact match
Expected: typeof(System.InvalidOperationException)
Actual: typeof(System.UnauthorizedAccessException)
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
Stack trace:
at System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_DeleteCategory_Invalid() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterCategoryTests.cs:line 209
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 36
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57
----- Inner Stack Trace -----
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 263
at System.Security.AccessControl.MutexSecurity.Persist(SafeWaitHandle handle) in /_/src/libraries/System.Threading.AccessControl/src/System/Security/AccessControl/MutexSecurity.cs:line 178
at System.Diagnostics.NetFrameworkUtils.EnterMutexWithoutGlobal(String mutexName, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 32
at System.Diagnostics.PerformanceCounterCategory.Delete(String categoryName) in /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs:line 376
at System.Diagnostics.Tests.PerformanceCounterCategoryTests.<>c.<PerformanceCounterCategory_DeleteCategory_Invalid>b__19_0() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterCategoryTests.cs:line 209
Failed in: runtime-coreclr libraries-jitstress2-jitstressregs 20250816.1
Failed tests:
net10.0-windows-Release-x86-jitstress2_jitstressregs1-Windows.10.Amd64.Open
- System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_GetCounters
Error message:
System.AggregateException : One or more errors occurred. (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.)
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
Stack trace:
at System.RetryHelper.Execute(Action test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName) in /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs:line 54
at System.Diagnostics.Tests.Helpers.CreateCategory(String categoryName, String counterName, PerformanceCounterCategoryType categoryType) in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs:line 66
at System.Diagnostics.Tests.Helpers.CreateCategory(String categoryName, PerformanceCounterCategoryType categoryType) in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs:line 54
at System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_GetCounters() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterCategoryTests.cs:line 234
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 36
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57
----- Inner Stack Trace #1 (System.UnauthorizedAccessException) -----
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 263
at System.Security.AccessControl.MutexSecurity.Persist(SafeWaitHandle handle) in /_/src/libraries/System.Threading.AccessControl/src/System/Security/AccessControl/MutexSecurity.cs:line 178
at System.Diagnostics.NetFrameworkUtils.EnterMutexWithoutGlobal(String mutexName, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 32
at System.Diagnostics.PerformanceCounterCategory.Create(String categoryName, String categoryHelp, PerformanceCounterCategoryType categoryType, CounterCreationDataCollection counterData) in /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs:line 222
at System.Diagnostics.Tests.Helpers.<>c__DisplayClass10_0.<CreateCategory>b__0() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs:line 68
at System.RetryHelper.Execute(Action test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName) in /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs:line 45
----- Inner Stack Trace #2 (System.UnauthorizedAccessException) -----
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 263
at System.Security.AccessControl.MutexSecurity.Persist(SafeWaitHandle handle) in /_/src/libraries/System.Threading.AccessControl/src/System/Security/AccessControl/MutexSecurity.cs:line 178
at System.Diagnostics.NetFrameworkUtils.EnterMutexWithoutGlobal(String mutexName, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 32
Failed in: runtime-coreclr libraries-jitstress2-jitstressregs 20250823.1
Failed tests:
net10.0-windows-Release-x86-jitstress2_jitstressregs8-Windows.10.Amd64.Open
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_CreateCounter_MultiInstanceReadOnly
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_Increment
Error message:
System.AggregateException : One or more errors occurred. (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.)
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
Stack trace:
at System.RetryHelper.Execute(Action test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName) in /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs:line 54
at System.Diagnostics.Tests.Helpers.CreateCategory(String categoryName, String counterName, PerformanceCounterCategoryType categoryType) in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs:line 66
at System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_CreateCounter_MultiInstanceReadOnly() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterTests.cs:line 61
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 36
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57
----- Inner Stack Trace #1 (System.UnauthorizedAccessException) -----
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 263
at System.Security.AccessControl.MutexSecurity.Persist(SafeWaitHandle handle) in /_/src/libraries/System.Threading.AccessControl/src/System/Security/AccessControl/MutexSecurity.cs:line 178
at System.Diagnostics.NetFrameworkUtils.EnterMutexWithoutGlobal(String mutexName, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 32
at System.Diagnostics.PerformanceCounterCategory.Create(String categoryName, String categoryHelp, PerformanceCounterCategoryType categoryType, CounterCreationDataCollection counterData) in /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs:line 222
at System.Diagnostics.Tests.Helpers.<>c__DisplayClass10_0.<CreateCategory>b__0() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs:line 68
at System.RetryHelper.Execute(Action test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName) in /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs:line 45
----- Inner Stack Trace #2 (System.UnauthorizedAccessException) -----
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 263
at System.Security.AccessControl.MutexSecurity.Persist(SafeWaitHandle handle) in /_/src/libraries/System.Threading.AccessControl/src/System/Security/AccessControl/MutexSecurity.cs:line 178
at System.Diagnostics.NetFrameworkUtils.EnterMutexWithoutGlobal(String mutexName, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 32
at System.Diagnostics.PerformanceCounterCategory.Create(String categoryName, String categoryHelp, PerformanceCounterCategoryType categoryType, CounterCreationDataCollection counterData) in /_/src/libr
Failed in: runtime-coreclr libraries-jitstress 20250901.1
Failed tests:
net10.0-windows-Release-x86-jitminopts-Windows.10.Amd64.Open
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_IncrementBy_IncrementBy2
Error message:
System.AggregateException : One or more errors occurred. (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.)
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
Stack trace:
at System.RetryHelper.Execute(Action test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName) in /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs:line 54
at System.Diagnostics.Tests.Helpers.CreateCategory(String categoryName, String counterName, PerformanceCounterCategoryType categoryType) in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs:line 66
at System.Diagnostics.Tests.Helpers.CreateCategory(String categoryName, PerformanceCounterCategoryType categoryType) in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs:line 54
at System.Diagnostics.Tests.PerformanceCounterTests.CreateCounterWithCategory(String categoryName, Boolean readOnly, PerformanceCounterCategoryType categoryType)
at System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_IncrementBy_IncrementBy2() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterTests.cs:line 238
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 36
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57
----- Inner Stack Trace #1 (System.UnauthorizedAccessException) -----
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 263
at System.Security.AccessControl.NativeObjectSecurity.Persist(SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 368
at System.Security.AccessControl.NativeObjectSecurity.Persist(SafeHandle handle, AccessControlSections includeSections) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 361
at System.Security.AccessControl.MutexSecurity.Persist(SafeWaitHandle handle) in /_/src/libraries/System.Threading.AccessControl/src/System/Security/AccessControl/MutexSecurity.cs:line 178
at System.Threading.ThreadingAclExtensions.SetAccessControl(Mutex mutex, MutexSecurity mutexSecurity) in /_/src/libraries/System.Threading.AccessControl/src/System/Threading/ThreadingAclExtensions.cs:line 35
at System.Diagnostics.NetFrameworkUtils.EnterMutexWithoutGlobal(String mutexName, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 32
at System.Diagnostics.NetFrameworkUtils.EnterMutex(String name, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 19
at System.Diagnostics.PerformanceCounterCategory.Create(String categoryName, String categoryHelp, PerformanceCounterCategoryType categoryType, CounterCreationDataCollection counterData) in /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs:line 222
at System.Diagnostics.PerformanceCounterCategory.Create(String categoryName, String categoryHelp, PerformanceCounterCategoryType categoryType, String counterName, String counterHelp) in /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs:line 192
at System.Diagnostics.Tests.Helpers.<>c__DisplayClass10_0.<CreateCategory>b__0(
Failed in: runtime-coreclr libraries-jitstressregs 20250914.1
Failed tests:
net10.0-windows-Release-x86-jitstressregs4-Windows.10.Amd64.Open
- System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_CategoryType_SingleInstance
- System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_Create_Obsolete
- System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_DeleteCategory
Error message:
System.AggregateException : One or more errors occurred. (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.)
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
Stack trace:
at System.RetryHelper.Execute(Action test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName) in /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs:line 54
at System.Diagnostics.Tests.Helpers.DeleteCategory(String categoryName) in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs:line 93
at System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_CategoryType_SingleInstance() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterCategoryTests.cs:line 103
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 36
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57
----- Inner Stack Trace #1 (System.UnauthorizedAccessException) -----
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 263
at System.Security.AccessControl.MutexSecurity.Persist(SafeWaitHandle handle) in /_/src/libraries/System.Threading.AccessControl/src/System/Security/AccessControl/MutexSecurity.cs:line 178
at System.Diagnostics.NetFrameworkUtils.EnterMutexWithoutGlobal(String mutexName, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 32
at System.Diagnostics.PerformanceCounterCategory.Delete(String categoryName) in /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs:line 376
at System.Diagnostics.Tests.Helpers.<>c__DisplayClass12_0.<DeleteCategory>b__0() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs:line 95
at System.RetryHelper.Execute(Action test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName) in /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs:line 45
----- Inner Stack Trace #2 (System.UnauthorizedAccessException) -----
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 263
at System.Security.AccessControl.MutexSecurity.Persist(SafeWaitHandle handle) in /_/src/libraries/System.Threading.AccessControl/src/System/Security/AccessControl/MutexSecurity.cs:line 178
at System.Diagnostics.NetFrameworkUtils.EnterMutexWithoutGlobal(String mutexName, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 32
at System.Diagnostics.PerformanceCounterCategory.Delete(String categoryName) in /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs:line 376
at System.Diagnostics.Tests.Helpers.<>c__DisplayClass12_0.<DeleteCategory>b__0() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs:l
Failed in: runtime-coreclr libraries-jitstress 20250916.1
Failed tests:
net10.0-windows-Release-x64-jitstress2_tiered-Windows.10.Amd64.Open
- System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_Create_Obsolete_CCD
Error message:
System.AggregateException : One or more errors occurred. (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.)
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
Stack trace:
at System.RetryHelper.Execute(Action test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName) in /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs:line 54
at System.Diagnostics.Tests.PerformanceCounterCategoryTests.PerformanceCounterCategory_Create_Obsolete_CCD() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterCategoryTests.cs:line 135
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 36
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs:line 126
----- Inner Stack Trace #1 (System.UnauthorizedAccessException) -----
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 263
at System.Security.AccessControl.NativeObjectSecurity.Persist(SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 368
at System.Security.AccessControl.NativeObjectSecurity.Persist(SafeHandle handle, AccessControlSections includeSections) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 361
at System.Security.AccessControl.MutexSecurity.Persist(SafeWaitHandle handle) in /_/src/libraries/System.Threading.AccessControl/src/System/Security/AccessControl/MutexSecurity.cs:line 178
at System.Threading.ThreadingAclExtensions.SetAccessControl(Mutex mutex, MutexSecurity mutexSecurity) in /_/src/libraries/System.Threading.AccessControl/src/System/Threading/ThreadingAclExtensions.cs:line 35
at System.Diagnostics.NetFrameworkUtils.EnterMutexWithoutGlobal(String mutexName, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 32
at System.Diagnostics.NetFrameworkUtils.EnterMutex(String name, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 19
at System.Diagnostics.PerformanceCounterCategory.Create(String categoryName, String categoryHelp, PerformanceCounterCategoryType categoryType, CounterCreationDataCollection counterData) in /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs:line 222
at System.Diagnostics.PerformanceCounterCategory.Create(String categoryName, String categoryHelp, CounterCreationDataCollection counterData) in /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs:line 201
at System.Diagnostics.Tests.PerformanceCounterCategoryTests.<>c__DisplayClass11_0.<PerformanceCounterCategory_Create_Obsolete_CCD>b__0() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterCategoryTests.cs:line 137
at System.RetryHelper.Execute(Action test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName) in /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs:line 45
----- Inner Stack Trace #2 (Syste
Failed in: runtime-coreclr libraries-pgo 20250921.1
Failed tests:
net10.0-windows-Release-x86-fullpgo_random_gdv_edge-Windows.10.Amd64.Open
- System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_Increment
Error message:
System.AggregateException : One or more errors occurred. (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.) (Attempted to perform an unauthorized operation.)
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
---- System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
Stack trace:
at System.RetryHelper.Execute(Action test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName) in /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs:line 54
at System.Diagnostics.Tests.Helpers.CreateCategory(String categoryName, String counterName, PerformanceCounterCategoryType categoryType) in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs:line 66
at System.Diagnostics.Tests.Helpers.CreateCategory(String categoryName, PerformanceCounterCategoryType categoryType) in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs:line 54
at System.Diagnostics.Tests.PerformanceCounterTests.CreateCounterWithCategory(String categoryName, Boolean readOnly, PerformanceCounterCategoryType categoryType)
at System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_Increment() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterTests.cs:line 223
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) in /_/src/coreclr/System.Private.CoreLib/src/System/RuntimeHandles.cs:line 1165
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 36
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57
----- Inner Stack Trace #1 (System.UnauthorizedAccessException) -----
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 263
at System.Security.AccessControl.NativeObjectSecurity.Persist(SafeHandle handle, AccessControlSections includeSections, Object exceptionContext) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 368
at System.Security.AccessControl.NativeObjectSecurity.Persist(SafeHandle handle, AccessControlSections includeSections) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 361
at System.Security.AccessControl.MutexSecurity.Persist(SafeWaitHandle handle) in /_/src/libraries/System.Threading.AccessControl/src/System/Security/AccessControl/MutexSecurity.cs:line 178
at System.Threading.ThreadingAclExtensions.SetAccessControl(Mutex mutex, MutexSecurity mutexSecurity) in /_/src/libraries/System.Threading.AccessControl/src/System/Threading/ThreadingAclExtensions.cs:line 35
at System.Diagnostics.NetFrameworkUtils.EnterMutexWithoutGlobal(String mutexName, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 32
at System.Diagnostics.NetFrameworkUtils.EnterMutex(String name, Mutex& mutex) in /_/src/libraries/Common/src/System/Diagnostics/NetFrameworkUtils.cs:line 19
at System.Diagnostics.PerformanceCounterCategory.Create(String categoryName, String categoryHelp, PerformanceCounterCategoryType categoryType, CounterCreationDataCollection counterDa
@ericstj, @tarekgh, this seems to be the issue that https://github.com/dotnet/runtime/pull/117619 tried to mitigate. Looks like the problem is in SetAccessControl to the Mutex named netfxperf.1.0 which is used for all operations requiring synchronization in PerformanceCounterCategory.
@jozkee actually it's likely caused by https://github.com/dotnet/runtime/commit/81f1f5ef694b62d801291fb70d86dd5ed9074448
I wonder if we should actually capture that out bool createdNew and only set the ACL on the mutex if it was just created.
Failed in: runtime-coreclr libraries-jitstress 20250924.1
Failed tests:
net10.0-windows-Release-x86-jitstress1_tiered-Windows.10.Amd64.Open
- System.Diagnostics.Tests.CounterSampleCalculatorTests.CounterSampleCalculator_ElapsedTime
Error message:
System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
Stack trace:
at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs:line 308
at System.Security.AccessControl.NativeObjectSecurity.Persist(SafeHandle handle, AccessControlSections includeSections) in /_/src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs:line 361
at System.Security.AccessControl.MutexSecurity.Persist(SafeWaitHandle handle) in /_/src/libraries/System.Threading.AccessControl/src/System/Security/AccessControl/MutexSecurity.cs:line 178
at System.Threading.ThreadingAclExtensions.SetAccessControl(Mutex mutex, MutexSecurity mutexSecurity) in /_/src/libraries/System.Threading.AccessControl/src/System/Threading/ThreadingAclExtensions.cs:line 35
at System.Diagnostics.PerformanceCounterCategory.Create(String categoryName, String categoryHelp, PerformanceCounterCategoryType categoryType, CounterCreationDataCollection counterData) in /_/src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceCounterCategory.cs:line 222
at System.Diagnostics.Tests.CounterSampleCalculatorTests.CreateCounter(String categoryName, PerformanceCounterType counterType) in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/CounterSampleCalculatorTests.cs:line 43
at System.Diagnostics.Tests.CounterSampleCalculatorTests.CounterSampleCalculator_ElapsedTime() in /_/src/libraries/System.Diagnostics.PerformanceCounter/tests/CounterSampleCalculatorTests.cs:line 16
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57