Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure: "Internal consistency check failed" in System.Security.Cryptography.Dsa.Tests.DSASignVerify_Stream.InvalidKeySize_DoesNotInvalidateKey #106556

Closed
carlossanlop opened this issue Aug 16, 2024 · 2 comments
Labels
arch-x64 area-System.Security Known Build Error Use this to report build issues in the .NET Helix tab os-windows runtime-coreclr specific to the CoreCLR runtime

Comments

@carlossanlop
Copy link
Member

carlossanlop commented Aug 16, 2024

Important: This was found in a 9.0 unrelated PR. Please consider submitting a backport to fix it.

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=778160
Build error leg or test failing: System.Security.Cryptography.Dsa.Tests.DSASignVerify_Stream.InvalidKeySize_DoesNotInvalidateKey in net9.0-windows-Release-x64-coreclr_checked-Windows.10.Amd64.Open

Error Message

{
  "ErrorMessage" : "CryptographicException : An internal consistency check failed",
  "BuildRetry" : false,
  "ExcludeConsoleLog" : false
}
    System.Security.Cryptography.Dsa.Tests.DSASignVerify_Stream.InvalidKeySize_DoesNotInvalidateKey [FAIL]
      System.Security.Cryptography.CryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/CngKey.Create.cs(58,0): at System.Security.Cryptography.CngKey.Create(CngAlgorithm algorithm, String keyName, CngKeyCreationParameters creationParameters)
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/CngAlgorithmCore.cs(73,0): at System.Security.Cryptography.CngAlgorithmCore.GetOrGenerateKey(Int32 keySize, CngAlgorithm algorithm)
        /_/src/libraries/Common/src/System/Security/Cryptography/DSACng.SignVerify.cs(147,0): at System.Security.Cryptography.DSACng.ComputeQLength()
        /_/src/libraries/Common/src/System/Security/Cryptography/DSACng.SignVerify.cs(25,0): at System.Security.Cryptography.DSACng.CreateSignature(Byte[] rgbHash)
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/DSA.cs(247,0): at System.Security.Cryptography.DSA.SignData(Stream data, HashAlgorithmName hashAlgorithm)
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/DSAWrapper.cs(36,0): at System.Security.Cryptography.DSAWrapper.SignData(Stream data, HashAlgorithmName hashAlgorithm)
        /_/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/DSA/DSASignVerify.cs(61,0): at System.Security.Cryptography.Dsa.Tests.DSASignVerify_Stream.SignData(DSA dsa, Byte[] data, HashAlgorithmName hashAlgorithm)
        /_/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/DSA/DSASignVerify.cs(123,0): at System.Security.Cryptography.Dsa.Tests.DSASignVerify.InvalidKeySize_DoesNotInvalidateKey()
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs(57,0): at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=778160
Error message validated: [CryptographicException : An internal consistency check failed]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/16/2024 6:07:43 PM UTC

Report

Build Definition Test Pull Request
778160 dotnet/runtime System.Security.Cryptography.Dsa.Tests.DSASignVerify_Stream.InvalidKeySize_DoesNotInvalidateKey #106532

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 1 1
@carlossanlop carlossanlop added area-System.Security os-windows arch-x64 runtime-coreclr specific to the CoreCLR runtime Known Build Error Use this to report build issues in the .NET Helix tab labels Aug 16, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Aug 16, 2024
Copy link
Contributor

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

@bartonjs
Copy link
Member

Dupe of #91860

@bartonjs bartonjs closed this as not planned Won't fix, can't repro, duplicate, stale Aug 20, 2024
@dotnet-policy-service dotnet-policy-service bot removed the untriaged New issue has not been triaged by the area owner label Aug 20, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Sep 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-x64 area-System.Security Known Build Error Use this to report build issues in the .NET Helix tab os-windows runtime-coreclr specific to the CoreCLR runtime
Projects
None yet
Development

No branches or pull requests

2 participants