JDK-8137231 : sun/security/rsa/SpecTest.java timeout with Agent error: java.lang.Exception
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 8u111,9
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2015-09-28
  • Updated: 2020-01-15
  • Resolved: 2016-04-20
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 Other
8u221Fixed 9 b116Fixed openjdk8u222Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
----------rerun:(21/1830)*----------
PATH='C:\\cygwin\\usr\\local\\bin;C:\\cygwin\\bin;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Puppet Labs\\Puppet\\bin' \\
SystemDrive=C: \\
SystemRoot='C:\\Windows' \\
TEMP='C:\\cygwin\\tmp' \\
TMP='C:\\cygwin\\tmp' \\
windir='C:\\Windows' \\
    'C:\\users\\aurora\\CommonData\\jdk\\bin\\java' \\
        -Dtest.class.path.prefix='C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_security3\\JTwork\\classes\\sun\\security\\rsa;C:\\Users\\aurora\\sandbox\\testbase\\jdk\\test\\sun\\security\\rsa' \\
        -Dtest.src='C:\\Users\\aurora\\sandbox\\testbase\\jdk\\test\\sun\\security\\rsa' \\
        -Dtest.src.path='C:\\Users\\aurora\\sandbox\\testbase\\jdk\\test\\sun\\security\\rsa' \\
        -Dtest.classes='C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_security3\\JTwork\\classes\\sun\\security\\rsa' \\
        -Dtest.class.path='C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_security3\\JTwork\\classes\\sun\\security\\rsa' \\
        -Dtest.vm.opts='-ea -esa -DCompatibilityTest.disableNetwork=true -Xmx512m' \\
        -Dtest.tool.vm.opts='-J-ea -J-esa -J-DCompatibilityTest.disableNetwork=true -J-Xmx512m' \\
        -Dtest.compiler.opts= \\
        -Dtest.java.opts= \\
        -Dtest.jdk='C:\\users\\aurora\\CommonData\\jdk' \\
        -Dcompile.jdk='C:\\users\\aurora\\CommonData\\jdk' \\
        -Dtest.timeout.factor=4.0 \\
        -classpath 'C:\\Users\\aurora\\CommonData\\jtreg\\lib\\javatest.jar;C:\\Users\\aurora\\CommonData\\jtreg\\lib\\jtreg.jar;C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_security3\\JTwork\\classes\\sun\\security\\rsa;C:\\Users\\aurora\\sandbox\\testbase\\jdk\\test\\sun\\security\\rsa' \\
        SpecTest 5120
result: Error. Agent error: java.lang.Exception: Agent timed out with a timeout of 960 seconds; check console log for any additional details


test result: Error. Agent error: java.lang.Exception: Agent timed out with a timeout of 960 seconds; check console log for any additional details
Comments
Fix Request This patch improves test reliability, and keeps codebases in sync (I see 8u221/222). Patch applies cleanly to 8u and passes the affected test on Linux x86_64.
20-03-2019

Review sent: http://mail.openjdk.java.net/pipermail/security-dev/2016-April/013659.html
15-04-2016

There are 3 failures in mach5 on windows-i586 over the past 130 or so runs. Current failure history link: http://java.se.oracle.com/mach5/view/All/job/9-dev-tier2-windows-i586-failuresHistory/Failure_History/
03-03-2016

This caused by timeout when generate a huge size RSA key. Test setting timeout as 240 seconds for size 5120. But it failed in windows machine. I am going to remove tests for size 5120, theoretically speaking, size 4096 tests is big enough for verifying big size. I am going to raise timeout to 480 seconds for size 4096 tests in case it failed in some slower machine
02-10-2015