-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P4
-
Affects Version/s: repo-valhalla
-
Component/s: core-svc
-
x86_64
-
linux
The following test failed in the Valhalla CI:
serviceability/attach/EarlyDynamicLoad/EarlyDynamicLoad.java
Here's a snippet from the log file:
#section:junit
----------messages:(8/252)----------
command: junit EarlyDynamicLoad
reason: User specified action: run junit EarlyDynamicLoad
started: Thu Feb 05 00:55:37.854 UTC 2026
Mode: agentvm
Agent id: 7
Process id: 180263
finished: Thu Feb 05 00:55:54.856 UTC 2026
elapsed time (seconds): 17.002
----------configuration:(14/2023)----------
<snip>
----------System.out:(16/2958)----------
Command line: [/opt/mach5/mesos/work_dir/jib-master/install/jdk-27-valhalla+1-97/linux-x64.jdk/jdk-27/bin/java -cp /opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S102486/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/7e033391-ef3a-4c19-aeec-590ee593d4b9/runs/d5eb9a79-fe54-4951-b960-6de4e72e6bc3/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_serviceability/classes/1/serviceability/attach/EarlyDynamicLoad/EarlyDynamicLoad.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-27-valhalla+1-97/src.full/open/test/hotspot/jtreg/serviceability/attach/EarlyDynamicLoad:/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S102486/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/7e033391-ef3a-4c19-aeec-590ee593d4b9/runs/d5eb9a79-fe54-4951-b960-6de4e72e6bc3/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_serviceability/classes/1/serviceability/attach/EarlyDynamicLoad/EarlyDynamicLoad.d/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/8.1/1/bundles/jtreg-8.1+1.zip/jtreg/lib/jtreg.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/8.1/1/bundles/jtreg-8.1+1.zip/jtreg/lib/junit-platform-console-standalone-1.13.4.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/8.1/1/bundles/jtreg-8.1+1.zip/jtreg/lib/testng-7.3.0.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/8.1/1/bundles/jtreg-8.1+1.zip/jtreg/lib/jcommander-1.82.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/8.1/1/bundles/jtreg-8.1+1.zip/jtreg/lib/guice-5.1.0.jar -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/25/37/bundles/linux-x64/jdk-25_linux-x64_bin.tar.gz/jdk-25 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S102486/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/7e033391-ef3a-4c19-aeec-590ee593d4b9/runs/d5eb9a79-fe54-4951-b960-6de4e72e6bc3/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_serviceability/tmp -XX:+StartAttachListener -agentpath:/opt/mach5/mesos/work_dir/jib-master/install/jdk-27-valhalla+1-97/linux-x64.test/hotspot/jtreg/native/libEarlyDynamicLoad.so --version ]
Running DCMD 'JVMTI.agent_load some.jar' through 'PidJcmdExecutor'
Executing command '[/opt/mach5/mesos/work_dir/jib-master/install/jdk-27-valhalla+1-97/linux-x64.jdk/jdk-27/bin/jcmd, 180352, JVMTI.agent_load some.jar]'
[2026-02-05T00:55:39.453417341Z] Gathering output for process 180407
[2026-02-05T00:55:39.467198995Z] Waiting for completion for process 180407
[2026-02-05T00:55:44.805854663Z] Waiting for completion finished for process 180407
Output and diagnostic info for process 180407 was saved into 'pid-180407-output.log'
Command returned with exit code 0
---------------- stdout ----------------
180352:
Dynamic agent loading is only permitted in the live phase
---------------- stderr ----------------
----------------------------------------
----------System.err:(26/1540)----------
[00:55:39.434] STARTED EarlyDynamicLoad::jcmd 'jcmd()'
[00:55:44.815] SUCCESSFUL EarlyDynamicLoad::jcmd 'jcmd()' [5380ms]
[00:55:44.816] STARTED EarlyDynamicLoad::virtualMachine 'virtualMachine()'
[00:55:49.844] SUCCESSFUL EarlyDynamicLoad::virtualMachine 'virtualMachine()' [5028ms]
java.lang.AssertionError: Timed out while waiting child process to complete
at EarlyDynamicLoad.stopChild(EarlyDynamicLoad.java:73)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1612)
at java.base/java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1120)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1612)
JavaTest Message: JUnit Platform Failure(s): 1
[ JUnit Containers: found 4, started 4, succeeded 3, failed 1, aborted 0, skipped 0]
[ JUnit Tests: found 2, started 2, succeeded 2, failed 0, aborted 0, skipped 0]
java.lang.Exception: JUnit test failure
at com.sun.javatest.regtest.agent.JUnitRunner.runWithJUnitPlatform(JUnitRunner.java:156)
at com.sun.javatest.regtest.agent.JUnitRunner.main(JUnitRunner.java:110)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:335)
at java.base/java.lang.Thread.run(Thread.java:1516)
JavaTest Message: Test threw exception: java.lang.Exception
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: java.lang.Exception: JUnit test failure
serviceability/attach/EarlyDynamicLoad/EarlyDynamicLoad.java
Here's a snippet from the log file:
#section:junit
----------messages:(8/252)----------
command: junit EarlyDynamicLoad
reason: User specified action: run junit EarlyDynamicLoad
started: Thu Feb 05 00:55:37.854 UTC 2026
Mode: agentvm
Agent id: 7
Process id: 180263
finished: Thu Feb 05 00:55:54.856 UTC 2026
elapsed time (seconds): 17.002
----------configuration:(14/2023)----------
<snip>
----------System.out:(16/2958)----------
Command line: [/opt/mach5/mesos/work_dir/jib-master/install/jdk-27-valhalla+1-97/linux-x64.jdk/jdk-27/bin/java -cp /opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S102486/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/7e033391-ef3a-4c19-aeec-590ee593d4b9/runs/d5eb9a79-fe54-4951-b960-6de4e72e6bc3/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_serviceability/classes/1/serviceability/attach/EarlyDynamicLoad/EarlyDynamicLoad.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-27-valhalla+1-97/src.full/open/test/hotspot/jtreg/serviceability/attach/EarlyDynamicLoad:/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S102486/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/7e033391-ef3a-4c19-aeec-590ee593d4b9/runs/d5eb9a79-fe54-4951-b960-6de4e72e6bc3/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_serviceability/classes/1/serviceability/attach/EarlyDynamicLoad/EarlyDynamicLoad.d/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/8.1/1/bundles/jtreg-8.1+1.zip/jtreg/lib/jtreg.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/8.1/1/bundles/jtreg-8.1+1.zip/jtreg/lib/junit-platform-console-standalone-1.13.4.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/8.1/1/bundles/jtreg-8.1+1.zip/jtreg/lib/testng-7.3.0.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/8.1/1/bundles/jtreg-8.1+1.zip/jtreg/lib/jcommander-1.82.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/8.1/1/bundles/jtreg-8.1+1.zip/jtreg/lib/guice-5.1.0.jar -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/25/37/bundles/linux-x64/jdk-25_linux-x64_bin.tar.gz/jdk-25 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S102486/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/7e033391-ef3a-4c19-aeec-590ee593d4b9/runs/d5eb9a79-fe54-4951-b960-6de4e72e6bc3/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_serviceability/tmp -XX:+StartAttachListener -agentpath:/opt/mach5/mesos/work_dir/jib-master/install/jdk-27-valhalla+1-97/linux-x64.test/hotspot/jtreg/native/libEarlyDynamicLoad.so --version ]
Running DCMD 'JVMTI.agent_load some.jar' through 'PidJcmdExecutor'
Executing command '[/opt/mach5/mesos/work_dir/jib-master/install/jdk-27-valhalla+1-97/linux-x64.jdk/jdk-27/bin/jcmd, 180352, JVMTI.agent_load some.jar]'
[2026-02-05T00:55:39.453417341Z] Gathering output for process 180407
[2026-02-05T00:55:39.467198995Z] Waiting for completion for process 180407
[2026-02-05T00:55:44.805854663Z] Waiting for completion finished for process 180407
Output and diagnostic info for process 180407 was saved into 'pid-180407-output.log'
Command returned with exit code 0
---------------- stdout ----------------
180352:
Dynamic agent loading is only permitted in the live phase
---------------- stderr ----------------
----------------------------------------
----------System.err:(26/1540)----------
[00:55:39.434] STARTED EarlyDynamicLoad::jcmd 'jcmd()'
[00:55:44.815] SUCCESSFUL EarlyDynamicLoad::jcmd 'jcmd()' [5380ms]
[00:55:44.816] STARTED EarlyDynamicLoad::virtualMachine 'virtualMachine()'
[00:55:49.844] SUCCESSFUL EarlyDynamicLoad::virtualMachine 'virtualMachine()' [5028ms]
java.lang.AssertionError: Timed out while waiting child process to complete
at EarlyDynamicLoad.stopChild(EarlyDynamicLoad.java:73)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1612)
at java.base/java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1120)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1612)
JavaTest Message: JUnit Platform Failure(s): 1
[ JUnit Containers: found 4, started 4, succeeded 3, failed 1, aborted 0, skipped 0]
[ JUnit Tests: found 2, started 2, succeeded 2, failed 0, aborted 0, skipped 0]
java.lang.Exception: JUnit test failure
at com.sun.javatest.regtest.agent.JUnitRunner.runWithJUnitPlatform(JUnitRunner.java:156)
at com.sun.javatest.regtest.agent.JUnitRunner.main(JUnitRunner.java:110)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:335)
at java.base/java.lang.Thread.run(Thread.java:1516)
JavaTest Message: Test threw exception: java.lang.Exception
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: java.lang.Exception: JUnit test failure