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

jdk14+: jdk_foreign testcases intermittent failures #1701

Closed
sophia-guo opened this issue Mar 30, 2020 · 5 comments · Fixed by #5197
Closed

jdk14+: jdk_foreign testcases intermittent failures #1701

sophia-guo opened this issue Mar 30, 2020 · 5 comments · Fixed by #5197
Assignees
Labels
JBS issue need to report to JBS or reopen the issue in JBS type:openjdk Refers to openjdk regression test suite

Comments

@sophia-guo
Copy link
Contributor

sophia-guo commented Mar 30, 2020

A couple of tests under jdk_forfeign have intermittent failures for hotspot and openj9. This is a new subset of tier1 added a few month ago.

/home/jenkins/workspace/Sophia/openjdk-tests/openjdkbinary/j2sdk-image//bin/java -version
openjdk version "14" 2020-03-17
OpenJDK Runtime Environment AdoptOpenJDK (build 14+35-202003272029)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 14+35-202003272029, mixed mode, sharing)

java/foreign/TestArrays.java
java/foreign/TestLayouts.java

@sophia-guo sophia-guo added type:openjdk Refers to openjdk regression test suite JBS issue need to report to JBS or reopen the issue in JBS labels Mar 30, 2020
@sophia-guo
Copy link
Contributor Author

java/foreign/TestArrays.java

09:23:30 ACTION: testng -- Failed. Unexpected exit from test [exit code: 137]
09:23:30 REASON: User specified action: run testng TestArrays
09:23:30 TIME: 29.858 seconds
09:23:30 messages:
09:23:30 command: testng TestArrays
09:23:30 reason: User specified action: run testng TestArrays
09:23:30 Mode: othervm [test needs --add-modules]
09:23:30 Additional options from @modules: --add-modules jdk.incubator.foreign
09:23:30 elapsed time (seconds): 29.858
09:23:30 configuration:
09:23:30 Boot Layer
09:23:30 add modules: jdk.incubator.foreign
09:23:30
09:23:30 STDOUT:
09:23:30 [TestNG] Running:
09:23:30 java/foreign/TestArrays.java

09:23:30 STDERR:
09:23:30 WARNING: Using incubator modules: jdk.incubator.foreign
09:23:30 rerun:
09:23:30 cd /home/jenkins/workspace/Grinder_Sandbox/openjdk-tests/TKG/test_output_15852289621640/jdk_foreign_0/work/scratch/0 &&
09:23:30 DISPLAY=:0
09:23:30 HOME=/home/jenkins
09:23:30 LANG=en_US.UTF-8
09:23:30 PATH=/bin:/usr/bin:/usr/sbin
09:23:30 CLASSPATH=/home/jenkins/workspace/Grinder_Sandbox/openjdk-tests/TKG/test_output_15852289621640/jdk_foreign_0/work/classes/1/java/foreign/TestArrays.d:/home/jenkins/workspace/Grinder_Sandbox/openjdk-tests/openjdk/openjdk-jdk/test/jdk/java/foreign:/home/jenkins/workspace/Grinder_Sandbox/jvmtest/openjdk/jtreg/lib/testng.jar:/home/jenkins/workspace/Grinder_Sandbox/jvmtest/openjdk/jtreg/lib/jcommander.jar:/home/jenkins/workspace/Grinder_Sandbox/jvmtest/openjdk/jtreg/lib/javatest.jar:/home/jenkins/workspace/Grinder_Sandbox/jvmtest/openjdk/jtreg/lib/jtreg.jar
09:23:30 /home/jenkins/workspace/Grinder_Sandbox/openjdkbinary/j2sdk-image/bin/java
09:23:30 -Dtest.class.path.prefix=/home/jenkins/workspace/Grinder_Sandbox/openjdk-tests/TKG/test_output_15852289621640/jdk_foreign_0/work/classes/1/java/foreign/TestArrays.d:/home/jenkins/workspace/Grinder_Sandbox/openjdk-tests/openjdk/openjdk-jdk/test/jdk/java/foreign
09:23:30 -Dtest.file=/home/jenkins/workspace/Grinder_Sandbox/openjdk-tests/openjdk/openjdk-jdk/test/jdk/java/foreign/TestArrays.java
09:23:30 -Dtest.src=/home/jenkins/workspace/Grinder_Sandbox/openjdk-tests/openjdk/openjdk-jdk/test/jdk/java/foreign
09:23:30 -Dtest.src.path=/home/jenkins/workspace/Grinder_Sandbox/openjdk-tests/openjdk/openjdk-jdk/test/jdk/java/foreign
09:23:30 -Dtest.classes=/home/jenkins/workspace/Grinder_Sandbox/openjdk-tests/TKG/test_output_15852289621640/jdk_foreign_0/work/classes/1/java/foreign/TestArrays.d
09:23:30 -Dtest.class.path=/home/jenkins/workspace/Grinder_Sandbox/openjdk-tests/TKG/test_output_15852289621640/jdk_foreign_0/work/classes/1/java/foreign/TestArrays.d
09:23:30 -Dtest.vm.opts='-ea -esa -Xmx512m'
09:23:30 -Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx512m'
09:23:30 -Dtest.compiler.opts=
09:23:30 -Dtest.java.opts=
09:23:30 -Dtest.jdk=/home/jenkins/workspace/Grinder_Sandbox/openjdkbinary/j2sdk-image
09:23:30 -Dcompile.jdk=/home/jenkins/workspace/Grinder_Sandbox/openjdkbinary/j2sdk-image
09:23:30 -Dtest.timeout.factor=8.0
09:23:30 -Dtest.root=/home/jenkins/workspace/Grinder_Sandbox/openjdk-tests/openjdk/openjdk-jdk/test/jdk
09:23:30 -Dtest.modules=jdk.incubator.foreign
09:23:30 -Dtest.nativepath=/home/jenkins/workspace/Grinder_Sandbox/openjdkbinary/openjdk-test-image/jdk/jtreg/native
09:23:30 --add-modules jdk.incubator.foreign
09:23:30 -ea
09:23:30 -esa
09:23:30 -Xmx512m
09:23:30 -Djava.library.path=/home/jenkins/workspace/Grinder_Sandbox/openjdkbinary/openjdk-test-image/jdk/jtreg/native
09:23:30 com.sun.javatest.regtest.agent.MainWrapper /home/jenkins/workspace/Grinder_Sandbox/openjdk-tests/TKG/test_output_15852289621640/jdk_foreign_0/work/java/foreign/TestArrays.d/testng.0.jta java/foreign/TestArrays.java false TestArrays
09:23:30
09:23:30 TEST RESULT: Failed. Unexpected exit from test [exit code: 137]

@sophia-guo
Copy link
Contributor Author

sophia-guo commented Mar 30, 2020

java/foreign/TestLayouts.java

TEST: java/foreign/TestLayouts.java
TEST JDK: /home/jenkins/workspace/Sophia/openjdk-tests/openjdkbinary/j2sdk-image

ACTION: build -- Passed. Build successful
REASON: Named class compiled on demand
TIME:   4.386 seconds
messages:
command: build TestLayouts
reason: Named class compiled on demand
Test directory:
  compile: TestLayouts
elapsed time (seconds): 4.386

ACTION: compile -- Passed. Compilation successful
REASON: .class file out of date or does not exist
TIME:   4.382 seconds
messages:
command: compile /home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/openjdk/openjdk-jdk/test/jdk/java/foreign/TestLayouts.java
reason: .class file out of date or does not exist
Additional options from @modules: --add-modules jdk.incubator.foreign
Mode: agentvm
Agent id: 1
elapsed time (seconds): 4.382
configuration:
Boot Layer (javac runtime environment)
  add modules: jdk.incubator.foreign 
  class path:  /home/jenkins/workspace/Sophia/openjdk-tests/jvmtest/openjdk/jtreg/lib/javatest.jar 
               /home/jenkins/workspace/Sophia/openjdk-tests/jvmtest/openjdk/jtreg/lib/jtreg.jar 
  patch:       java.base /home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/TKG/test_output_15855774008497/jdk_foreign_0/work/patches/java.base

javac compilation environment
  add modules: jdk.incubator.foreign
  source path: /home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/openjdk/openjdk-jdk/test/jdk/java/foreign
  class path:  /home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/openjdk/openjdk-jdk/test/jdk/java/foreign
               /home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/TKG/test_output_15855774008497/jdk_foreign_0/work/classes/1/java/foreign/TestLayouts.d
               /home/jenkins/workspace/Sophia/openjdk-tests/jvmtest/openjdk/jtreg/lib/testng.jar
               /home/jenkins/workspace/Sophia/openjdk-tests/jvmtest/openjdk/jtreg/lib/jcommander.jar

rerun:
cd /home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/TKG/test_output_15855774008497/jdk_foreign_0/work/scratch/0 && \
HOME=/home/jenkins \
LANG=en_US.UTF-8 \
PATH=/bin:/usr/bin:/usr/sbin \
    /home/jenkins/workspace/Sophia/openjdk-tests/openjdkbinary/j2sdk-image/bin/javac \
        -J-ea \
        -J-esa \
        -J-Xmx512m \
        -J--add-modules \
        -Jjdk.incubator.foreign \
        -J-Dtest.class.path.prefix=/home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/TKG/test_output_15855774008497/jdk_foreign_0/work/classes/1/java/foreign/TestLayouts.d:/home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/openjdk/openjdk-jdk/test/jdk/java/foreign \
        -J-Dtest.file=/home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/openjdk/openjdk-jdk/test/jdk/java/foreign/TestLayouts.java \
        -J-Dtest.src=/home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/openjdk/openjdk-jdk/test/jdk/java/foreign \
        -J-Dtest.src.path=/home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/openjdk/openjdk-jdk/test/jdk/java/foreign \
        -J-Dtest.classes=/home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/TKG/test_output_15855774008497/jdk_foreign_0/work/classes/1/java/foreign/TestLayouts.d \
        -J-Dtest.class.path=/home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/TKG/test_output_15855774008497/jdk_foreign_0/work/classes/1/java/foreign/TestLayouts.d \
        -J-Dtest.vm.opts='-ea -esa -Xmx512m --add-modules jdk.incubator.foreign' \
        -J-Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx512m -J--add-modules -Jjdk.incubator.foreign' \
        -J-Dtest.compiler.opts= \
        -J-Dtest.java.opts= \
        -J-Dtest.jdk=/home/jenkins/workspace/Sophia/openjdk-tests/openjdkbinary/j2sdk-image \
        -J-Dcompile.jdk=/home/jenkins/workspace/Sophia/openjdk-tests/openjdkbinary/j2sdk-image \
        -J-Dtest.timeout.factor=8.0 \
        -J-Dtest.root=/home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/openjdk/openjdk-jdk/test/jdk \
        -J-Dtest.modules=jdk.incubator.foreign \
        --add-modules jdk.incubator.foreign \
        -d /home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/TKG/test_output_15855774008497/jdk_foreign_0/work/classes/1/java/foreign/TestLayouts.d \
        -sourcepath /home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/openjdk/openjdk-jdk/test/jdk/java/foreign \
        -classpath /home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/openjdk/openjdk-jdk/test/jdk/java/foreign:/home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/TKG/test_output_15855774008497/jdk_foreign_0/work/classes/1/java/foreign/TestLayouts.d:/home/jenkins/workspace/Sophia/openjdk-tests/jvmtest/openjdk/jtreg/lib/testng.jar:/home/jenkins/workspace/Sophia/openjdk-tests/jvmtest/openjdk/jtreg/lib/jcommander.jar /home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/openjdk/openjdk-jdk/test/jdk/java/foreign/TestLayouts.java
direct:
warning: using incubating module(s): jdk.incubator.foreign
1 warning

ACTION: testng -- Error. Agent communication error: java.net.SocketException: Broken pipe; check console log for any additional details
REASON: User specified action: run testng TestLayouts 
TIME:   0.073 seconds
messages:
command: testng TestLayouts

@sophia-guo
Copy link
Contributor Author

java/foreign/TestLayoutPaths.java

ACTION: testng -- Error. Agent communication error: java.net.SocketException: Broken pipe; check console log for any additional details
REASON: User specified action: run testng TestLayoutPaths 
TIME:   0.104 seconds
messages:
command: testng TestLayoutPaths
reason: User specified action: run testng TestLayoutPaths 
Mode: agentvm
Agent id: 2
elapsed time (seconds): 0.104
configuration:
Boot Layer
  add modules: jdk.incubator.foreign 
  class path:  /home/jenkins/workspace/Sophia/openjdk-tests/jvmtest/openjdk/jtreg/lib/testng.jar 
               /home/jenkins/workspace/Sophia/openjdk-tests/jvmtest/openjdk/jtreg/lib/jcommander.jar 
               /home/jenkins/workspace/Sophia/openjdk-tests/jvmtest/openjdk/jtreg/lib/javatest.jar 
               /home/jenkins/workspace/Sophia/openjdk-tests/jvmtest/openjdk/jtreg/lib/jtreg.jar 
  patch:       java.base /home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/TKG/test_output_15855769787066/jdk_foreign_0/work/patches/java.base

Test Layer
  class path: /home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/TKG/test_output_15855769787066/jdk_foreign_0/work/classes/1/java/foreign/TestLayoutPaths.d
              /home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/openjdk/openjdk-jdk/test/jdk/java/foreign

rerun:
cd /home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/TKG/test_output_15855769787066/jdk_foreign_0/work/scratch/0 && \
HOME=/home/jenkins \
LANG=en_US.UTF-8 \
PATH=/bin:/usr/bin:/usr/sbin \
    /home/jenkins/workspace/Sophia/openjdk-tests/openjdkbinary/j2sdk-image/bin/java \
        -Dtest.class.path.prefix=/home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/TKG/test_output_15855769787066/jdk_foreign_0/work/classes/1/java/foreign/TestLayoutPaths.d:/home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/openjdk/openjdk-jdk/test/jdk/java/foreign \
        -Dtest.file=/home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/openjdk/openjdk-jdk/test/jdk/java/foreign/TestLayoutPaths.java \
        -Dtest.src=/home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/openjdk/openjdk-jdk/test/jdk/java/foreign \
        -Dtest.src.path=/home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/openjdk/openjdk-jdk/test/jdk/java/foreign \
        -Dtest.classes=/home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/TKG/test_output_15855769787066/jdk_foreign_0/work/classes/1/java/foreign/TestLayoutPaths.d \
        -Dtest.class.path=/home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/TKG/test_output_15855769787066/jdk_foreign_0/work/classes/1/java/foreign/TestLayoutPaths.d \
        -Dtest.vm.opts='-ea -esa -Xmx512m --add-modules jdk.incubator.foreign' \
        -Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx512m -J--add-modules -Jjdk.incubator.foreign' \
        -Dtest.compiler.opts= \
        -Dtest.java.opts= \
        -Dtest.jdk=/home/jenkins/workspace/Sophia/openjdk-tests/openjdkbinary/j2sdk-image \
        -Dcompile.jdk=/home/jenkins/workspace/Sophia/openjdk-tests/openjdkbinary/j2sdk-image \
        -Dtest.timeout.factor=8.0 \
        -Dtest.root=/home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/openjdk/openjdk-jdk/test/jdk \
        -Dtest.modules=jdk.incubator.foreign \
        -classpath /home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/TKG/test_output_15855769787066/jdk_foreign_0/work/classes/1/java/foreign/TestLayoutPaths.d:/home/jenkins/workspace/Sophia/openjdk-tests/openjdk-tests/openjdk/openjdk-jdk/test/jdk/java/foreign:/home/jenkins/workspace/Sophia/openjdk-tests/jvmtest/openjdk/jtreg/lib/testng.jar:/home/jenkins/workspace/Sophia/openjdk-tests/jvmtest/openjdk/jtreg/lib/jcommander.jar:/home/jenkins/workspace/Sophia/openjdk-tests/jvmtest/openjdk/jtreg/lib/javatest.jar:/home/jenkins/workspace/Sophia/openjdk-tests/jvmtest/openjdk/jtreg/lib/jtreg.jar \
        com.sun.javatest.regtest.agent.TestNGRunner java/foreign/TestLayoutPaths.java false TestLayoutPaths

TEST RESULT: Error. Agent communication error: java.net.SocketException: Broken pipe; check console log for any additional details

@sophia-guo
Copy link
Contributor Author

@sophia-guo
Copy link
Contributor Author

Both passed. Will enable the tests and close the issue

sophia-guo added a commit to sophia-guo/openjdk-tests that referenced this issue Apr 4, 2024
smlambert pushed a commit that referenced this issue Apr 5, 2024
* Enable tests excluded in issue 1701

#1701

Signed-off-by: Sophia Guo <[email protected]>

* Enable tests excluded in issue 1261

#1261

Signed-off-by: Sophia Guo <[email protected]>

* Enable tests excluded in issue 1267

#1267

Signed-off-by: Sophia Guo <[email protected]>

---------

Signed-off-by: Sophia Guo <[email protected]>
@sophia-guo sophia-guo self-assigned this Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JBS issue need to report to JBS or reopen the issue in JBS type:openjdk Refers to openjdk regression test suite
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant