Repository navigation
System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_IncrementBy_IncrementByReadOnly failed with "Attempted to perform an unauthorized operation" #116014
Description
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: #115993
Error Message
Fill the error message using step by step known issues guidance.
{
"ErrorMessage": ["System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_Increment", "System.UnauthorizedAccessException : Attempted to perform an unauthorized operation."],
"ErrorPattern": "",
"BuildRetry": false,
"ExcludeConsoleLog": false
}Known issue validation
Build: 🔎 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: ❌ Known issue did not match with the provided build.
Validation performed at: 5/27/2025 2:38:43 PM UTC
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1051241
Error message validated: [System.Diagnostics.Tests.PerformanceCounterTests.PerformanceCounter_IncrementBy_IncrementByReadOnly [FAIL]]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 5/27/2025 2:39:42 PM UTC
Known issue validation
Build: 🔎 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: ✅ 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 | 0 | 11 |
Known issue validation
Build: 🔎
Result validation:
Validation performed at: 7/17/2025 8:16:33 PM UTC
Report
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 0 | 0 | 11 |
Report
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 0 | 4 | 11 |
Activity
dotnet-policy-service commentedon May 27, 2025
Tagging subscribers to this area: @dotnet/area-system-diagnostics-performancecounter
See info in area-owners.md if you want to be subscribed.
SakeTao commentedon Jun 3, 2025
Failed in: runtime-coreclr libraries-jitstressregs 20250601.1
Failed tests:
Error message:
Stack trace:
SakeTao commentedon Jun 16, 2025
Failed in: runtime-coreclr libraries-jitstress2-jitstressregs 20250614.1
Failed tests:
Error message:
Stack trace:
SakeTao commentedon Jun 23, 2025
Failed in: runtime-coreclr libraries-jitstressregs 20250622.1
Failed tests:
Error message:
Stack trace:
SakeTao commentedon Jun 24, 2025
Failed in: runtime-coreclr libraries-jitstress 20250623.1
Failed tests:
Error message:
Stack trace:
SakeTao commentedon Jun 30, 2025
Failed in: runtime-coreclr libraries-pgo 20250629.1
Failed tests:
Error message:
Stack trace:
SakeTao commentedon Jul 4, 2025
Failed in: runtime-coreclr libraries-jitstress 20250703.1
Failed tests:
Error message:
Stack trace:
SakeTao commentedon Jul 14, 2025
Failed in: runtime-coreclr libraries-jitstress2-jitstressregs 20250712.1
Failed tests:
Error message:
Stack trace:
6 remaining items
SakeTao commentedon Aug 25, 2025
Failed in: runtime-coreclr libraries-jitstress2-jitstressregs 20250823.1
Failed tests:
Error message:
Stack trace:
SakeTao commentedon Sep 2, 2025
Failed in: runtime-coreclr libraries-jitstress 20250901.1
Failed tests:
Error message:
Stack trace:
SakeTao commentedon Sep 15, 2025
Failed in: runtime-coreclr libraries-jitstressregs 20250914.1
Failed tests:
Error message:
Stack trace:
SakeTao commentedon Sep 17, 2025
Failed in: runtime-coreclr libraries-jitstress 20250916.1
Failed tests:
Error message:
Stack trace:
SakeTao commentedon Sep 22, 2025
Failed in: runtime-coreclr libraries-pgo 20250921.1
Failed tests:
Error message:
Stack trace:
jozkee commentedon Sep 24, 2025
@ericstj, @tarekgh, this seems to be the issue that #117619 tried to mitigate. Looks like the problem is in SetAccessControl to the Mutex named
netfxperf.1.0which is used for all operations requiring synchronization in PerformanceCounterCategory.ericstj commentedon Sep 24, 2025
@jozkee actually it's likely caused by 81f1f5e
I wonder if we should actually capture that
out bool createdNewand only set the ACL on the mutex if it was just created.SakeTao commentedon Sep 25, 2025
Failed in: runtime-coreclr libraries-jitstress 20250924.1
Failed tests:
Error message:
Stack trace: