JDK-8240611 : pkcs11/Cipher/TestKATForGCM.java failed due to timeout
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.crypto:pkcs11
  • Affected Version: 15,18,20,21
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows
  • CPU: x86_64
  • Submitted: 2020-03-05
  • Updated: 2023-08-01
  • Resolved: 2023-07-19
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.
Other
tbdResolved
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Sub Tasks
JDK-8307490 :  
Description
The following test failed in the JDK15 CI:

sun/security/pkcs11/Cipher/TestKATForGCM.java

Here's a snippet from the log file:

#section:main
----------messages:(8/226)----------
command: main TestKATForGCM
reason: User specified action: run main TestKATForGCM 
Mode: agentvm
Agent id: 15
Timeout refired 480 times
Timeout information:
--- Timeout information end.
elapsed time (seconds): 595.967
----------configuration:(13/1110)*----------
Boot Layer
  class path: C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\5.0\\b01\\bundles\\jtreg_bin-5.0.zip\\jtreg\\lib\\javatest.jar 
              C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\5.0\\b01\\bundles\\jtreg_bin-5.0.zip\\jtreg\\lib\\jtreg.jar 
  patch:      java.base T:\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part1\\patches\\java.base

Test Layer
  class path: T:\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part1\\classes\\3\\sun\\security\\pkcs11\\Cipher\\TestKATForGCM.d
              C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-15+14-492\\src.full\\open\\test\\jdk\\sun\\security\\pkcs11\\Cipher
              T:\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part1\\classes\\3\\test\\lib
              C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-15+14-492\\src.full\\open\\test\\lib
              T:\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part1\\classes\\3\\sun\\security\\pkcs11
              C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-15+14-492\\src.full\\open\\test\\jdk\\sun\\security\\pkcs11

----------rerun:(35/5012)*----------

<snip>

result: Error. Agent error: java.lang.Exception: Agent 15 timed out with a timeout of 480 seconds; check console log for any additional details


test result: Error. Agent error: java.lang.Exception: Agent 15 timed out with a timeout of 480 seconds; check console log for any additional details

Starting this as a P3 since this is a Tier2 failure.
Comments
Duplicate of JDK-8307185
19-07-2023

Same as JDK-8253056, creating exception in a GetPrimitiveArrayCritical section
19-07-2023

Here's a log file snippet from the jdk-21+7-462-tier2 sighting: sun/security/pkcs11/Cipher/TestKATForGCM.java #section:main ----------messages:(10/295)---------- command: main TestKATForGCM reason: User specified action: run main TestKATForGCM started: Wed Jan 25 09:43:33 UTC 2023 Mode: agentvm Agent id: 22 Timeout refired 480 times Timeout information: --- Timeout information end. finished: Wed Jan 25 09:55:48 UTC 2023 elapsed time (seconds): 734.568 ----------configuration:(16/2299)---------- Boot Layer class path: /opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.1.1/1/bundles/jtreg-7.1.1+1.zip/jtreg/lib/jtreg.jar /opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.1.1/1/bundles/jtreg-7.1.1+1.zip/jtreg/lib/junit-platform-console-standalone-1.8.2.jar /opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.1.1/1/bundles/jtreg-7.1.1+1.zip/jtreg/lib/testng-7.3.0.jar /opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.1.1/1/bundles/jtreg-7.1.1+1.zip/jtreg/lib/jcommander-1.78.jar /opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.1.1/1/bundles/jtreg-7.1.1+1.zip/jtreg/lib/guice-4.2.3.jar patch: java.base /opt/mach5/mesos/work_dir/slaves/91e16c40-06d4-468a-9fc3-7198a5bb7d5a-S88802/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/6ccba495-cfe0-4738-9ed0-f901591c8a03/runs/a61de5ad-628b-4765-819b-e07d25e10693/testoutput/test-support/jtreg_open_test_jdk_tier2_part1/patches/java.base Test Layer class path: /opt/mach5/mesos/work_dir/slaves/91e16c40-06d4-468a-9fc3-7198a5bb7d5a-S88802/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/6ccba495-cfe0-4738-9ed0-f901591c8a03/runs/a61de5ad-628b-4765-819b-e07d25e10693/testoutput/test-support/jtreg_open_test_jdk_tier2_part1/classes/1/sun/security/pkcs11/Cipher/TestKATForGCM.d /opt/mach5/mesos/work_dir/jib-master/install/jdk-21+7-462/src.full/open/test/jdk/sun/security/pkcs11/Cipher /opt/mach5/mesos/work_dir/slaves/91e16c40-06d4-468a-9fc3-7198a5bb7d5a-S88802/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/6ccba495-cfe0-4738-9ed0-f901591c8a03/runs/a61de5ad-628b-4765-819b-e07d25e10693/testoutput/test-support/jtreg_open_test_jdk_tier2_part1/classes/1/test/lib /opt/mach5/mesos/work_dir/jib-master/install/jdk-21+7-462/src.full/open/test/lib /opt/mach5/mesos/work_dir/slaves/91e16c40-06d4-468a-9fc3-7198a5bb7d5a-S88802/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/6ccba495-cfe0-4738-9ed0-f901591c8a03/runs/a61de5ad-628b-4765-819b-e07d25e10693/testoutput/test-support/jtreg_open_test_jdk_tier2_part1/classes/1/sun/security/pkcs11 /opt/mach5/mesos/work_dir/jib-master/install/jdk-21+7-462/src.full/open/test/jdk/sun/security/pkcs11 ----------rerun:(30/6967)*---------- <snip> result: Error. Agent error: java.lang.Exception: Agent 22 timed out with a timeout of 480 seconds; check console log for any additional details
25-01-2023

Here's a log file snippet from the jdk-20+2-21-tier2 sighting: sun/security/pkcs11/Cipher/TestKATForGCM.java #section:main ----------messages:(8/218)---------- command: main TestKATForGCM reason: User specified action: run main TestKATForGCM Mode: agentvm Agent id: 22 Timeout refired 480 times Timeout information: --- Timeout information end. elapsed time (seconds): 939.215 ----------configuration:(18/2463)---------- Boot Layer class path: /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/javatest.jar /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jtreg.jar /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/junit.jar /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/hamcrest.jar /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/testng.jar /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jcommander.jar /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/guice.jar patch: java.base /opt/mach5/mesos/work_dir/slaves/779adf21-f3e5-4e6a-a889-8cc0f9bc6fbb-S67025/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/82eb6763-65fd-4fe1-a9ee-4834256f6e1a/runs/f65e6f46-999f-4673-aa53-d38158ab6d52/testoutput/test-support/jtreg_open_test_jdk_tier2_part1/patches/java.base Test Layer class path: /opt/mach5/mesos/work_dir/slaves/779adf21-f3e5-4e6a-a889-8cc0f9bc6fbb-S67025/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/82eb6763-65fd-4fe1-a9ee-4834256f6e1a/runs/f65e6f46-999f-4673-aa53-d38158ab6d52/testoutput/test-support/jtreg_open_test_jdk_tier2_part1/classes/0/sun/security/pkcs11/Cipher/TestKATForGCM.d /opt/mach5/mesos/work_dir/jib-master/install/jdk-20+2-21/src.full/open/test/jdk/sun/security/pkcs11/Cipher /opt/mach5/mesos/work_dir/slaves/779adf21-f3e5-4e6a-a889-8cc0f9bc6fbb-S67025/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/82eb6763-65fd-4fe1-a9ee-4834256f6e1a/runs/f65e6f46-999f-4673-aa53-d38158ab6d52/testoutput/test-support/jtreg_open_test_jdk_tier2_part1/classes/0/test/lib /opt/mach5/mesos/work_dir/jib-master/install/jdk-20+2-21/src.full/open/test/lib /opt/mach5/mesos/work_dir/slaves/779adf21-f3e5-4e6a-a889-8cc0f9bc6fbb-S67025/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/82eb6763-65fd-4fe1-a9ee-4834256f6e1a/runs/f65e6f46-999f-4673-aa53-d38158ab6d52/testoutput/test-support/jtreg_open_test_jdk_tier2_part1/classes/0/sun/security/pkcs11 /opt/mach5/mesos/work_dir/jib-master/install/jdk-20+2-21/src.full/open/test/jdk/sun/security/pkcs11 ----------rerun:(29/6721)*---------- <snip> result: Error. Agent error: java.lang.Exception: Agent 22 timed out with a timeout of 480 seconds; check console log for any additional details
11-06-2022

It could be related to artifactory issue. I have fixed checksum for these artifacts so closing this bug. Please re-open if test failure is seen again.
11-03-2020

Could this also be due to the recently observed artifactory problem, i.e. JDK-8240686? This particular test does not have a lot of test vector and this intermittent failure happened around the same times as JDK-8240686 Rajan, any chance that you can confirm if this is the case as you are the RE for JDK-8240686?
11-03-2020