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.23k stars 712 forks source link

JDK8 ppc64le_linux : cmdLineTester_jep178_staticLinking_SE80_0_FAILED #11854

Open JasonFengJ9 opened 3 years ago

JasonFengJ9 commented 3 years ago

Failure link

From an internal build Test_openjdk8_j9_extended.functional_ppc64le_linux_Nightly/602:

02:16:00  openjdk version "1.8.0_282-internal"
02:16:00  OpenJDK Runtime Environment (build 1.8.0_282-internal-jenkins_2021_02_01_19_17-b00)
02:16:00  Eclipse OpenJ9 VM (build master-e99b65611c1, JRE 1.8.0 Linux ppc64le-64-Bit Compressed References 20210201_631 (JIT enabled, AOT enabled)
02:16:00  OpenJ9   - unknown
02:16:00  OMR      - b6f3322c55c
02:16:00  JCL      - a808307b8d6 based on jdk8u282-b08)

to rebuild the failed tests in =https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder, use the following links: 03:18:30 https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder/parambuild/?JDK_VERSION=8&JDK_IMPL=openj9&JDK_VENDOR=eclipse&BUILD_LIST=functional&PLATFORM=ppc64le_linux&TARGET=cmdLineTester_jep178_staticLinking_SE80_0

Optional info

Failure output (captured from console output)

===============================================
Running test cmdLineTester_jep178_staticLinking_SE80_0 ...
===============================================
cmdLineTester_jep178_staticLinking_SE80_0 Start Time: Mon Feb  1 23:38:52 2021 Epoch Time (ms): 1612251532632
variation: NoOptions
JVM_OPTIONS:  
*** Starting test suite: JEP178 static linking tests ***
Testing: jep178 testing static linking
Test start time: 2021/02/01 23:38:53 Pacific Standard Time
Running command: /home/jenkins/workspace/Test_openjdk8_j9_extended.functional_ppc64le_linux_Nightly_testList_1/openjdkbinary/openjdk-test-image/openj9/testjep178_static -jvmpath:/home/jenkins/workspace/Test_openjdk8_j9_extended.functional_ppc64le_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/jre/bin/../lib/ppc64le/j9vm -classpath:/home/jenkins/workspace/Test_openjdk8_j9_extended.functional_ppc64le_linux_Nightly_testList_1/openjdk-tests/TKG/../../jvmtest/functional/cmdLineTests/jep178staticLinkingTest/jep178staticLinkingTest.jar   com/ibm/j9/tests/jeptests/StaticLinking
Time spent starting: 84 milliseconds
Time spent executing: 475 milliseconds
Test result: FAILED
Output from test:
 [OUT] [MSG] Starting up JEP 178 test.
 [OUT] [MSG] Opening jvm from /home/jenkins/workspace/Test_openjdk8_j9_extended.functional_ppc64le_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/jre/bin/../lib/ppc64le/j9vm/libjvm.so
 [OUT] [MSG] Reached OnLoad (testlibA): JNI_OnLoad [dynamically]
 [OUT] [MSG] Reached OnLoad (testlibB): JNI_OnLoad [dynamically]
 [OUT] [MSG] Calling native instance method fooImpl.
 [OUT] [MSG] Reached native fooImpl() [dynamically]
 [OUT] [MSG] Calling native static method barImpl.
 [OUT] [MSG] Reached native barImpl() [dynamically]
 [OUT] [MSG] Reached OnUnload (testlibA): JNI_OnUnload [dynamically]
 [OUT] [MSG] Reached OnUnload (testlibB): JNI_OnUnload [dynamically]
 [OUT] [MSG] Test jep178 passed with error code: 0
>> Required condition was not found: [Output match: [MSG] Reached OnLoad: JNI_OnLoad_testlibA [statically]]
>> Required condition was not found: [Output match: [MSG] Reached OnLoad: JNI_OnLoad_testlibB [statically]]
>> Required condition was not found: [Output match: [MSG] Reached native fooImpl() [statically]]
>> Required condition was not found: [Output match: [MSG] Reached native barImpl() [statically]]
>> Required condition was not found: [Output match: [MSG] Reached OnUnload: JNI_OnUnload_testlibA [statically]]
>> Required condition was not found: [Output match: [MSG] Reached OnUnload: JNI_OnUnload_testlibB [statically]]
>> Failure condition was not found: [Output match: [ERR]]
>> Failure condition was found: [Output match: [dynamically]]
>> Success condition was found: [Output match: [MSG] Test jep178 passed with error code: 0]

Testing: jep178 native (jvmti) agent testing static linking at startup (OnLoad)
Test start time: 2021/02/01 23:38:53 Pacific Standard Time
Running command: /home/jenkins/workspace/Test_openjdk8_j9_extended.functional_ppc64le_linux_Nightly_testList_1/openjdkbinary/openjdk-test-image/openj9/testjep178_static -agentlib:testjvmtiA -agentlib:testjvmtiB -jvmpath:/home/jenkins/workspace/Test_openjdk8_j9_extended.functional_ppc64le_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/jre/bin/../lib/ppc64le/j9vm -Xbootclasspath/a:/home/jenkins/workspace/Test_openjdk8_j9_extended.functional_ppc64le_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/lib/tools.jar -classpath:/home/jenkins/workspace/Test_openjdk8_j9_extended.functional_ppc64le_linux_Nightly_testList_1/openjdk-tests/TKG/../../jvmtest/functional/cmdLineTests/jep178staticLinkingTest/jep178staticLinkingTest.jar   com/ibm/j9/tests/jeptests/StaticAgents
Time spent starting: 13 milliseconds
Time spent executing: 189 milliseconds
Test result: FAILED
Output from test:
 [OUT] [MSG] Starting up JEP 178 test.
 [OUT] [MSG] Opening jvm from /home/jenkins/workspace/Test_openjdk8_j9_extended.functional_ppc64le_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/jre/bin/../lib/ppc64le/j9vm/libjvm.so
 [OUT] [MSG] Reached OnLoad (testjvmtiA): Agent_OnLoad [dynamically]
 [OUT] [MSG] Reached OnLoad (testjvmtiB): Agent_OnLoad [dynamically]
 [OUT] [MSG] Testing jep178 for native agents at JVM startup (OnLoad)
 [OUT] [MSG] Reached OnUnload (testjvmtiA): Agent_OnUnload [dynamically]
 [OUT] [MSG] Reached OnUnload (testjvmtiB): Agent_OnUnload [dynamically]
 [OUT] [MSG] Test jep178 passed with error code: 0
>> Required condition was not found: [Output match: [MSG] Reached OnLoad: Agent_OnLoad_testjvmtiA [statically]]
>> Required condition was not found: [Output match: [MSG] Reached OnLoad: Agent_OnLoad_testjvmtiB [statically]]
>> Required condition was found: [Output match: [MSG] Testing jep178 for native agents at JVM startup (OnLoad)]
>> Required condition was not found: [Output match: [MSG] Reached OnUnload: Agent_OnUnload_testjvmtiB [statically]]
>> Required condition was not found: [Output match: [MSG] Reached OnUnload: Agent_OnUnload_testjvmtiA [statically]]
>> Failure condition was not found: [Output match: [ERR]]
>> Failure condition was found: [Output match: [dynamically]]
>> Success condition was found: [Output match: [MSG] Test jep178 passed with error code: 0]

Testing: jep178 native (jvmti) agent testing static linking during live (OnAttach)
Test start time: 2021/02/01 23:38:54 Pacific Standard Time
Running command: /home/jenkins/workspace/Test_openjdk8_j9_extended.functional_ppc64le_linux_Nightly_testList_1/openjdkbinary/openjdk-test-image/openj9/testjep178_static -jvmpath:/home/jenkins/workspace/Test_openjdk8_j9_extended.functional_ppc64le_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/jre/bin/../lib/ppc64le/j9vm -Xbootclasspath/a:/home/jenkins/workspace/Test_openjdk8_j9_extended.functional_ppc64le_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/lib/tools.jar -classpath:/home/jenkins/workspace/Test_openjdk8_j9_extended.functional_ppc64le_linux_Nightly_testList_1/openjdk-tests/TKG/../../jvmtest/functional/cmdLineTests/jep178staticLinkingTest/jep178staticLinkingTest.jar   com/ibm/j9/tests/jeptests/StaticAgents --attach
Time spent starting: 4 milliseconds
Time spent executing: 411 milliseconds
Test result: FAILED
Output from test:
 [OUT] [MSG] Starting up JEP 178 test.
 [OUT] [MSG] Opening jvm from /home/jenkins/workspace/Test_openjdk8_j9_extended.functional_ppc64le_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/jre/bin/../lib/ppc64le/j9vm/libjvm.so
 [OUT] [MSG] Attaching native agent testjvmtiA
 [OUT] [MSG] Reached OnLoad (testjvmtiA): Agent_OnAttach [dynamically]
 [OUT] [MSG] Attaching native agent testjvmtiB
 [OUT] [MSG] Reached OnLoad (testjvmtiB): Agent_OnAttach [dynamically]
 [OUT] [MSG] Testing jep178 for native agents during Live phase (OnAttach)
 [OUT] [MSG] Reached OnUnload (testjvmtiA): Agent_OnUnload [dynamically]
 [OUT] [MSG] Reached OnUnload (testjvmtiB): Agent_OnUnload [dynamically]
 [OUT] [MSG] Test jep178 passed with error code: 0
>> Required condition was found: [Output match: [MSG] Attaching native agent testjvmtiA]
>> Required condition was not found: [Output match: [MSG] Reached OnAttach: Agent_OnAttach_testjvmtiA [statically]]
>> Required condition was found: [Output match: [MSG] Attaching native agent testjvmtiB]
>> Required condition was not found: [Output match: [MSG] Reached OnAttach: Agent_OnAttach_testjvmtiB [statically]]
>> Required condition was found: [Output match: [MSG] Testing jep178 for native agents during Live phase (OnAttach)]
>> Required condition was not found: [Output match: [MSG] Reached OnUnload: Agent_OnUnload_testjvmtiA [statically]]
>> Required condition was not found: [Output match: [MSG] Reached OnUnload: Agent_OnUnload_testjvmtiB [statically]]
>> Failure condition was not found: [Output match: [ERR]]
>> Failure condition was found: [Output match: [dynamically]]
>> Success condition was found: [Output match: [MSG] Test jep178 passed with error code: 0]

---TEST RESULTS---
Number of PASSED tests: 3 out of 6
Number of FAILED tests: 3 out of 6

---SUMMARY OF FAILED TESTS---
jep178 testing static linking
jep178 native (jvmti) agent testing static linking at startup (OnLoad)
jep178 native (jvmti) agent testing static linking during live (OnAttach)
-----------------------------

cmdLineTester_jep178_staticLinking_SE80_0_FAILED
pshipton commented 3 years ago

Happens in the open builds as well. I expect this is caused by the switch to build with cmake, similarly to https://github.com/eclipse/openj9/issues/11855 https://ci.eclipse.org/openj9/job/Test_openjdk8_j9_extended.functional_ppc64le_linux_Nightly/619/ https://ci.eclipse.org/openj9/job/Test_openjdk8_j9_extended.functional_ppc64le_linux_xl_Nightly/404/

https://github.com/eclipse/openj9/compare/5e0957a...e99b656 https://github.com/eclipse/openj9-omr/compare/7b4155a...b6f3322 https://github.com/ibmruntimes/openj9-openjdk-jdk8/compare/1229100...a808307

pshipton commented 3 years ago

As expected, this is not resolved by https://github.com/ibmruntimes/openj9-openjdk-jdk8/pull/475. The similar test cmdLineTester_jep178_staticLinking_0 ~does run and pass on jdk11, seems like some other change didn't get backported~ for jdk11 is disabled.

pshipton commented 3 years ago

Just realized the test is listed for jdk11 but is disabled.

pshipton commented 3 years ago

Created https://github.com/eclipse/openj9/pull/11876 to exclude the failure until it can be resolved.

pshipton commented 3 years ago

Created a build using latest sources but without cmake, and confirmed the test passes. Proving it's a cmake problem. https://ci.eclipse.org/openj9/view/Test/job/Grinder/1495