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

System.Security.Cryptography.Tests CertTests.RaceDisposeAndKeyAccess failing #85073

Closed
buyaa-n opened this issue Apr 19, 2023 · 2 comments · Fixed by #86503
Closed

System.Security.Cryptography.Tests CertTests.RaceDisposeAndKeyAccess failing #85073

buyaa-n opened this issue Apr 19, 2023 · 2 comments · Fixed by #86503
Assignees
Labels
area-System.Security blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab
Milestone

Comments

@buyaa-n
Copy link
Contributor

buyaa-n commented Apr 19, 2023

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=235406
Build error leg or test failing: System.Security.Cryptography.Tests.WorkItemExecution
Pull request: #81059

Error Message

Fill the error message using known issues guidance.

{
  "ErrorMessage": "at Interop.Crypto.EvpPKeyDuplicate",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": false
}
Process terminated. Assertion failed.
   at Interop.Crypto.EvpPKeyDuplicate(SafeEvpPKeyHandle currentKey, EvpAlgorithmId algorithmId) in /_/src/libraries/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.EvpPkey.cs:line 25
   at System.Security.Cryptography.RSAOpenSsl..ctor(SafeEvpPKeyHandle pkeyHandle) in /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/RSAOpenSsl.cs:line 76
   at System.Security.Cryptography.X509Certificates.OpenSslX509CertificateReader.GetRSAPrivateKey() in /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/OpenSslX509CertificateReader.cs:line 556
   at System.Security.Cryptography.X509Certificates.CertificateExtensionsCommon.GetPrivateKey[T](X509Certificate2 certificate, Predicate`1 matchesConstraints) in /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/CertificateExtensionsCommon.cs:line 61
   at System.Security.Cryptography.X509Certificates.RSACertificateExtensions.GetRSAPrivateKey(X509Certificate2 certificate) in /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/RSACertificateExtensions.cs:line 27
   at System.Security.Cryptography.X509Certificates.Tests.CertTests.<>c.<RaceDisposeAndKeyAccess>b__4_1(Object cert) in /_/src/libraries/System.Security.Cryptography/tests/X509Certificates/CertTests.cs:line 54
./RunTests.sh: line 168:    24 Aborted                 (core dumped) "$RUNTIME_PATH/dotnet" 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 $RSP_FILE
/root/helix/work/workitem/e
----- end Wed 12 Apr 2023 12:33:49 AM UTC ----- exit code 134 ----------------------------------------------------------
exit code 134 means SIGABRT Abort. Managed or native assert, or runtime check such as heap corruption, caused call to abort(). Core dumped.
ulimit -c value: unlimited

Report

Build Definition Test Pull Request
277117 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #86400
272007 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #85551
269809 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #86076
269059 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #86007
268930 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #85913
255939 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #84494
251855 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #85343
248075 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #85000
246147 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #85111

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 1 9
@buyaa-n buyaa-n added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab labels Apr 19, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Apr 19, 2023
@ghost
Copy link

ghost commented Apr 19, 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

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=235406
Build error leg or test failing: System.Security.Cryptography.Tests.WorkItemExecution
Pull request: #81059

Error Message

Fill the error message using known issues guidance.

{
  "ErrorMessage": "Process terminated. Assertion failed.",
  "BuildRetry": false,
  "ErrorPattern": "RaceDisposeAndKeyAccess",
  "ExcludeConsoleLog": false
}
Process terminated. Assertion failed.
   at Interop.Crypto.EvpPKeyDuplicate(SafeEvpPKeyHandle currentKey, EvpAlgorithmId algorithmId) in /_/src/libraries/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.EvpPkey.cs:line 25
   at System.Security.Cryptography.RSAOpenSsl..ctor(SafeEvpPKeyHandle pkeyHandle) in /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/RSAOpenSsl.cs:line 76
   at System.Security.Cryptography.X509Certificates.OpenSslX509CertificateReader.GetRSAPrivateKey() in /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/OpenSslX509CertificateReader.cs:line 556
   at System.Security.Cryptography.X509Certificates.CertificateExtensionsCommon.GetPrivateKey[T](X509Certificate2 certificate, Predicate`1 matchesConstraints) in /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/CertificateExtensionsCommon.cs:line 61
   at System.Security.Cryptography.X509Certificates.RSACertificateExtensions.GetRSAPrivateKey(X509Certificate2 certificate) in /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/RSACertificateExtensions.cs:line 27
   at System.Security.Cryptography.X509Certificates.Tests.CertTests.<>c.<RaceDisposeAndKeyAccess>b__4_1(Object cert) in /_/src/libraries/System.Security.Cryptography/tests/X509Certificates/CertTests.cs:line 54
./RunTests.sh: line 168:    24 Aborted                 (core dumped) "$RUNTIME_PATH/dotnet" 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 $RSP_FILE
/root/helix/work/workitem/e
----- end Wed 12 Apr 2023 12:33:49 AM UTC ----- exit code 134 ----------------------------------------------------------
exit code 134 means SIGABRT Abort. Managed or native assert, or runtime check such as heap corruption, caused call to abort(). Core dumped.
ulimit -c value: unlimited
Author: buyaa-n
Assignees: -
Labels:

area-System.Security, blocking-clean-ci, Known Build Error

Milestone: -

@vcsjones
Copy link
Member

Hm. Looks like a real race condition, but no idea why it just started failing. The test has been there for a while.

I'll take a look.

@adamsitnik adamsitnik removed the untriaged New issue has not been triaged by the area owner label May 19, 2023
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label May 19, 2023
@adamsitnik adamsitnik added this to the 8.0.0 milestone May 19, 2023
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label May 19, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jun 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Security blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants