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

CI failure in Rsa.Tests.RSAKeyExchangeFormatterTests.VerifyDecryptKeyExchangePkcs1 #21552

Closed
danmoseley opened this issue May 6, 2017 · 13 comments
Assignees
Labels
area-System.Security disabled-test The test is disabled in source code against the issue os-linux Linux OS (any supported distro) test-run-core Test failures in .NET Core test runs
Milestone

Comments

@danmoseley
Copy link
Member

https://ci.dot.net/job/dotnet_corefx/job/master/job/portablelinux_debug_prtest/4738/testReport/junit/System.Security.Cryptography.Rsa.Tests/RSAKeyExchangeFormatterTests/VerifyDecryptKeyExchangePkcs1/

Stacktrace

MESSAGE:
Assert.Throws() Failure\nExpected: typeof(System.Security.Cryptography.CryptographicException)\nActual: (No exception was thrown)
+++++++++++++++++++
STACK TRACE:
at System.Security.Cryptography.Rsa.Tests.RSAKeyExchangeFormatterTests.VerifyDecryptKeyExchange(AsymmetricKeyExchangeFormatter formatter, AsymmetricKeyExchangeDeformatter deformatter) in /mnt/resource/j/workspace/dotnet_corefx/master/portablelinux_debug_prtest/src/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/RSAKeyExchangeFormatter.cs:line 80 at System.Security.Cryptography.Rsa.Tests.RSAKeyExchangeFormatterTests.VerifyDecryptKeyExchangePkcs1() in /mnt/resource/j/workspace/dotnet_corefx/master/portablelinux_debug_prtest/src/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/RSAKeyExchangeFormatter.cs:line 35
@safern
Copy link
Member

safern commented May 9, 2017

@bartonjs

@bartonjs
Copy link
Member

I marked this as 2.0 because we should know why this started failing. I can't think of any relevant changes we'd've done, and the test looks fairly static.

@danmoseley
Copy link
Member Author

@bartonjs do you have time to look today Jeremy?

@karelz

@safern safern self-assigned this May 10, 2017
@safern
Copy link
Member

safern commented May 10, 2017

I can grab and investigate this one.

@safern
Copy link
Member

safern commented May 11, 2017

Trying to get a repro, wasn't successful after 400 runs on Windows, will try now in portable linux.

@bartonjs
Copy link
Member

I've been poking at this throughout the day, and haven't seen failures, either. I'm at commit 4ab9f71 (the last one before the test was disabled), and currently have the test running in a tight loop under COMPlus_GCStress=3. No sign of failure.

It's weird that it happened, and super weird that it happened twice...

I wish I could easily find out what commit those runs had been on.

@safern
Copy link
Member

safern commented May 11, 2017

And the logs for the failures are deleted :(

@bartonjs
Copy link
Member

I'm leaning toward "no bug", and that we should just turn this test back on in master... maybe once we're forked.

@bartonjs
Copy link
Member

With the test modified to run 1,000,000 iterations, and print a '.' every 1000, running under GCStress=3, I'm getting nowhere:

$ COMPlus_GCStress=3 ./dotnet xunit.console.netcore.exe System.Security.Cryptography.OpenSsl.Tests.dll -method System.Security.Cryptography.Rsa.Tests.RSAKeyExchangeFormatterTests.VerifyDecryptKeyExchangePkcs1
xUnit.net console test runner (64-bit .NET Core)
Copyright (C) 2014 Outercurve Foundation.

Discovering: System.Security.Cryptography.OpenSsl.Tests
Discovered:  System.Security.Cryptography.OpenSsl.Tests
Starting:    System.Security.Cryptography.OpenSsl.Tests
..................................

That's more than 33k runs under GCStress (and still going). So... solar flares? Illuminati conspiracy?

@karelz
Copy link
Member

karelz commented May 11, 2017

Can we add more logging / hard crash upon error and let it repro again in CI?

@bartonjs
Copy link
Member

Better reproducibility/diagnosibility seems fair. I'll do that right now (unless there's something different you think, @safern?)

@safern
Copy link
Member

safern commented May 11, 2017

I think logging is a good alternative as I ran the tests for 2000 in windows and 2000 iterations in Ubuntu with -portable parameter and haven't seen any failure yet. Thanks for putting the PR @bartonjs

@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 2.0.0 milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Security disabled-test The test is disabled in source code against the issue os-linux Linux OS (any supported distro) test-run-core Test failures in .NET Core test runs
Projects
None yet
Development

No branches or pull requests

5 participants