eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.28k stars 721 forks source link

openjdk8_j9_sanity.functional_x86-64_linux_xl j9vm.test.nestedJar.NestedJarFileTest #8629

Open JasonFengJ9 opened 4 years ago

JasonFengJ9 commented 4 years ago

Failure link

From an internal build:

21:47:03  openjdk version "1.8.0_252-internal"
21:47:03  OpenJDK Runtime Environment (build 1.8.0_252-internal-jenkins_2020_02_20_18_16-b00)
21:47:03  Eclipse OpenJ9 VM (build ibm_sdk-df22f7ee4f, JRE 1.8.0 Linux amd64-64-Bit 20200220_324 (JIT enabled, AOT enabled)
21:47:03  OpenJ9   - df22f7ee4f
21:47:03  OMR      - 83ba4e770
21:47:03  JCL      - c291dbef83 based on jdk8u252-b00)

Optional info

Failure output (captured from console output)

+++ j9vm.test.nestedJar.NestedJarFileTest: +++
command: /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_xl_Nightly/openjdkbinary/j2sdk-image/bin/java -Xnocompressedrefs -Xgcpolicy:metronome -Xnocompressedrefs  -Xdump -Xms64m -Xmx64m -Xshareclasses:name=nestedjarfiletest,reset,verboseHelper   -Xbootclasspath:/home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_xl_Nightly/openjdkbinary/j2sdk-image/jre/lib/amd64/default/jclSC180/vm.jar:/home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_xl_Nightly/openjdkbinary/j2sdk-image/jre/lib/se-service.jar:/home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_xl_Nightly/openjdkbinary/j2sdk-image/jre/lib/rt.jar:/home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_xl_Nightly/openjdkbinary/j2sdk-image/jre/lib/resources.jar:/home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_xl_Nightly/openjdkbinary/j2sdk-image/jre/lib/jsse.jar:/home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_xl_Nightly/openjdkbinary/j2sdk-image/jre/lib/charsets.jar:/home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_xl_Nightly/openjdkbinary/j2sdk-image/jre/lib/jce.jar -classpath /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_xl_Nightly/openjdk-tests/TKG/../../jvmtest/functional/VM_Test/VM_Test.jar:/home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_xl_Nightly/openjdk-tests/TKG/../TKG/lib/asm-all.jar  j9vm.test.nestedJar.NestedJarFileTest load3Classes

NestedJarFileTest> loadded TestC1
Failed to find class java/util/IdentityHashMap$KeySet in shared cache for class-loader id 0.
Stored class java/util/IdentityHashMap$KeySet in shared cache for class-loader id 0 with URL /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_xl_Nightly/openjdkbinary/j2sdk-image/jre/lib/rt.jar (index 2).
Failed to find class java/util/IdentityHashMap$KeyIterator in shared cache for class-loader id 0.
Stored class java/util/IdentityHashMap$KeyIterator in shared cache for class-loader id 0 with URL /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_xl_Nightly/openjdkbinary/j2sdk-image/jre/lib/rt.jar (index 2).
Failed to find class java/util/IdentityHashMap$IdentityHashMapIterator in shared cache for class-loader id 0.
Stored class java/util/IdentityHashMap$IdentityHashMapIterator in shared cache for class-loader id 0 with URL /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_xl_Nightly/openjdkbinary/j2sdk-image/jre/lib/rt.jar (index 2).
Failed to find class openj9/internal/tools/attach/target/AttachHandler$1 in shared cache for class-loader id 0.
Stored class openj9/internal/tools/attach/target/AttachHandler$1 in shared cache for class-loader id 0 with URL /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_xl_Nightly/openjdkbinary/j2sdk-image/jre/lib/rt.jar (index 2).
Failed to find class java/util/Vector$Itr in shared cache for class-loader id 0.
Stored class java/util/Vector$Itr in shared cache for class-loader id 0 with URL /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_xl_Nightly/openjdkbinary/j2sdk-image/jre/lib/rt.jar (index 2).
Failed to find class java/lang/Thread$State in shared cache for class-loader id 0.
Stored class java/lang/Thread$State in shared cache for class-loader id 0 with URL /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_xl_Nightly/openjdkbinary/j2sdk-image/jre/lib/rt.jar (index 2).
Error: Class TestA2 should be found in the shared cache
*** Test FAILED *** (j9vm.test.nestedJar.NestedJarFileTest)

J9vmTest_1_FAILED

Rebuild the failed tests in =https://ci.adoptopenjdk.net/job/Grinder, use the following links: https://ci.adoptopenjdk.net/job/Grinder/parambuild/?JDK_VERSION=8&JDK_IMPL=openj9&BUILD_LIST=functional&PLATFORM=x86-64_linux_xl&TARGET=J9vmTest_1

JasonFengJ9 commented 4 years ago

Also failed in this build (all shared class related)

Testing: nameOption
Test start time: 2020/02/20 20:46:58 Pacific Standard Time
Running command: sh nameOption.sh /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_xl_Nightly/openjdkbinary/j2sdk-image/bin /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_xl_Nightly/openjdkbinary/j2sdk-image/bin
Time spent starting: 2 milliseconds
Time spent executing: 1824 milliseconds
Test result: FAILED
 [OUT] Hello, world!
 [OUT] TEST PASSED
 [OUT] nameOption: TEST FAILED
 [OUT] nameOption: Expected to find the cache name
 [OUT] TEST PASSED
 [ERR] javac: file not found: HelloWorld.java
 [ERR] Usage: javac <options> <source files>
 [ERR] use -help for a list of possible options
 [ERR] javac: file not found: SimpleGrep.java
 [ERR] Usage: javac <options> <source files>
 [ERR] use -help for a list of possible options
 [ERR] JVMSHRC023E Cache does not exist
>> Success condition was found: [Output match: TEST PASSED]
>> Failure condition was found: [Output match: TEST FAILED]
>> Failure condition was not found: [Output match: Error:]
>> Failure condition was not found: [Output match: Unhandled Exception]
>> Failure condition was not found: [Output match: Exception:]

---TEST RESULTS---
Number of PASSED tests: 26 out of 27
Number of FAILED tests: 1 out of 27

---SUMMARY OF FAILED TESTS---
nameOption
-----------------------------

cmdLineTester_SCCommandLineOptionTests_0_FAILED

To rebuild the failed tests in =https://ci.adoptopenjdk.net/job/Grinder, use the following links: https://ci.adoptopenjdk.net/job/Grinder/parambuild/?JDK_VERSION=8&JDK_IMPL=openj9&BUILD_LIST=functional&PLATFORM=x86-64_linux_xl&TARGET=cmdLineTester_SCCommandLineOptionTests_0

pshipton commented 4 years ago

@hangshao0

hangshao0 commented 4 years ago
[ERR] javac: file not found: HelloWorld.java
 [ERR] Usage: javac <options> <source files>
 [ERR] use -help for a list of possible options
 [ERR] javac: file not found: SimpleGrep.java

nameOption.sh will compile HelloWorld.java and SimpleGrep.java. Those files are missing. Seems like a test set-up issue.

hangshao0 commented 4 years ago

5x grinder here: https://ci.adoptopenjdk.net/job/Grinder/2295/

hangshao0 commented 4 years ago

j9vm.test.nestedJar.NestedJarFileTest passed here: https://ci.adoptopenjdk.net/job/Grinder/2295/tapResults/ (a few other tests failed because native test lib is not passed in when launching the grinder)

cmdLineTester_SCCommandLineOptionTests_0 passed here: 5x grinder https://ci.adoptopenjdk.net/job/Grinder/2296/tapResults/

I guess some files (like HelloWorld.java, SimpleGrep.java) required by these tests are somehow deleted while running, causing them to fail.

JasonFengJ9 commented 4 years ago

A similar error at an internal build Test_openjdk8_j9_sanity.functional_x86-64_windows_Nightly_testList_1/16

NestedJarFileTest> loadded TestC1
Failed to find class java/util/IdentityHashMap$KeySet in shared cache for class-loader id 0.
Stored class java/util/IdentityHashMap$KeySet in shared cache for class-loader id 0 with URL C:\Users\jenkins\workspace\Test_openjdk8_j9_sanity.functional_x86-64_windows_Nightly_testList_1\openjdkbinary\j2sdk-image\jre\lib\rt.jar (index 2).
Failed to find class java/util/IdentityHashMap$KeyIterator in shared cache for class-loader id 0.
Stored class java/util/IdentityHashMap$KeyIterator in shared cache for class-loader id 0 with URL C:\Users\jenkins\workspace\Test_openjdk8_j9_sanity.functional_x86-64_windows_Nightly_testList_1\openjdkbinary\j2sdk-image\jre\lib\rt.jar (index 2).
Failed to find class java/util/IdentityHashMap$IdentityHashMapIterator in shared cache for class-loader id 0.
Stored class java/util/IdentityHashMap$IdentityHashMapIterator in shared cache for class-loader id 0 with URL C:\Users\jenkins\workspace\Test_openjdk8_j9_sanity.functional_x86-64_windows_Nightly_testList_1\openjdkbinary\j2sdk-image\jre\lib\rt.jar (index 2).
Failed to find class openj9/internal/tools/attach/target/AttachHandler$1 in shared cache for class-loader id 0.
Stored class openj9/internal/tools/attach/target/AttachHandler$1 in shared cache for class-loader id 0 with URL C:\Users\jenkins\workspace\Test_openjdk8_j9_sanity.functional_x86-64_windows_Nightly_testList_1\openjdkbinary\j2sdk-image\jre\lib\rt.jar (index 2).
Failed to find class java/util/Vector$Itr in shared cache for class-loader id 0.
Stored class java/util/Vector$Itr in shared cache for class-loader id 0 with URL C:\Users\jenkins\workspace\Test_openjdk8_j9_sanity.functional_x86-64_windows_Nightly_testList_1\openjdkbinary\j2sdk-image\jre\lib\rt.jar (index 2).
Failed to find class java/lang/Thread$State in shared cache for class-loader id 0.
Stored class java/lang/Thread$State in shared cache for class-loader id 0 with URL C:\Users\jenkins\workspace\Test_openjdk8_j9_sanity.functional_x86-64_windows_Nightly_testList_1\openjdkbinary\j2sdk-image\jre\lib\rt.jar (index 2).
Error: Class TestA2 should be found in the shared cache
*** Test FAILED *** (j9vm.test.nestedJar.NestedJarFileTest)

J9vmTest_4_FAILED