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 System.Security.Cryptography.Cose.Tests.CoseSign1MessageTests_SignStream_Sync.SignVerifyWithCustomCoseHeaderMaps #88896

Closed
v-wenyuxu opened this issue Jul 14, 2023 · 2 comments
Labels
arch-x64 area-System.Security JitStress CLR JIT issues involving JIT internal stress modes os-windows

Comments

@v-wenyuxu
Copy link

Failed in: runtime-coreclr libraries-jitstress 20230713.1

Failed tests:

net8.0-windows-Release-x64-CoreCLR_checked-jitstress2-Windows.10.Amd64.Open
    - System.Security.Cryptography.Cose.Tests.CoseSign1MessageTests_SignStream_Sync.SignWithCriticalHeaders_NotTransportingTheSpecifiedCriticalHeaderThrows
    - System.Security.Cryptography.Cose.Tests.CoseSign1MessageTests_SignStream_Sync.SignVerifyWithCustomCoseHeaderMaps
    - System.Security.Cryptography.Cose.Tests.CoseSign1MessageTests_Sign_ByteArray.SignVerifyWithCustomCoseHeaderMaps
    - System.Security.Cryptography.Cose.Tests.CoseSign1MessageTests_Sign_ByteArray.SignWithCriticalHeaders_NotTransportingTheSpecifiedCriticalHeaderThrows
    - System.Security.Cryptography.Cose.Tests.CoseMultiSignMessageTests_Sign_ByteArray.SignWithCriticalHeaders_NotTransportingTheSpecifiedCriticalHeaderThrows
    - System.Security.Cryptography.Cose.Tests.CoseMultiSignMessageTests_Sign_ByteArray.SignVerifyWithCustomCoseHeaderMaps
    - System.Security.Cryptography.Cose.Tests.CoseSign1MessageTests_TrySign.SignWithCriticalHeaders_NotTransportingTheSpecifiedCriticalHeaderThrows
    - System.Security.Cryptography.Cose.Tests.CoseSign1MessageTests_TrySign.SignVerifyWithCustomCoseHeaderMaps
    - System.Security.Cryptography.Cose.Tests.CoseMultiSignMessageTests_SignStream_Sync.SignVerifyWithCustomCoseHeaderMaps
    - System.Security.Cryptography.Cose.Tests.CoseMultiSignMessageTests_SignStream_Sync.SignWithCriticalHeaders_NotTransportingTheSpecifiedCriticalHeaderThrows
    - System.Security.Cryptography.Cose.Tests.CoseSign1MessageTests_SignStream_Async.SignWithCriticalHeaders_NotTransportingTheSpecifiedCriticalHeaderThrows
    - System.Security.Cryptography.Cose.Tests.CoseSign1MessageTests_SignStream_Async.SignVerifyWithCustomCoseHeaderMaps
    - System.Security.Cryptography.Cose.Tests.CoseMultiSignMessageTests_SignStream_Async.SignVerifyWithCustomCoseHeaderMaps
    - System.Security.Cryptography.Cose.Tests.CoseMultiSignMessageTests_SignStream_Async.SignWithCriticalHeaders_NotTransportingTheSpecifiedCriticalHeaderThrows
    - System.Security.Cryptography.Cose.Tests.CoseMultiSignMessageTests_TrySign.SignVerifyWithCustomCoseHeaderMaps
    - System.Security.Cryptography.Cose.Tests.CoseMultiSignMessageTests_TrySign.SignWithCriticalHeaders_NotTransportingTheSpecifiedCriticalHeaderThrows

Error message:

System.IndexOutOfRangeException : Index was outside the bounds of the array.

Stack trace:

   at System.Formats.Cbor.CborReader.PeekStateCore() in /_/src/libraries/System.Formats.Cbor/src/System/Formats/Cbor/Reader/CborReader.PeekState.cs:line 25
   at System.Security.Cryptography.Cose.CoseHelpers.DecodeCoseAlgorithmHeader(ReadOnlyMemory`1 encodedAlg) in /_/src/libraries/System.Security.Cryptography.Cose/src/System/Security/Cryptography/Cose/CoseHelpers.cs:line 218
   at System.Security.Cryptography.Cose.CoseSigner.ValidateAlgorithmHeader(ReadOnlyMemory`1 encodedAlg, Int32 expectedAlg) in /_/src/libraries/System.Security.Cryptography.Cose/src/System/Security/Cryptography/Cose/CoseSigner.cs:line 156
   at System.Security.Cryptography.Cose.CoseSigner.ValidateOrSlipAlgorithmHeader() in /_/src/libraries/System.Security.Cryptography.Cose/src/System/Security/Cryptography/Cose/CoseSigner.cs:line 151
   at System.Security.Cryptography.Cose.CoseSigner..ctor(AsymmetricAlgorithm key, HashAlgorithmName hashAlgorithm, CoseHeaderMap protectedHeaders, CoseHeaderMap unprotectedHeaders) in /_/src/libraries/System.Security.Cryptography.Cose/src/System/Security/Cryptography/Cose/CoseSigner.cs:line 79
   at System.Security.Cryptography.Cose.Tests.CoseMessageTests_Sign_CustomHeaderMaps.SignWithCriticalHeaders_NotTransportingTheSpecifiedCriticalHeaderThrows()
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodInvoker.cs:line 59
@v-wenyuxu v-wenyuxu added os-windows JitStress CLR JIT issues involving JIT internal stress modes arch-x64 labels Jul 14, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Jul 14, 2023
@ghost
Copy link

ghost commented Jul 14, 2023

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

Issue Details

Failed in: runtime-coreclr libraries-jitstress 20230713.1

Failed tests:

net8.0-windows-Release-x64-CoreCLR_checked-jitstress2-Windows.10.Amd64.Open
    - System.Security.Cryptography.Cose.Tests.CoseSign1MessageTests_SignStream_Sync.SignWithCriticalHeaders_NotTransportingTheSpecifiedCriticalHeaderThrows
    - System.Security.Cryptography.Cose.Tests.CoseSign1MessageTests_SignStream_Sync.SignVerifyWithCustomCoseHeaderMaps
    - System.Security.Cryptography.Cose.Tests.CoseSign1MessageTests_Sign_ByteArray.SignVerifyWithCustomCoseHeaderMaps
    - System.Security.Cryptography.Cose.Tests.CoseSign1MessageTests_Sign_ByteArray.SignWithCriticalHeaders_NotTransportingTheSpecifiedCriticalHeaderThrows
    - System.Security.Cryptography.Cose.Tests.CoseMultiSignMessageTests_Sign_ByteArray.SignWithCriticalHeaders_NotTransportingTheSpecifiedCriticalHeaderThrows
    - System.Security.Cryptography.Cose.Tests.CoseMultiSignMessageTests_Sign_ByteArray.SignVerifyWithCustomCoseHeaderMaps
    - System.Security.Cryptography.Cose.Tests.CoseSign1MessageTests_TrySign.SignWithCriticalHeaders_NotTransportingTheSpecifiedCriticalHeaderThrows
    - System.Security.Cryptography.Cose.Tests.CoseSign1MessageTests_TrySign.SignVerifyWithCustomCoseHeaderMaps
    - System.Security.Cryptography.Cose.Tests.CoseMultiSignMessageTests_SignStream_Sync.SignVerifyWithCustomCoseHeaderMaps
    - System.Security.Cryptography.Cose.Tests.CoseMultiSignMessageTests_SignStream_Sync.SignWithCriticalHeaders_NotTransportingTheSpecifiedCriticalHeaderThrows
    - System.Security.Cryptography.Cose.Tests.CoseSign1MessageTests_SignStream_Async.SignWithCriticalHeaders_NotTransportingTheSpecifiedCriticalHeaderThrows
    - System.Security.Cryptography.Cose.Tests.CoseSign1MessageTests_SignStream_Async.SignVerifyWithCustomCoseHeaderMaps
    - System.Security.Cryptography.Cose.Tests.CoseMultiSignMessageTests_SignStream_Async.SignVerifyWithCustomCoseHeaderMaps
    - System.Security.Cryptography.Cose.Tests.CoseMultiSignMessageTests_SignStream_Async.SignWithCriticalHeaders_NotTransportingTheSpecifiedCriticalHeaderThrows
    - System.Security.Cryptography.Cose.Tests.CoseMultiSignMessageTests_TrySign.SignVerifyWithCustomCoseHeaderMaps
    - System.Security.Cryptography.Cose.Tests.CoseMultiSignMessageTests_TrySign.SignWithCriticalHeaders_NotTransportingTheSpecifiedCriticalHeaderThrows

Error message:

System.IndexOutOfRangeException : Index was outside the bounds of the array.

Stack trace:

   at System.Formats.Cbor.CborReader.PeekStateCore() in /_/src/libraries/System.Formats.Cbor/src/System/Formats/Cbor/Reader/CborReader.PeekState.cs:line 25
   at System.Security.Cryptography.Cose.CoseHelpers.DecodeCoseAlgorithmHeader(ReadOnlyMemory`1 encodedAlg) in /_/src/libraries/System.Security.Cryptography.Cose/src/System/Security/Cryptography/Cose/CoseHelpers.cs:line 218
   at System.Security.Cryptography.Cose.CoseSigner.ValidateAlgorithmHeader(ReadOnlyMemory`1 encodedAlg, Int32 expectedAlg) in /_/src/libraries/System.Security.Cryptography.Cose/src/System/Security/Cryptography/Cose/CoseSigner.cs:line 156
   at System.Security.Cryptography.Cose.CoseSigner.ValidateOrSlipAlgorithmHeader() in /_/src/libraries/System.Security.Cryptography.Cose/src/System/Security/Cryptography/Cose/CoseSigner.cs:line 151
   at System.Security.Cryptography.Cose.CoseSigner..ctor(AsymmetricAlgorithm key, HashAlgorithmName hashAlgorithm, CoseHeaderMap protectedHeaders, CoseHeaderMap unprotectedHeaders) in /_/src/libraries/System.Security.Cryptography.Cose/src/System/Security/Cryptography/Cose/CoseSigner.cs:line 79
   at System.Security.Cryptography.Cose.Tests.CoseMessageTests_Sign_CustomHeaderMaps.SignWithCriticalHeaders_NotTransportingTheSpecifiedCriticalHeaderThrows()
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodInvoker.cs:line 59
Author: v-wenyuxu
Assignees: -
Labels:

area-System.Security, os-windows, JitStress, arch-x64, untriaged

Milestone: -

@jakobbotsch
Copy link
Member

Likely the same situation as #88890 (comment) -- the test passed in the next run, so going to close.

@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Jul 14, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Aug 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-x64 area-System.Security JitStress CLR JIT issues involving JIT internal stress modes os-windows
Projects
None yet
Development

No branches or pull requests

2 participants