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

CodeHeapAnalyticsParams.java failed due to AttachNotSupportedException

    XMLWordPrintable

Details

    • x86_64
    • linux

    Description

      The following test failed due to AttachNotSupportedException:

      serviceability/dcmd/compiler/CodeHeapAnalyticsParams.java

      Here's a snippet of the log file:

      ----------System.out:(23/1499)----------
      Running DCMD 'Compiler.CodeHeap_Analytics all 1' through 'PidJcmdExecutor'
      Executing command '[/opt/mach5/mesos/work_dir/jib-master/install/jdk-14+10-332/linux-x64-debug.jdk/jdk-14/fastdebug/bin/jcmd, 6447, Compiler.CodeHeap_Analytics all 1]'
      [2019-08-14T20:44:09.300996Z] Gathering output for process 6471
      [2019-08-14T20:44:20.318486Z] Waiting for completion for process 6471
      [2019-08-14T20:44:20.318837Z] Waiting for completion finished for process 6471
      Command returned with exit code 1
      ---------------- stdout ----------------
      6447:

      ---------------- stderr ----------------
      com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file /proc/6447/root/tmp/.java_pid6447: target process 6447 doesn't respond within 10500ms or HotSpot VM not loaded
      at jdk.attach/sun.tools.attach.VirtualMachineImpl.<init>(VirtualMachineImpl.java:100)
      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)

      ----------------------------------------

      [2019-08-14T20:44:20.319926Z] Waiting for completion for process 6471
      [2019-08-14T20:44:20.320804Z] Waiting for completion finished for process 6471
      [2019-08-14T20:44:20.321044Z] Waiting for completion for process 6471
      [2019-08-14T20:44:20.321138Z] Waiting for completion finished for process 6471
      ----------System.err:(25/1453)----------
       stdout: [6447:
      ];
       stderr: [com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file /proc/6447/root/tmp/.java_pid6447: target process 6447 doesn't respond within 10500ms or HotSpot VM not loaded
      at jdk.attach/sun.tools.attach.VirtualMachineImpl.<init>(VirtualMachineImpl.java:100)
      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]

      at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:455)
      at CodeHeapAnalyticsParams.main(CodeHeapAnalyticsParams.java:40)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.base/java.lang.Thread.run(Thread.java:830)

      JavaTest Message: Test threw exception: java.lang.RuntimeException
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0]


      test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0]

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: