JDK-8157896 : TestDSAGenParameterSpec.java test fails with timeout
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2016-05-25
  • Updated: 2018-02-15
  • Resolved: 2017-07-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u162Fixed 9 b123Fixed
Related Reports
Relates :  
Relates :  
Description
sun/security/provider/NSASuiteB/TestDSAGenParameterSpec.java

The fix was done with JDK-8137255 but doesn't seem to have solved the issue.
Comments
Also the following question applies to this issue, Should this kind of CPU intensive test need to run in a separate VM? I am not sure but is there any possibility that such kind of test can crash the VM?
01-06-2016

It looks to be the mathematical calculation required to generate primes for DSA parameters are taking long enough which makes the test timeout. One possible solution could be instead of processing all supported parameters in one single @run, divide each test parameter to run with each @run tag along with fixed timeout period configured based on the case requiring time to complete. Ex: (3072, 256) is taking almost double of time what (2048, 256) takes.
30-05-2016

JDK-8157898 has similar issue so I will assign this bug to myself.
25-05-2016