Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8290021

runtime/Metaspace/PrintMetaspaceDcmd.java#test-64bit-noccs fails with "IOException: File exists"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 20
    • hotspot
    • svc
    • 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)*----------

            amenkov Alex Menkov
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: