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.Rsa.Tests.RSAKeyFileTests.UseAfterDispose(importKey: False) #85260

Closed
kunalspathak opened this issue Apr 24, 2023 · 7 comments
Labels
arch-x86 area-System.Security JitStress CLR JIT issues involving JIT internal stress modes os-windows
Milestone

Comments

@kunalspathak
Copy link
Member

Failing in libraries-jitstress

DOTNET_TieredCompilation=0
C:\h\w\A9520980\w\9E4F08B8\e>"C:\h\w\A9520980\p\dotnet.exe" exec --runtimeconfig System.Security.Cryptography.Tests.runtimeconfig.json --depsfile System.Security.Cryptography.Tests.deps.json xunit.console.dll System.Security.Cryptography.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing  
  Discovering: System.Security.Cryptography.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Security.Cryptography.Tests (found 3359 of 3586 test cases)
  Starting:    System.Security.Cryptography.Tests (parallel test collections = on, max threads = 4)
    System.Security.Cryptography.Encryption.TripleDes.Tests.TripleDESContractTests.Windows7DoesNotSupportCFB64 [SKIP]
      Condition(s) not met: "IsWindows7"
    System.Security.Cryptography.Rsa.Tests.RSAKeyFileTests.UseAfterDispose(importKey: False) [FAIL]
      System.Security.Cryptography.CryptographicException : Unknown error (0xc10000e5)
      Stack Trace:
        /_/src/libraries/Common/src/Interop/Windows/BCrypt/Interop.BCryptFinalizeKey.cs(24,0): at Interop.BCrypt.BCryptFinalizeKeyPair(SafeBCryptKeyHandle key)
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/RSABCrypt.cs(53,0): at System.Security.Cryptography.RSABCrypt.GetKey()
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/RSABCrypt.cs(73,0): at System.Security.Cryptography.RSABCrypt.ExportParameters(Boolean includePrivateParameters)
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/RSA.cs(713,0): at System.Security.Cryptography.RSA.ExportRSAPublicKey()
        /_/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/RSAKeyFileTests.cs(42,0): at System.Security.Cryptography.Rsa.Tests.RSAKeyFileTests.UseAfterDispose(Boolean importKey)
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodInvoker.cs(59,0): at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
    System.Security.Cryptography.Encryption.Des.Tests.DesContractTests.Windows7DoesNotSupportCFB [SKIP]
@kunalspathak kunalspathak added area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI blocking-clean-ci-optional Blocking optional rolling runs labels Apr 24, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Apr 24, 2023
@ghost
Copy link

ghost commented Apr 24, 2023

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

Issue Details

Failing in libraries-jitstress

DOTNET_TieredCompilation=0
C:\h\w\A9520980\w\9E4F08B8\e>"C:\h\w\A9520980\p\dotnet.exe" exec --runtimeconfig System.Security.Cryptography.Tests.runtimeconfig.json --depsfile System.Security.Cryptography.Tests.deps.json xunit.console.dll System.Security.Cryptography.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing  
  Discovering: System.Security.Cryptography.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Security.Cryptography.Tests (found 3359 of 3586 test cases)
  Starting:    System.Security.Cryptography.Tests (parallel test collections = on, max threads = 4)
    System.Security.Cryptography.Encryption.TripleDes.Tests.TripleDESContractTests.Windows7DoesNotSupportCFB64 [SKIP]
      Condition(s) not met: "IsWindows7"
    System.Security.Cryptography.Rsa.Tests.RSAKeyFileTests.UseAfterDispose(importKey: False) [FAIL]
      System.Security.Cryptography.CryptographicException : Unknown error (0xc10000e5)
      Stack Trace:
        /_/src/libraries/Common/src/Interop/Windows/BCrypt/Interop.BCryptFinalizeKey.cs(24,0): at Interop.BCrypt.BCryptFinalizeKeyPair(SafeBCryptKeyHandle key)
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/RSABCrypt.cs(53,0): at System.Security.Cryptography.RSABCrypt.GetKey()
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/RSABCrypt.cs(73,0): at System.Security.Cryptography.RSABCrypt.ExportParameters(Boolean includePrivateParameters)
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/RSA.cs(713,0): at System.Security.Cryptography.RSA.ExportRSAPublicKey()
        /_/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/RSAKeyFileTests.cs(42,0): at System.Security.Cryptography.Rsa.Tests.RSAKeyFileTests.UseAfterDispose(Boolean importKey)
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodInvoker.cs(59,0): at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
    System.Security.Cryptography.Encryption.Des.Tests.DesContractTests.Windows7DoesNotSupportCFB [SKIP]
