JDK-8268131 : 2 java/foreign tests timed out
  • Type: Bug
  • Component: core-libs
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86_64
  • Submitted: 2021-06-02
  • Updated: 2021-06-11
  • Resolved: 2021-06-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 17
17 b26Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
The following two tests timed out in the JDK17 CI:

java/foreign/TestUpcall.java
java/foreign/TestDowncall.java

Here's a snippet from the TestUpcall.java log file:

test TestUpcall.testUpcalls(8922, "f14_D_DSF_IPF", NON_VOID, [DOUBLE, STRUCT, FLOAT], [INT, POINTER, FLOAT]): success
test TestUpcall.testUpcalls(8923, "f14_D_DSF_IPD", NON_VOID, [DOUBLE, STRUCT, FLOAT], [INT, POINTER, DOUBLE]): success
test TestUpcall.testUpcalls(8924, "f14_D_DSF_IPP", NON_VOID, [DOUBLE, STRUCT, FLOAT], [INT, POINTER, POINTER]): success
test TestUpcall.testUpcalls(8925, "f14_D_DSF_FII", NON_VOID, [DOUBLE, STRUCT, FLOAT], [FLOAT, INT, INT]): success
test TestUpcall.testUpcalls(8926, "f14_D_DSF_FIF", NON_VOID, [DOUBLE, STRUCT, FLOAT], [FLOAT, INT, FLOAT]): success
test TestUpcall.testUpcalls(8927, "f14_D_DSF_FID", NON_VOID, [DOUBLE, STRUCT, FLOAT], [FLOAT, INT, DOUBLE]): success
----------System.err:(1/56)----------
WARNING: Using incubator modules: jdk.incubator.foreign
----------rerun:(40/5792)*----------

<snip>

result: Error. Program `/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+25-2251/linux-x64-debug.jdk/jdk-17/fastdebug/bin/java' timed out (timeout set to 480000ms, elapsed time including timeout handling was 543255ms).


Here's a snippet from the TestDowncall.java log file:

test TestDowncall.testDowncallNoScope(12091, "f20_S_SSS_PDD", NON_VOID, [STRUCT, STRUCT, STRUCT], [POINTER, DOUBLE, DOUBLE]): success
test TestDowncall.testDowncallNoScope(12092, "f20_S_SSS_PDP", NON_VOID, [STRUCT, STRUCT, STRUCT], [POINTER, DOUBLE, POINTER]): success
test TestDowncall.testDowncallNoScope(12093, "f20_S_SSS_PPI", NON_VOID, [STRUCT, STRUCT, STRUCT], [POINTER, POINTER, INT]): success
test TestDowncall.testDowncallNoScope(12094, "f20_S_SSS_PPF", NON_VOID, [STRUCT, STRUCT, STRUCT], [POINTER, POINTER, FLOAT]): success
test TestDowncall.testDowncallNoScope(12095, "f20_S_SSS_PPD", NON_VOID, [STRUCT, STRUCT, STRUCT], [POINTER, POINTER, DOUBLE]): success
test TestDowncall.testDowncallNoScope(12096, "f20_S_SSS_PPP", NON_VOID, [STRUCT, STRUCT, STRUCT], [POINTER, POINTER, POINTER]): success

===============================================
java/foreign/TestDowncall.java
Total tests run: 24194, Failures: 0, Skips: 0
===============================================

----------System.err:(1/56)----------
WARNING: Using incubator modules: jdk.incubator.foreign
----------rerun:(40/5810)*----------

<snip>

result: Error. Program `/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+25-2251/linux-x64-debug.jdk/jdk-17/fastdebug/bin/java' timed out (timeout set to 480000ms, elapsed time including timeout handling was 517205ms).


It looks like TestDowncall.java managed to pass while
the timeout handler was running.

The test task's JVM args are: -Xcheck:jni
Comments
The fix for this bug is in jdk-17+26-2286.
03-06-2021

Changeset: 52d8215a Author: Maurizio Cimadamore <mcimadamore@openjdk.org> Date: 2021-06-03 16:19:35 +0000 URL: https://git.openjdk.java.net/jdk/commit/52d8215a1ec42d67217505fe3167c70460f5a639
03-06-2021

[~dcubed] My bad. I read the date wrong.
03-06-2021

[~jwilhelm] - Why did you mark this as intermittent?
02-06-2021

Thanks for the report, we will need to increase the timeout on these. See: https://github.com/openjdk/jdk/pull/4321
02-06-2021

[~mcimadamore] - Can you take a look?
02-06-2021