Skip to content

[Android][libraries] System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.MismatchKeyIdentifiers fails #52976

Open

Description

@mdh1418

This test fails on all Android architectures according to https://dev.azure.com/dnceng/public/_build/results?buildId=1144988&view=logs&jobId=f217f715-90ad-5404-53bd-b93e3b80f465&j=b6e5d97f-d4f8-506b-9e47-e3e32385754a&t=94ce2805-f3e2-5f9a-1d92-0da5613f733d
System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.MismatchKeyIdentifiers

Expected: False
Actual:      True

at System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.MismatchKeyIdentifiers() in /_/src/libraries/System.Security.Cryptography.X509Certificates/tests/DynamicChainTests.cs:line 636
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in System.Private.CoreLib.dll:token 0x6004a0f+0x6a

Activity

  1. added this to the 6.0.0 milestone on May 19, 2021
  2. ghost added
    untriagedNew issue has not been triaged by the area owner
    on May 19, 2021
  3. removed
    untriagedNew issue has not been triaged by the area owner
    on May 19, 2021
  4. steveisok commented on May 19, 2021

    @steveisok
    Member

    This started happening on 5/18 and fails about 50-60% of the time

  5. modified the milestones: 6.0.0, 7.0.0, Future on Jul 30, 2021
  6. carlossanlop commented on Jan 12, 2023

    @carlossanlop
    Contributor

    I just saw this failure happening in an unrelated 7.0 backport, but it happened in windows x64. I have no way of knowing if it's the same issue or not as the original one, but it's the same method that's failing. cc @vcsjones @bartonjs

        System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.MismatchKeyIdentifiers [FAIL]
          System.Security.Cryptography.CryptographicException : Unknown error (0xc0000001)
          Stack Trace:
            /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/CngCommon.SignVerify.cs(42,0): at System.Security.Cryptography.CngCommon.SignHash(SafeNCryptKeyHandle keyHandle, ReadOnlySpan`1 hash, AsymmetricPaddingMode paddingMode, Void* pPaddingInfo, Int32 estimatedSize)
            /_/src/libraries/Common/src/System/Security/Cryptography/RSACng.SignVerify.cs(67,0): at System.Security.Cryptography.RSACng.SignHash(Byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
            /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/RSA.cs(363,0): at System.Security.Cryptography.RSA.SignData(Byte[] data, Int32 offset, Int32 count, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
            /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/RSAWrapper.cs(107,0): at System.Security.Cryptography.RSAWrapper.SignData(Byte[] data, Int32 offset, Int32 count, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
            /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/RSA.cs(344,0): at System.Security.Cryptography.RSA.SignData(Byte[] data, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
            /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/RSAPkcs1X509SignatureGenerator.cs(22,0): at System.Security.Cryptography.X509Certificates.RSAPkcs1X509SignatureGenerator.SignData(Byte[] data, HashAlgorithmName hashAlgorithm)
            /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/CertificateRequest.cs(885,0): at System.Security.Cryptography.X509Certificates.CertificateRequest.Create(X500DistinguishedName issuerName, X509SignatureGenerator generator, DateTimeOffset notBefore, DateTimeOffset notAfter, ReadOnlySpan`1 serialNumber)
            /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/CertificateRequest.cs(771,0): at System.Security.Cryptography.X509Certificates.CertificateRequest.Create(X500DistinguishedName issuerName, X509SignatureGenerator generator, DateTimeOffset notBefore, DateTimeOffset notAfter, Byte[] serialNumber)
            /_/src/libraries/System.Security.Cryptography.X509Certificates/tests/TestDataGenerator.cs(196,0): at System.Security.Cryptography.X509Certificates.Tests.TestDataGenerator.MakeTestChain(ReadOnlySpan`1 keys, Span`1 certs, IEnumerable`1 endEntityExtensions, IEnumerable`1 intermediateExtensions, IEnumerable`1 rootExtensions, String testName)
            /_/src/libraries/System.Security.Cryptography.X509Certificates/tests/TestDataGenerator.cs(32,0): at System.Security.Cryptography.X509Certificates.Tests.TestDataGenerator.MakeTestChain3(X509Certificate2& endEntityCert, X509Certificate2& intermediateCert, X509Certificate2& rootCert, IEnumerable`1 endEntityExtensions, IEnumerable`1 intermediateExtensions, IEnumerable`1 rootExtensions, String testName)
            /_/src/libraries/System.Security.Cryptography.X509Certificates/tests/DynamicChainTests.cs(618,0): at System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.MismatchKeyIdentifiers()
               at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
            /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodInvoker.cs(69,0): at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
      Finished:    System.Security.Cryptography.X509Certificates.Tests
    
  7. vcsjones commented on Jan 12, 2023

    @vcsjones
    Member

    @carlossanlop

    Unknown error (0xc0000001)

    That's the infamous issue over at #29683. We've been using that issue to track all of the "unknown error" failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions