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 722 forks source link

serviceability_jvmti_j9_0_FAILED serviceability/jvmti/StartPhase/AllowedFunctions/AllowedFunctions.java RuntimeException: Non-zero status returned from the agent: 2 #15992

Open JasonFengJ9 opened 2 years ago

JasonFengJ9 commented 2 years ago

Failure link

From an internal build(rhel9x86-rt2-1):

openjdk version "19" 2022-09-20
IBM Semeru Runtime Open Edition 19+36 (build 19+36)
Eclipse OpenJ9 VM 19+36 (build master-784820387, JRE 19 Linux amd64-64-Bit Compressed References 20220920_45 (JIT enabled, AOT enabled)
OpenJ9   - 784820387
OMR      - 24b511df5
JCL      - 4efd563f9c based on jdk-19+36)

Rerun in Grinder - Change TARGET to run only the failed test targets.

Optional info

Failure output (captured from console output)

[2022-09-25T07:43:03.014Z] variation: Mode150
[2022-09-25T07:43:03.014Z] JVM_OPTIONS:  -XX:+UseCompressedOops 

[2022-09-25T07:45:05.462Z] TEST: serviceability/jvmti/StartPhase/AllowedFunctions/AllowedFunctions.java

[2022-09-25T07:45:05.464Z] STDOUT:
[2022-09-25T07:45:05.464Z] Capability enabled: can_generate_early_vmstart
[2022-09-25T07:45:05.464Z] VMStart event
[2022-09-25T07:45:05.464Z]   ## Error: unexpected phase: 2, expected: 6 or 4
[2022-09-25T07:45:05.464Z] VMInit event
[2022-09-25T07:45:05.464Z] STDERR:
[2022-09-25T07:45:05.464Z] java.lang.RuntimeException: Non-zero status returned from the agent: 2
[2022-09-25T07:45:05.464Z]  at AllowedFunctions.main(AllowedFunctions.java:52)
[2022-09-25T07:45:05.464Z]  at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
[2022-09-25T07:45:05.464Z]  at java.base/java.lang.reflect.Method.invoke(Method.java:578)
[2022-09-25T07:45:05.464Z]  at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
[2022-09-25T07:45:05.464Z]  at java.base/java.lang.Thread.run(Thread.java:1573)

[2022-09-25T07:48:25.964Z] serviceability_jvmti_j9_0_FAILED
JasonFengJ9 commented 2 years ago

Test JDK18 0.33 w/ Adoptium testimage

openjdk version "18.0.2" 2022-07-19
IBM Semeru Runtime Open Edition 18.0.2.0 (build 18.0.2+9)
Eclipse OpenJ9 VM 18.0.2.0 (build openj9-0.33.0, JRE 18 Mac OS X amd64-64-Bit Compressed References 20220804_38 (JIT enabled, AOT enabled)
OpenJ9   - 04a55b45b
OMR      - b58aa2708
JCL      - dff9c97e1c7 based on jdk-18.0.2+9)

===============================================
Running test serviceability_jvmti_j9_0 ...
===============================================

variation: Mode150
JVM_OPTIONS:  -XX:+UseCompressedOops 

--------------------------------------------------
TEST: serviceability/jvmti/StartPhase/AllowedFunctions/AllowedFunctions.java

STDOUT:
Capability enabled: can_generate_early_vmstart
VMStart event
  ## Error: unexpected phase: 2, expected: 6 or 4
VMInit event
STDERR:
java.lang.RuntimeException: Non-zero status returned from the agent: 2
    at AllowedFunctions.main(AllowedFunctions.java:52)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
    at java.base/java.lang.reflect.Method.invoke(Method.java:577)
    at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
    at java.base/java.lang.Thread.run(Thread.java:858)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Non-zero status returned from the agent: 2

serviceability_jvmti_j9_0_FAILED

This is not a regression introduced by JDK19.