Author: kunalspathak
Assignees: -
Labels:

area-CodeGen-coreclr, blocking-clean-ci-optional

Milestone: -

@JulieLeeMSFT JulieLeeMSFT removed the untriaged New issue has not been triaged by the area owner label May 1, 2023
@JulieLeeMSFT JulieLeeMSFT added this to the 8.0.0 milestone May 1, 2023
@JulieLeeMSFT
Copy link
Member

@BruceForstall PTAL.

@BruceForstall
Copy link
Member

Failure was in:

net8.0-windows-Release-x86-CoreCLR_checked-no_tiered_compilation-Windows.10.Amd64.Open

@BruceForstall BruceForstall removed their assignment May 1, 2023
@BruceForstall BruceForstall added area-System.Security and removed area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI blocking-clean-ci-optional Blocking optional rolling runs labels May 1, 2023
@ghost
Copy link

ghost commented May 1, 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

Failing in libraries-jitstress

DOTNET_TieredCompilation=0
C:\h\w\A9520980\w\9E4F08B8\e>"C:\h\w\A9520980\p\dotnet.exe" exec --runtimeconfig System.Security.Cryptography.Tests.runtimeconfig.json --depsfile System.Security.Cryptography.Tests.deps.json xunit.console.dll System.Security.Cryptography.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing  
  Discovering: System.Security.Cryptography.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Security.Cryptography.Tests (found 3359 of 3586 test cases)
  Starting:    System.Security.Cryptography.Tests (parallel test collections = on, max threads = 4)
    System.Security.Cryptography.Encryption.TripleDes.Tests.TripleDESContractTests.Windows7DoesNotSupportCFB64 [SKIP]
      Condition(s) not met: "IsWindows7"
    System.Security.Cryptography.Rsa.Tests.RSAKeyFileTests.UseAfterDispose(importKey: False) [FAIL]
      System.Security.Cryptography.CryptographicException : Unknown error (0xc10000e5)
      Stack Trace:
        /_/src/libraries/Common/src/Interop/Windows/BCrypt/Interop.BCryptFinalizeKey.cs(24,0): at Interop.BCrypt.BCryptFinalizeKeyPair(SafeBCryptKeyHandle key)
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/RSABCrypt.cs(53,0): at System.Security.Cryptography.RSABCrypt.GetKey()
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/RSABCrypt.cs(73,0): at System.Security.Cryptography.RSABCrypt.ExportParameters(Boolean includePrivateParameters)
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/RSA.cs(713,0): at System.Security.Cryptography.RSA.ExportRSAPublicKey()
        /_/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/RSAKeyFileTests.cs(42,0): at System.Security.Cryptography.Rsa.Tests.RSAKeyFileTests.UseAfterDispose(Boolean importKey)
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodInvoker.cs(59,0): at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
    System.Security.Cryptography.Encryption.Des.Tests.DesContractTests.Windows7DoesNotSupportCFB [SKIP]
Author: kunalspathak
Assignees: -
Labels:

arch-x86, area-System.Security, os-windows

Milestone: 8.0.0

@BruceForstall
Copy link
Member

@dotnet/area-system-security Looks like a potentially flaky test failure? I don't see this failure in recent runs.

@BruceForstall BruceForstall changed the title JitStress: System.Security.Cryptography.Rsa.Tests.RSAKeyFileTests.UseAfterDispose(importKey: False) Test failure: System.Security.Cryptography.Rsa.Tests.RSAKeyFileTests.UseAfterDispose(importKey: False) May 1, 2023
@BruceForstall BruceForstall added the JitStress CLR JIT issues involving JIT internal stress modes label May 1, 2023
@adamsitnik adamsitnik modified the milestones: 8.0.0, Future May 19, 2023
@adamsitnik
Copy link
Member

It sounds like a flaky test, let's wait for a while and see if it reproduces.

@vcsjones
Copy link
Member

System.Security.Cryptography.CryptographicException : Unknown error (0xc10000e5)

Closing as a duplicate of #29683

@vcsjones vcsjones closed this as not planned Won't fix, can't repro, duplicate, stale Nov 29, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-x86 area-System.Security JitStress CLR JIT issues involving JIT internal stress modes os-windows
Projects
None yet
Development

No branches or pull requests

5 participants