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

misc tests fail with AttachNotSupportedException: Unable to open socket file

XMLWordPrintable

    • aarch64
    • linux

      The following tests failed in the JDK23 CI:

      vm/jvmti/ForceEarlyReturnDouble/ferd001/ferd00112/ferd00112a.html
      vm/jvmti/ForceEarlyReturnFloat/ferf001/ferf00101/ferf00101a.html

      Here's a snippet from the ferd00112a.html log file:

      #section:testExecute
      ----------messages:(1/1129)----------
      command: com.sun.jck.lib.ExecJCKTestOtherJVMCmd LD_LIBRARY_PATH=/opt/mach5/mesos/work_dir/jib-master/install/jck/22/b14/extra/bundles/JCK-extra-22.zip/JCK-extra-22/binaries/linux-aarch64/lib /opt/mach5/mesos/work_dir/jib-master/install/jdk-23+6-380/linux-aarch64.jdk/jdk-23/bin/java --enable-preview -Djava.awt.headless=true -XX:MaxRAMPercentage=6.25 --show-version -XX:+EnableDynamicAgentLoading -XX:TieredStopAtLevel=1 -Xms32m -Xmx1024m -Djdk.attach.allowAttachSelf=true -Djava.security.properties=/opt/mach5/mesos/work_dir/jib-master/install/jck/22/b14/extra/bundles/JCK-extra-22.zip/JCK-extra-22/extra.security.properties -classpath :/opt/mach5/mesos/work_dir/jib-master/install/jck/22/b14/bundles/JCK-runtime-22.jar/JCK-runtime-22/classes: -Djava.security.policy=/opt/mach5/mesos/work_dir/jib-master/install/jck/22/b14/bundles/JCK-runtime-22.jar/JCK-runtime-22/lib/jck.policy javasoft.sqe.tests.vm.jvmti.ferd001.ferd00112.ferd00112 -attachClassName javasoft.sqe.jck.lib.attach.JVMTIAttachConnector -jvmtiAgentName jckjvmti -jvmtiAgentOpts ferd00112 -platform.jvmtiLivePhaseSupported true -platform.nativeLibsLinkage dynamic
      ----------out1:(0/0)----------
      ----------out2:(18/1582)----------
      java 23-ea 2024-09-17
      Java(TM) SE Runtime Environment (build 23-ea+6-380)
      Java HotSpot(TM) 64-Bit Server VM (build 23-ea+6-380, mixed mode, emulated-client, sharing)
      Cannot attach to JVM with id=2271097 , unexpected exception thrown: javasoft.sqe.jck.lib.attach.AttachConnector$AttachException: Cannot attach to the Java virtual machine
      javasoft.sqe.jck.lib.attach.AttachConnector$AttachException: Cannot attach to the Java virtual machine
      at javasoft.sqe.jck.lib.attach.JVMTIAttachConnector.attach(JVMTIAttachConnector.java:33)
      at javasoft.sqe.jck.lib.jvmti.Agent.attachAndLoadNativeAgent(Agent.java:344)
      at javasoft.sqe.jck.lib.jvmti.Agent.attach(Agent.java:80)
      at javasoft.sqe.tests.vm.jvmti.ferd001.ferd00112.ferd00112.run(ferd00112.java:37)
      at javasoft.sqe.tests.vm.jvmti.ferd001.ferd00112.ferd00112.main(ferd00112.java:31)
      Caused by: com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file /proc/2271097/root/tmp/.java_pid2271097: target process 2271097 doesn't respond within 10500ms or HotSpot VM not loaded
      at jdk.attach/sun.tools.attach.VirtualMachineImpl.<init>(VirtualMachineImpl.java:99)
      at jdk.attach/sun.tools.attach.AttachProviderImpl.attachVirtualMachine(AttachProviderImpl.java:58)
      at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:207)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at javasoft.sqe.jck.lib.attach.JVMTIAttachConnector.attach(JVMTIAttachConnector.java:30)
      ... 4 more
      result: Failed. test failed


      Here's a snippet from the ferf00101a.html log file:

      #section:testExecute
      ----------messages:(1/1129)----------
      command: com.sun.jck.lib.ExecJCKTestOtherJVMCmd LD_LIBRARY_PATH=/opt/mach5/mesos/work_dir/jib-master/install/jck/22/b14/extra/bundles/JCK-extra-22.zip/JCK-extra-22/binaries/linux-aarch64/lib /opt/mach5/mesos/work_dir/jib-master/install/jdk-23+6-380/linux-aarch64.jdk/jdk-23/bin/java --enable-preview -Djava.awt.headless=true -XX:MaxRAMPercentage=6.25 --show-version -XX:+EnableDynamicAgentLoading -XX:TieredStopAtLevel=1 -Xms32m -Xmx1024m -Djdk.attach.allowAttachSelf=true -Djava.security.properties=/opt/mach5/mesos/work_dir/jib-master/install/jck/22/b14/extra/bundles/JCK-extra-22.zip/JCK-extra-22/extra.security.properties -classpath :/opt/mach5/mesos/work_dir/jib-master/install/jck/22/b14/bundles/JCK-runtime-22.jar/JCK-runtime-22/classes: -Djava.security.policy=/opt/mach5/mesos/work_dir/jib-master/install/jck/22/b14/bundles/JCK-runtime-22.jar/JCK-runtime-22/lib/jck.policy javasoft.sqe.tests.vm.jvmti.ferf001.ferf00101.ferf00101 -attachClassName javasoft.sqe.jck.lib.attach.JVMTIAttachConnector -jvmtiAgentName jckjvmti -jvmtiAgentOpts ferf00101 -platform.jvmtiLivePhaseSupported true -platform.nativeLibsLinkage dynamic
      ----------out1:(0/0)----------
      ----------out2:(18/1582)----------
      java 23-ea 2024-09-17
      Java(TM) SE Runtime Environment (build 23-ea+6-380)
      Java HotSpot(TM) 64-Bit Server VM (build 23-ea+6-380, mixed mode, emulated-client, sharing)
      Cannot attach to JVM with id=2271151 , unexpected exception thrown: javasoft.sqe.jck.lib.attach.AttachConnector$AttachException: Cannot attach to the Java virtual machine
      javasoft.sqe.jck.lib.attach.AttachConnector$AttachException: Cannot attach to the Java virtual machine
      at javasoft.sqe.jck.lib.attach.JVMTIAttachConnector.attach(JVMTIAttachConnector.java:33)
      at javasoft.sqe.jck.lib.jvmti.Agent.attachAndLoadNativeAgent(Agent.java:344)
      at javasoft.sqe.jck.lib.jvmti.Agent.attach(Agent.java:80)
      at javasoft.sqe.tests.vm.jvmti.ferf001.ferf00101.ferf00101.run(ferf00101.java:39)
      at javasoft.sqe.tests.vm.jvmti.ferf001.ferf00101.ferf00101.main(ferf00101.java:33)
      Caused by: com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file /proc/2271151/root/tmp/.java_pid2271151: target process 2271151 doesn't respond within 10500ms or HotSpot VM not loaded
      at jdk.attach/sun.tools.attach.VirtualMachineImpl.<init>(VirtualMachineImpl.java:99)
      at jdk.attach/sun.tools.attach.AttachProviderImpl.attachVirtualMachine(AttachProviderImpl.java:58)
      at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:207)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at javasoft.sqe.jck.lib.attach.JVMTIAttachConnector.attach(JVMTIAttachConnector.java:30)
      ... 4 more
      result: Failed. test failed

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

              Created:
              Updated: