-
Bug
-
Resolution: Fixed
-
P4
-
21
-
b24
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8334589 | 21.0.5-oracle | Md Shahbaz Yusuf | P4 | Resolved | Fixed | b01 |
JDK-8334828 | 21.0.5 | Andrew Lu | P4 | Resolved | Fixed | b01 |
com/sun/jdi/cds/CDSBreakpointTest.java
com/sun/jdi/cds/CDSDeleteAllBkptsTest.java
com/sun/jdi/cds/CDSFieldWatchpoints.java
use custom class paths and archives and fail when run with thread test factory with
STDOUT]
[0.025s][info][cds] Core region alignment: 4096
[0.124s][info][cds] JVM_StartThread() ignored: java.lang.ref.Reference$ReferenceHandler
[0.124s][info][cds] JVM_StartThread() ignored: java.lang.ref.Finalizer$FinalizerThread
[0.217s][info][cds] Loading classes to share ...
[0.217s][info][cds] Parsing /opt/mach5/mesos/work_dir/jib-master/install/2023-05-09-1507110.leonid.mesnik.jdk-8307370/linux-x64-debug.jdk/jdk-21/fastdebug/lib/classlist
[0.466s][info][cds] JVM_StartThread() ignored: jdk.internal.misc.InnocuousThread
[0.620s][info][cds] Parsing /opt/mach5/mesos/work_dir/slaves/741e9afd-8c02-45c3-b2e2-9db1450d0832-S100219/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8730736e-e63b-46bd-b823-38a95898fe6f/runs/f4a94cdb-5610-43f7-8824-82ac29fb72f6/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/3/com/sun/jdi/cds/CDSBreakpointTest.d/CDSBreakpointTest-test.classlist
[0.623s][info][cds] Loading classes to share: done.
[0.623s][info][cds] Shared spaces: preloaded 1342 classes
[0.624s][info][cds] Rewriting and linking classes ...
[0.625s][info][cds] Regenerate MethodHandle Holder classes...
[0.997s][info][cds] Regenerate MethodHandle Holder classes...done
[1.048s][info][cds] Rewriting and linking classes: done
[1.048s][info][cds] allocated string table for 7860 strings
[1.048s][info][cds] string table array (single level) length = 7860
[1.283s][info][cds] Gathering all archivable objects ...
[1.283s][info][cds] Gathering classes and symbols ...
[1.435s][info][cds] Sorting symbols and fixing identity hash ...
[1.439s][info][cds] Sorting classes ...
[1.713s][info][cds] _estimated_hashtable_bytes = 387680 + 39680 = 427360
[1.714s][info][cds] _estimated_metaspaceobj_bytes = 222902144
[1.714s][info][cds] total estimate bytes = 223337696
[1.714s][info][cds] Reserved output buffer space at 0x00007f8e16b02000 [223338496 bytes]
[1.714s][info][cds] Allocating RW objects ...
[1.735s][info][cds] done (28806 objects)
[1.736s][info][cds] Allocating RO objects ...
[1.810s][info][cds] done (82604 objects)
[1.811s][info][cds] Relocating embedded pointers in core regions ...
[1.917s][info][cds] Heap range = [0x000000064d000000 - 0x00000007c0000000]
[1.983s][info][cds] Size of heap region = 949888 bytes, 21359 objects, 2240 roots
[1.992s][info][cds] Relocating external roots ...
[1.995s][info][cds] done
[1.995s][info][cds] Dumping symbol table ...
[2.022s][info][cds] Relocating vmClasses::_klasses[] ...
[2.023s][info][cds] Make classes shareable
[2.038s][info][cds] Number of classes 1500
[2.038s][info][cds] instance classes = 1386
[2.038s][info][cds] boot = 1386
[2.038s][info][cds] app = 0
[2.038s][info][cds] platform = 0
[2.038s][info][cds] unregistered = 0
[2.038s][info][cds] (hidden) = 71
[2.038s][info][cds] (unlinked) = 0
[2.038s][info][cds] obj array classes = 105
[2.038s][info][cds] type array classes = 9
[2.038s][info][cds] symbols = 40696
[2.044s][info][cds] Dumping shared data to file:
[2.044s][info][cds] ./SharedArchiveFile.jsa
[2.049s][info][cds] Shared file region (rw) 0: 5230304 bytes, addr 0x0000000800000000 file offset 0x00001000 crc 0xcafc6c4a
[2.059s][info][cds] Shared file region (ro) 1: 8459424 bytes, addr 0x00000008004fd000 file offset 0x004fe000 crc 0x8cbe28d9
[2.063s][info][cds] Shared file region (bm) 2: 255616 bytes, addr 0x0000000000000000 file offset 0x00d10000 crc 0xbe81c4bd
[2.064s][info][cds] Shared file region (hp) 3: 949888 bytes, addr 0x00000007bfc00000 file offset 0x00d4f000 crc 0x8c5e9581
[STDERR]
[2023-05-09T16:12:27.755191391Z] Waiting for completion for process 432191
[2023-05-09T16:12:27.755680402Z] Waiting for completion finished for process 432191
Command line: [/opt/mach5/mesos/work_dir/jib-master/install/2023-05-09-1507110.leonid.mesnik.jdk-8307370/linux-x64-debug.jdk/jdk-21/fastdebug/bin/java -cp /opt/mach5/mesos/work_dir/slaves/741e9afd-8c02-45c3-b2e2-9db1450d0832-S100219/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8730736e-e63b-46bd-b823-38a95898fe6f/runs/f4a94cdb-5610-43f7-8824-82ac29fb72f6/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/3/com/sun/jdi/cds/CDSBreakpointTest.d:/opt/mach5/mesos/work_dir/jib-master/install/2023-05-09-1507110.leonid.mesnik.jdk-8307370/src.full/open/test/jdk/com/sun/jdi/cds:/opt/mach5/mesos/work_dir/slaves/741e9afd-8c02-45c3-b2e2-9db1450d0832-S100219/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8730736e-e63b-46bd-b823-38a95898fe6f/runs/f4a94cdb-5610-43f7-8824-82ac29fb72f6/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/3/com/sun/jdi:/opt/mach5/mesos/work_dir/slaves/741e9afd-8c02-45c3-b2e2-9db1450d0832-S100219/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8730736e-e63b-46bd-b823-38a95898fe6f/runs/f4a94cdb-5610-43f7-8824-82ac29fb72f6/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/3/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.2/1/bundles/jtreg-7.2+1.zip/jtreg/lib/jtreg.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.2/1/bundles/jtreg-7.2+1.zip/jtreg/lib/junit-platform-console-standalone-1.9.2.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.2/1/bundles/jtreg-7.2+1.zip/jtreg/lib/testng-7.3.0.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.2/1/bundles/jtreg-7.2+1.zip/jtreg/lib/jcommander-1.78.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.2/1/bundles/jtreg-7.2+1.zip/jtreg/lib/guice-4.2.3.jar -Xmx768m -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/20/36/bundles/linux-x64/jdk-20_linux-x64_bin.tar.gz/jdk-20 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/741e9afd-8c02-45c3-b2e2-9db1450d0832-S100219/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8730736e-e63b-46bd-b823-38a95898fe6f/runs/f4a94cdb-5610-43f7-8824-82ac29fb72f6/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/tmp -ea -esa -Duse.JTREG_TEST_THREAD_FACTORY=Virtual -XX:+UseZGC -XX:-VerifyContinuations -Dtest.classes=/opt/mach5/mesos/work_dir/slaves/741e9afd-8c02-45c3-b2e2-9db1450d0832-S100219/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8730736e-e63b-46bd-b823-38a95898fe6f/runs/f4a94cdb-5610-43f7-8824-82ac29fb72f6/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/3/com/sun/jdi/cds/CDSBreakpointTest.d -Dtest.java.opts=-Duse.JTREG_TEST_THREAD_FACTORY=Virtual -XX:+UseZGC -XX:-VerifyContinuations -Dtest.vm.opts=-Xmx768m -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/20/36/bundles/linux-x64/jdk-20_linux-x64_bin.tar.gz/jdk-20 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/741e9afd-8c02-45c3-b2e2-9db1450d0832-S100219/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8730736e-e63b-46bd-b823-38a95898fe6f/runs/f4a94cdb-5610-43f7-8824-82ac29fb72f6/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/tmp -ea -esa -showversion -Dmain.wrapper=Virtual jdk.test.lib.process.ProcessTools Virtual BreakpointTest -Xbootclasspath/a:/opt/mach5/mesos/work_dir/slaves/741e9afd-8c02-45c3-b2e2-9db1450d0832-S100219/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8730736e-e63b-46bd-b823-38a95898fe6f/runs/f4a94cdb-5610-43f7-8824-82ac29fb72f6/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/3/com/sun/jdi/cds/CDSBreakpointTest.d/BreakpointTest.jar -XX:+UnlockDiagnosticVMOptions -XX:SharedArchiveFile=./SharedArchiveFile.jsa -Xshare:on -showversion ]
[2023-05-09T16:12:27.769581678Z] Gathering output for process 432324
[2023-05-09T16:12:29.824311768Z] Waiting for completion for process 432324
[2023-05-09T16:12:29.824498162Z] Waiting for completion finished for process 432324
Output and diagnostic info for process 432324 was saved into 'pid-432324-output.log'
[ELAPSED: 2059 ms]
[STDOUT]
JVM version:21-internal
JDI version: 21.0
JVM description: Java Debug Interface (Reference Implementation) version 21.0
Java Debug Wire Protocol (Reference Implementation) version 21.0
JVM Debug Interface version 21.0
JVM version 21-internal (Java HotSpot(TM) 64-Bit Server VM, mixed mode, sharing)
java version "21-internal" 2023-09-19 LTS
Java(TM) SE Runtime Environment (fastdebug build 21-internal-LTS-2023-05-09-1507110.leonid.mesnik.jdk-8307370)
Java HotSpot(TM) 64-Bit Server VM (fastdebug build 21-internal-LTS-2023-05-09-1507110.leonid.mesnik.jdk-8307370, mixed mode, sharing)
Error: Could not find or load main class TestScaffold
Caused by: java.lang.ClassNotFoundException: TestScaffold
[STDERR]
java version "21-internal" 2023-09-19 LTS
Java(TM) SE Runtime Environment (fastdebug build 21-internal-LTS-2023-05-09-1507110.leonid.mesnik.jdk-8307370)
Java HotSpot(TM) 64-Bit Server VM (fastdebug build 21-internal-LTS-2023-05-09-1507110.leonid.mesnik.jdk-8307370, mixed mode, sharing)
[2ms] run args: [-Xbootclasspath/a:/opt/mach5/mesos/work_dir/slaves/741e9afd-8c02-45c3-b2e2-9db1450d0832-S100219/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8730736e-e63b-46bd-b823-38a95898fe6f/runs/f4a94cdb-5610-43f7-8824-82ac29fb72f6/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/3/com/sun/jdi/cds/CDSBreakpointTest.d/BreakpointTest.jar, -XX:+UnlockDiagnosticVMOptions, -XX:SharedArchiveFile=./SharedArchiveFile.jsa, -Xshare:on, -showversion, BreakpointTarg]
Exception in thread "main" java.lang.RuntimeException: VM Disconnected before requested event occurred
at TestScaffold.waitForRequestedEvent(TestScaffold.java:794)
at TestScaffold.resumeToPrepareOf(TestScaffold.java:939)
at TestScaffold.resumeTo(TestScaffold.java:908)
at TestScaffold.resumeTo(TestScaffold.java:900)
at TestScaffold.startTo(TestScaffold.java:380)
at TestScaffold.startToMain(TestScaffold.java:372)
at BreakpointTest.runTests(BreakpointTest.java:129)
at TestScaffold.startTests(TestScaffold.java:434)
at BreakpointTest.main(BreakpointTest.java:82)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at jdk.test.lib.process.ProcessTools.lambda$main$6(ProcessTools.java:901)
at java.base/java.lang.VirtualThread.run(VirtualThread.java:311)
[2023-05-09T16:12:29.827279283Z] Waiting for completion for process 432324
[2023-05-09T16:12:29.827504552Z] Waiting for completion finished for process 432324
[2023-05-09T16:12:29.827593802Z] Waiting for completion for process 432324
[2023-05-09T16:12:29.827901437Z] Waiting for completion finished for process 432324
[2023-05-09T16:12:29.861984787Z] Waiting for completion for process 432324
[2023-05-09T16:12:29.862119433Z] Waiting for completion finished for process 432324
[2023-05-09T16:12:29.873181787Z] Waiting for completion for process 432324
[2023-05-09T16:12:29.873272471Z] Waiting for completion finished for process 432324
----------System.err:(78/5510)----------
stdout: [JVM version:21-internal
JDI version: 21.0
JVM description: Java Debug Interface (Reference Implementation) version 21.0
Java Debug Wire Protocol (Reference Implementation) version 21.0
JVM Debug Interface version 21.0
JVM version 21-internal (Java HotSpot(TM) 64-Bit Server VM, mixed mode, sharing)
java version "21-internal" 2023-09-19 LTS
Java(TM) SE Runtime Environment (fastdebug build 21-internal-LTS-2023-05-09-1507110.leonid.mesnik.jdk-8307370)
Java HotSpot(TM) 64-Bit Server VM (fastdebug build 21-internal-LTS-2023-05-09-1507110.leonid.mesnik.jdk-8307370, mixed mode, sharing)
Error: Could not find or load main class TestScaffold
Caused by: java.lang.ClassNotFoundException: TestScaffold
];
stderr: [java version "21-internal" 2023-09-19 LTS
Java(TM) SE Runtime Environment (fastdebug build 21-internal-LTS-2023-05-09-1507110.leonid.mesnik.jdk-8307370)
Java HotSpot(TM) 64-Bit Server VM (fastdebug build 21-internal-LTS-2023-05-09-1507110.leonid.mesnik.jdk-8307370, mixed mode, sharing)
[2ms] run args: [-Xbootclasspath/a:/opt/mach5/mesos/work_dir/slaves/741e9afd-8c02-45c3-b2e2-9db1450d0832-S100219/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8730736e-e63b-46bd-b823-38a95898fe6f/runs/f4a94cdb-5610-43f7-8824-82ac29fb72f6/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/3/com/sun/jdi/cds/CDSBreakpointTest.d/BreakpointTest.jar, -XX:+UnlockDiagnosticVMOptions, -XX:SharedArchiveFile=./SharedArchiveFile.jsa, -Xshare:on, -showversion, BreakpointTarg]
Exception in thread "main" java.lang.RuntimeException: VM Disconnected before requested event occurred
at TestScaffold.waitForRequestedEvent(TestScaffold.java:794)
at TestScaffold.resumeToPrepareOf(TestScaffold.java:939)
at TestScaffold.resumeTo(TestScaffold.java:908)
at TestScaffold.resumeTo(TestScaffold.java:900)
at TestScaffold.startTo(TestScaffold.java:380)
at TestScaffold.startToMain(TestScaffold.java:372)
at BreakpointTest.runTests(BreakpointTest.java:129)
at TestScaffold.startTests(TestScaffold.java:434)
at BreakpointTest.main(BreakpointTest.java:82)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at jdk.test.lib.process.ProcessTools.lambda$main$6(ProcessTools.java:901)
at java.base/java.lang.VirtualThread.run(VirtualThread.java:311)
]
exitValue = 1
stdout: [JVM version:21-internal
JDI version: 21.0
JVM description: Java Debug Interface (Reference Implementation) version 21.0
Java Debug Wire Protocol (Reference Implementation) version 21.0
JVM Debug Interface version 21.0
JVM version 21-internal (Java HotSpot(TM) 64-Bit Server VM, mixed mode, sharing)
java version "21-internal" 2023-09-19 LTS
Java(TM) SE Runtime Environment (fastdebug build 21-internal-LTS-2023-05-09-1507110.leonid.mesnik.jdk-8307370)
Java HotSpot(TM) 64-Bit Server VM (fastdebug build 21-internal-LTS-2023-05-09-1507110.leonid.mesnik.jdk-8307370, mixed mode, sharing)
Error: Could not find or load main class TestScaffold
Caused by: java.lang.ClassNotFoundException: TestScaffold
];
stderr: [java version "21-internal" 2023-09-19 LTS
Java(TM) SE Runtime Environment (fastdebug build 21-internal-LTS-2023-05-09-1507110.leonid.mesnik.jdk-8307370)
Java HotSpot(TM) 64-Bit Server VM (fastdebug build 21-internal-LTS-2023-05-09-1507110.leonid.mesnik.jdk-8307370, mixed mode, sharing)
[2ms] run args: [-Xbootclasspath/a:/opt/mach5/mesos/work_dir/slaves/741e9afd-8c02-45c3-b2e2-9db1450d0832-S100219/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8730736e-e63b-46bd-b823-38a95898fe6f/runs/f4a94cdb-5610-43f7-8824-82ac29fb72f6/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/3/com/sun/jdi/cds/CDSBreakpointTest.d/BreakpointTest.jar, -XX:+UnlockDiagnosticVMOptions, -XX:SharedArchiveFile=./SharedArchiveFile.jsa, -Xshare:on, -showversion, BreakpointTarg]
Exception in thread "main" java.lang.RuntimeException: VM Disconnected before requested event occurred
at TestScaffold.waitForRequestedEvent(TestScaffold.java:794)
at TestScaffold.resumeToPrepareOf(TestScaffold.java:939)
at TestScaffold.resumeTo(TestScaffold.java:908)
at TestScaffold.resumeTo(TestScaffold.java:900)
at TestScaffold.startTo(TestScaffold.java:380)
at TestScaffold.startToMain(TestScaffold.java:372)
at BreakpointTest.runTests(BreakpointTest.java:129)
at TestScaffold.startTests(TestScaffold.java:434)
at BreakpointTest.main(BreakpointTest.java:82)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at jdk.test.lib.process.ProcessTools.lambda$main$6(ProcessTools.java:901)
at java.base/java.lang.VirtualThread.run(VirtualThread.java:311)
]
exitValue = 1
java.lang.RuntimeException: 'Unable to use shared archive' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:221)
at CDSJDITest.runTest(CDSJDITest.java:89)
at CDSBreakpointTest.main(CDSBreakpointTest.java:57)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
at java.base/java.lang.VirtualThread.run(VirtualThread.java:311)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'Unable to use shared archive' missing from stdout/stderr
test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'Unable to use shared archive' missing from stdout/stderr
- backported by
-
JDK-8334589 com/sun/jdi/cds tests fail with jtreg's Virtual test thread factory
- Resolved
-
JDK-8334828 com/sun/jdi/cds tests fail with jtreg's Virtual test thread factory
- Resolved
- relates to
-
JDK-8307307 Improve ProcessTools.java to don't try to run Virtual wrapper for incompatible processes
- Resolved
-
JDK-8289546 TestScaffold.java could use some improvements to virtual thread wrapper support.
- Open
-
JDK-8285422 [LOOM] Some com/sun/jdi test are failing with the vthread wrapper
- Closed
- links to
-
Commit openjdk/jdk21u-dev/3222647d
-
Commit openjdk/jdk/fe8a2aff
-
Review openjdk/jdk21u-dev/776
-
Review(master) openjdk/jdk/19244