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

misc tests fail with "IOException: File exists" from jdk.attach/sun.tools.attach.VirtualMachineImpl.createAttachFile0

XMLWordPrintable

    • x86_64
    • os_x_10.15

      The following three tests failed in the JDK19 CI:

      runtime/NMT/JcmdBaselineDetail.java
      runtime/NMT/HugeArenaTracking.java
      runtime/cds/appcds/jvmti/InstrumentationTest.java

      Here's a snippet from the JcmdBaselineDetail.java log file:

      ----------System.out:(3/213)----------
      [2022-04-01T15:59:21.509172Z] Gathering output for process 9382
      [2022-04-01T15:59:24.971936Z] Waiting for completion for process 9382
      [2022-04-01T15:59:24.994313Z] Waiting for completion finished for process 9382
      ----------System.err:(27/1440)----------
       stdout: [9366:
      ];
       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: 'Baseline succeeded' missing from stdout/stderr

      at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:221)
      at JcmdBaselineDetail.main(JcmdBaselineDetail.java:50)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:577)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:828)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: 'Baseline succeeded' missing from stdout/stderr

      The HugeArenaTracking.java and InstrumentationTest.java failures
      have similar log file snippets.

            gziemski Gerard Ziemski
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: