runtime: Test failure: System.Security.Cryptography.Algorithms.Tests.AesCcmTests/AesCcmNistTests(testCase: NIST CCM Test Vectors - DVPT128.rsp - 0 (128/56/0/32/0))

Test System.Security.Cryptography.Algorithms.Tests.AesCcmTests/AesCcmNistTests(testCase: NIST CCM Test Vectors - DVPT128.rsp - 0 (128/56/0/32/0)) has failed.

Message :

System.TypeInitializationException : The type initializer for 'Crypto' threw an exception.
---- System.TypeInitializationException : The type initializer for 'CryptoInitializer' threw an exception.
-------- System.DllNotFoundException : Unable to load shared library 'System.Security.Cryptography.Native.OpenSsl' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(libSystem.Security.Cryptography.Native.OpenSsl, 1): image not found

Stack Trace :

 at Interop.Crypto.EvpAes128Ccm()
   at System.Security.Cryptography.AesCcm.GetCipher(Int32 keySizeInBits) in /_/src/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/AesCcm.Unix.cs:line 130
   at System.Security.Cryptography.AesCcm.EncryptInternal(ReadOnlySpan`1 nonce, ReadOnlySpan`1 plaintext, Span`1 ciphertext, Span`1 tag, ReadOnlySpan`1 associatedData) in /_/src/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/AesCcm.Unix.cs:line 37
   at System.Security.Cryptography.AesCcm.Encrypt(ReadOnlySpan`1 nonce, ReadOnlySpan`1 plaintext, Span`1 ciphertext, Span`1 tag, ReadOnlySpan`1 associatedData) in /_/src/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/AesCcm.cs:line 44
   at System.Security.Cryptography.AesCcm.Encrypt(Byte[] nonce, Byte[] plaintext, Byte[] ciphertext, Byte[] tag, Byte[] associatedData) in /_/src/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/AesCcm.cs:line 33
   at System.Security.Cryptography.Algorithms.Tests.AesCcmTests.AesCcmNistTests(AEADTest testCase) in /_/src/System.Security.Cryptography.Algorithms/tests/AesCcmTests.cs:line 333
----- Inner Stack Trace -----
   at Interop.CryptoInitializer.Initialize() in /_/src/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.Initialization.cs:line 42
   at Interop.Crypto..cctor() in /_/src/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.Initialization.cs:line 20
----- Inner Stack Trace -----
   at Interop.CryptoInitializer.EnsureOpenSslInitialized()
   at Interop.CryptoInitializer..cctor() in /_/src/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.Initialization.cs:line 27

Build: -20190612.69(Master)

Failing configurations:

  • OSX.1014.Amd64.Open-x64-Release

Details; https://mc.dot.net/#/user/dotnet-bot/pr~2Fdotnet~2Fcorefx~2Frefs~2Fheads~2Fmaster/test~2Ffunctional~2Fcli~2Finnerloop~2F/20190612.69/workItem/System.Security.Cryptography.Algorithms.Tests/analysis/xunit/System.Security.Cryptography.Algorithms.Tests.AesCcmTests~2FAesCcmNistTests(testCase: NIST CCM Test Vectors - DVPT128.rsp - 0 (128~2F56~2F0~2F32~2F0))

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 23 (21 by maintainers)

Most upvoted comments

This seems to have been resolved via infrastructure.

@ViktorHofer as of this morning at least (had to take a couple rogue machines offline) all the OSX.1014.Amd64 machines should be uniformly updated to latest OpenSSL; please ping me for any variances you see there and CC @parose1

It would be nice if the tests printed this diagnostic information in the event of this class of failure.

As a bit of a hack, we print out a bunch of diagnostic data in: https://github.com/dotnet/corefx/blob/5955ee2583d4509d37ecf55243e9e3c9af128487/src/System.Runtime.InteropServices.RuntimeInformation/tests/DescriptionNameTests.cs#L16 This could be added to the mix.

What’s the best way for me to ask if dci-mac-build-107 is missing the OpenSSL prereq? 😃

It would be nice if the tests printed this diagnostic information in the event of this class of failure.