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 serviceability/jvmti/GetMethodDeclaringClass/TestUnloadedClass.java NullPointerException: Cannot invoke "java.lang.String.toLowerCase()" because "jdk.test.lib.Platform.jdkDebug" is null #20534

Open JasonFengJ9 opened 5 hours ago

JasonFengJ9 commented 5 hours ago

Failure link

From internal Test_openjdk21_j9_extended.openjdk_aarch64_linux_testList_1 (ubu22-aarch64-11)

java version "21.0.6-beta" 2025-01-21
IBM Semeru Runtime Certified Edition 21.0.6+1-202411021503 (build 21.0.6-beta+1-202411021503)
Eclipse OpenJ9 VM 21.0.6+1-202411021503 (build master-5439dcfe42, JRE 21 Linux aarch64-64-Bit Compressed References 20241102_298 (JIT enabled, AOT enabled)
OpenJ9   - 5439dcfe42
OMR      - 2c5b8df92
JCL      - 83a2966fb based on jdk-21.0.6+1)

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

Optional info

Failure output (captured from console output)

[2024-11-02T21:31:25.663Z] variation: Mode150
[2024-11-02T21:31:25.663Z] JVM_OPTIONS:  -XX:+UseCompressedOops -Xverbosegclog 

[2024-11-02T21:33:22.067Z] TEST: serviceability/jvmti/GetMethodDeclaringClass/TestUnloadedClass.java

[2024-11-02T21:33:22.068Z] STDERR:
[2024-11-02T21:33:22.068Z] java.lang.NullPointerException: Cannot invoke "java.lang.String.toLowerCase()" because "jdk.test.lib.Platform.jdkDebug" is null
[2024-11-02T21:33:22.068Z]  at jdk.test.lib.Platform.isDebugBuild(Platform.java:188)
[2024-11-02T21:33:22.068Z]  at TestUnloadedClass.main(TestUnloadedClass.java:52)
[2024-11-02T21:33:22.068Z]  at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[2024-11-02T21:33:22.068Z]  at java.base/java.lang.reflect.Method.invoke(Method.java:586)
[2024-11-02T21:33:22.068Z]  at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
[2024-11-02T21:33:22.068Z]  at java.base/java.lang.Thread.run(Thread.java:1595)
[2024-11-02T21:33:22.068Z] 
[2024-11-02T21:33:22.068Z] JavaTest Message: Test threw exception: java.lang.NullPointerException
[2024-11-02T21:33:22.068Z] JavaTest Message: shutting down test
[2024-11-02T21:33:22.068Z] 
[2024-11-02T21:33:22.068Z] 
[2024-11-02T21:33:22.068Z] TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.NullPointerException: Cannot invoke "java.lang.String.toLowerCase()" because "jdk.test.lib.Platform.jdkDebug" is null
[2024-11-02T21:33:22.068Z] --------------------------------------------------
[2024-11-02T21:38:19.806Z] Test results: passed: 156; failed: 1
[2024-11-02T21:38:31.894Z] Report written to /home/jenkins/workspace/Test_openjdk21_j9_extended.openjdk_aarch64_linux_testList_1/jvmtest/openjdk/report/html/report.html
[2024-11-02T21:38:31.894Z] Results written to /home/jenkins/workspace/Test_openjdk21_j9_extended.openjdk_aarch64_linux_testList_1/aqa-tests/TKG/output_17305830831273/serviceability_jvmti_j9_0/work
[2024-11-02T21:38:31.894Z] Error: Some tests failed or other problems occurred.
[2024-11-02T21:38:31.894Z] -----------------------------------
[2024-11-02T21:38:31.894Z] serviceability_jvmti_j9_0_FAILED

3x internal Grinder - all failed

github-actions[bot] commented 5 hours ago

Issue Number: 20534 Status: Open Recommended Components: comp:vm, comp:jvmti, comp:test Recommended Assignees: babsingh, jasonfengj9, pshipton

keithc-ca commented 4 hours ago

Hotspot defines the system property "jdk.debug", but OpenJ9 does not.

keithc-ca commented 3 hours ago

It might be reasonable to define the property based on the --with-debug-level configuration option; see https://github.com/ibmruntimes/openj9-openjdk-jdk21/blob/openj9/make/autoconf/jdk-options.m4#L30-L36.