Repository navigation
[windows-x86] SafeNCryptHandle ownership assertion in System.Security.Cryptography.Tests #130760
Copy link
Copy link
Closed
Labels
Known Build ErrorUse this to report build issues in the .NET Helix tabUse this to report build issues in the .NET Helix tabarea-System.Security
Description
Build Information
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1507906
Leg Name: Libraries Test Run checked coreclr windows x86 Debug
Error Details
Process terminated.
Assertion failed.
_ownershipState != OwnershipState.Duplicate
at Microsoft.Win32.SafeHandles.SafeNCryptHandle.set_Holder(SafeNCryptHandle value) in /_/src/libraries/System.Security.Cryptography/src/Microsoft/Win32/SafeHandles/NCryptSafeHandles.cs:line 120
at Microsoft.Win32.SafeHandles.SafeNCryptHandle.DuplicateOwnerHandle[T]() in /_/src/libraries/System.Security.Cryptography/src/Microsoft/Win32/SafeHandles/NCryptSafeHandles.cs:line 286
at Microsoft.Win32.SafeHandles.SafeNCryptHandle.Duplicate[T]() in /_/src/libraries/System.Security.Cryptography/src/Microsoft/Win32/SafeHandles/NCryptSafeHandles.cs:line 219
at Microsoft.Win32.SafeHandles.SafeNCryptKeyHandle.Duplicate() in /_/src/libraries/System.Security.Cryptography/src/Microsoft/Win32/SafeHandles/NCryptSafeHandles.cs:line 364
at System.Security.Cryptography.CngKey.get_Handle() in /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/CngKey.StandardProperties.cs:line 93
at System.Security.Cryptography.DSACng.GetDuplicatedKeyHandle() in /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/DSACng.Key.cs:line 51
at System.Security.Cryptography.DSACng.ComputeQLength() in /_/src/libraries/Common/src/System/Security/Cryptography/DSACng.SignVerify.cs:line 147
at System.Security.Cryptography.Dsa.Tests.DsaSpanSignatureFormatTests.SignData(KeyDescription key, Byte[] data, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat) in /_/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/DSA/DSASignatureFormatTests.cs:line 292
at System.Security.Cryptography.Algorithms.Tests.DsaFamilySignatureFormatTests.SignatureFormatsAreNotCompatible(DSASignatureFormat signFormat, DSASignatureFormat verifyFormat) in /_/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/DSA/DsaFamilySignatureFormatTests.cs:line 288
Error Message
{
"ErrorMessage": [
"Assertion failed.",
"_ownershipState != OwnershipState.Duplicate",
"Microsoft.Win32.SafeHandles.SafeNCryptHandle.set_Holder"
],
"BuildRetry": true,
"ExcludeConsoleLog": false
}Note
This issue was generated with GitHub Copilot.
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1507906
Error message validated: [Assertion failed. _ownershipState != OwnershipState.Duplicate Microsoft.Win32.SafeHandles.SafeNCryptHandle.set_Holder]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 7/15/2026 8:54:21 AM UTC
Report
| Build | Repository | Test | Pull Request |
|---|---|---|---|
| 1507906 | dotnet/runtime | System.Security.Cryptography.Tests.WorkItemExecution | #130670 |
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 0 | 1 | 1 |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Known Build ErrorUse this to report build issues in the .NET Helix tabUse this to report build issues in the .NET Helix tabarea-System.Security
Activity
dotnet-policy-service commentedon Jul 15, 2026
Tagging subscribers to this area: @bartonjs, @vcsjones, @dotnet/area-system-security
See info in area-owners.md if you want to be subscribed.
Fix Duplicate ownership state machine under concurrency for NCrypt ha…