-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
20
-
x86_64
-
os_x_10.15
The following test failed in the JDK20 CI:
runtime/Metaspace/PrintMetaspaceDcmd.java#test-64bit-noccs
Here's a snippet from the log file:
#section:main
----------messages:(5/540)----------
command: main -Dwithout-compressed-class-space -XX:MaxMetaspaceSize=201M -Xmx100M -XX:-UseCompressedOops -XX:-UseCompressedClassPointers PrintMetaspaceDcmd
reason: User specified action: run main/othervm -Dwithout-compressed-class-space -XX:MaxMetaspaceSize=201M -Xmx100M -XX:-UseCompressedOops -XX:-UseCompressedClassPointers PrintMetaspaceDcmd
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules java.base,java.management --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
elapsed time (seconds): 1.766
----------configuration:(4/111)----------
Boot Layer
add modules: java.base java.management
add exports: java.base/jdk.internal.misc ALL-UNNAMED
----------System.out:(7/518)----------
[2022-07-08T01:38:37.663646Z] Gathering output for process 36666
[2022-07-08T01:38:38.038808Z] Waiting for completion for process 36666
[2022-07-08T01:38:38.559327Z] Waiting for completion finished for process 36666
[2022-07-08T01:38:38.559583Z] Waiting for completion for process 36666
[2022-07-08T01:38:38.559698Z] Waiting for completion finished for process 36666
[2022-07-08T01:38:38.581094Z] Waiting for completion for process 36666
[2022-07-08T01:38:38.581232Z] Waiting for completion finished for process 36666
----------System.err:(29/1702)----------
java version "20-ea" 2023-03-21
Java(TM) SE Runtime Environment (fastdebug build 20-ea+6-254)
Java HotSpot(TM) 64-Bit Server VM (fastdebug build 20-ea+6-254, mixed mode)
stdout: [36662:
];
stderr: [java.io.IOException: File exists
at jdk.attach/sun.tools.attach.VirtualMachineImpl.createAttachFile0(Native Method)
at jdk.attach/sun.tools.attach.VirtualMachineImpl.createAttachFile(VirtualMachineImpl.java:289)
at jdk.attach/sun.tools.attach.VirtualMachineImpl.<init>(VirtualMachineImpl.java:77)
at jdk.attach/sun.tools.attach.AttachProviderImpl.attachVirtualMachine(AttachProviderImpl.java:58)
at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:207)
at jdk.jcmd/sun.tools.jcmd.JCmd.executeCommandForPid(JCmd.java:113)
at jdk.jcmd/sun.tools.jcmd.JCmd.main(JCmd.java:97)
]
exitValue = 1
java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:490)
at PrintMetaspaceDcmd.doTheCCSPropTest(PrintMetaspaceDcmd.java:122)
at PrintMetaspaceDcmd.main(PrintMetaspaceDcmd.java:217)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:1589)
JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
----------rerun:(41/7416)*----------
runtime/Metaspace/PrintMetaspaceDcmd.java#test-64bit-noccs
Here's a snippet from the log file:
#section:main
----------messages:(5/540)----------
command: main -Dwithout-compressed-class-space -XX:MaxMetaspaceSize=201M -Xmx100M -XX:-UseCompressedOops -XX:-UseCompressedClassPointers PrintMetaspaceDcmd
reason: User specified action: run main/othervm -Dwithout-compressed-class-space -XX:MaxMetaspaceSize=201M -Xmx100M -XX:-UseCompressedOops -XX:-UseCompressedClassPointers PrintMetaspaceDcmd
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules java.base,java.management --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
elapsed time (seconds): 1.766
----------configuration:(4/111)----------
Boot Layer
add modules: java.base java.management
add exports: java.base/jdk.internal.misc ALL-UNNAMED
----------System.out:(7/518)----------
[2022-07-08T01:38:37.663646Z] Gathering output for process 36666
[2022-07-08T01:38:38.038808Z] Waiting for completion for process 36666
[2022-07-08T01:38:38.559327Z] Waiting for completion finished for process 36666
[2022-07-08T01:38:38.559583Z] Waiting for completion for process 36666
[2022-07-08T01:38:38.559698Z] Waiting for completion finished for process 36666
[2022-07-08T01:38:38.581094Z] Waiting for completion for process 36666
[2022-07-08T01:38:38.581232Z] Waiting for completion finished for process 36666
----------System.err:(29/1702)----------
java version "20-ea" 2023-03-21
Java(TM) SE Runtime Environment (fastdebug build 20-ea+6-254)
Java HotSpot(TM) 64-Bit Server VM (fastdebug build 20-ea+6-254, mixed mode)
stdout: [36662:
];
stderr: [java.io.IOException: File exists
at jdk.attach/sun.tools.attach.VirtualMachineImpl.createAttachFile0(Native Method)
at jdk.attach/sun.tools.attach.VirtualMachineImpl.createAttachFile(VirtualMachineImpl.java:289)
at jdk.attach/sun.tools.attach.VirtualMachineImpl.<init>(VirtualMachineImpl.java:77)
at jdk.attach/sun.tools.attach.AttachProviderImpl.attachVirtualMachine(AttachProviderImpl.java:58)
at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:207)
at jdk.jcmd/sun.tools.jcmd.JCmd.executeCommandForPid(JCmd.java:113)
at jdk.jcmd/sun.tools.jcmd.JCmd.main(JCmd.java:97)
]
exitValue = 1
java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:490)
at PrintMetaspaceDcmd.doTheCCSPropTest(PrintMetaspaceDcmd.java:122)
at PrintMetaspaceDcmd.main(PrintMetaspaceDcmd.java:217)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:1589)
JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
----------rerun:(41/7416)*----------
- duplicates
-
JDK-8284186 misc tests fail with "IOException: File exists" from jdk.attach/sun.tools.attach.VirtualMachineImpl.createAttachFile0
- Open