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

SA tests failed with "Error attaching to process: Doesn't appear to be a HotSpot VM"

XMLWordPrintable

    • x86_64, aarch64
    • os_x

      The following test failed in the JDK16 CI:

      serviceability/sa/ClhsdbAttach.java

      Here's a snippet from the log file:

      ----------System.out:(74/5079)----------
      Starting ClhsdbAttach test
      Command line: ['/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-16+3-42/macosx-x64-debug.jdk/jdk-16/fastdebug/bin/java' '-XX:MaxRAMPercentage=6' '-Xshare:off' '-showversion' '-cp' '/System/Volumes/Data/mesos/work_dir/slaves/52628e90-e5e7-4ef3-af97-10d8776d10db-S857/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/80a54f56-be5e-493b-bc0e-4d0ffca2388c/runs/24b6faa8-5201-457c-806f-9ffa24f279aa/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_serviceability/classes/2/serviceability/sa/ClhsdbAttach.d:/System/Volumes/Data/mesos/work_dir/slaves/52628e90-e5e7-4ef3-af97-10d8776d10db-S857/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/80a54f56-be5e-493b-bc0e-4d0ffca2388c/runs/24b6faa8-5201-457c-806f-9ffa24f279aa/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_serviceability/classes/2/test/lib' 'jdk.test.lib.apps.LingeredApp' '4746a893-7c5c-4917-b5f9-3d684f2582d9.lck']
      Started LingeredApp with pid 9403
      Target JDK is not signed.
      Adding 'sudo -E -n' to the command.
      [2020-06-19T06:58:04.868478Z] Gathering output for process 9407
      [2020-06-19T06:58:15.093093Z] Waiting for completion for process 9407
      [2020-06-19T06:58:15.093475Z] Waiting for completion finished for process 9407
      Output:
      hsdb> hsdb> + verbose true
      hsdb> + where
      Command not valid until attached to a VM
      hsdb> + attach 9403
      hsdb> + flags MaxJavaStackTraceDepth
      Command not valid until attached to a VM
      hsdb> + detach
      Command not valid until attached to a VM
      hsdb> + universe
      Command not valid until attached to a VM
      hsdb> + reattach
      hsdb> + longConstant markWord::locked_value
      Command not valid until attached to a VM
      hsdb> + quit
      java version "16-ea" 2021-03-16
      Java(TM) SE Runtime Environment (fastdebug build 16-ea+3-42)
      Java HotSpot(TM) 64-Bit Server VM (fastdebug build 16-ea+3-42, mixed mode)
      Attaching to process 9403, please wait...
      Unable to connect to process ID 9403:

      Doesn't appear to be a HotSpot VM (could not find symbol
      "gHotSpotVMStructEntryTypeNameOffset" in remote process)
      sun.jvm.hotspot.debugger.DebuggerException: Doesn't appear to be a HotSpot VM (could not find symbol "gHotSpotVMStructEntryTypeNameOffset" in remote process)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.setupVM(HotSpotAgent.java:431)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:330)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:139)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.attachDebugger(CLHSDB.java:180)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB$2.attach(CLHSDB.java:75)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor$2.doit(CommandProcessor.java:411)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:2051)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:2021)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.run(CommandProcessor.java:1901)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.run(CLHSDB.java:99)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.main(CLHSDB.java:40)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runCLHSDB(SALauncher.java:280)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:483)
      Attaching to process 9403, please wait...
      Unable to connect to process ID 9403:

      Doesn't appear to be a HotSpot VM (could not find symbol "gHotSpotVMTypes" in
      remote process)
      sun.jvm.hotspot.debugger.DebuggerException: Doesn't appear to be a HotSpot VM (could not find symbol "gHotSpotVMTypes" in remote process)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.setupVM(HotSpotAgent.java:431)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:330)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:139)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.attachDebugger(CLHSDB.java:180)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB$2.attach(CLHSDB.java:75)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB$2.reattach(CLHSDB.java:88)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor$1.doit(CommandProcessor.java:402)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:2051)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:2021)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.run(CommandProcessor.java:1901)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.run(CLHSDB.java:99)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.main(CLHSDB.java:40)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runCLHSDB(SALauncher.java:280)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:483)

      [2020-06-19T06:58:15.107355Z] Waiting for completion for process 9407
      [2020-06-19T06:58:15.107524Z] Waiting for completion finished for process 9407
       LingeredApp stdout: [];
       LingeredApp stderr: [java version "16-ea" 2021-03-16
      Java(TM) SE Runtime Environment (fastdebug build 16-ea+3-42)
      Java HotSpot(TM) 64-Bit Server VM (fastdebug build 16-ea+3-42, mixed mode)
      ]
       LingeredApp exitValue = 0
      ----------System.err:(85/5656)----------
      java version "16-ea" 2021-03-16
      Java(TM) SE Runtime Environment (fastdebug build 16-ea+3-42)
      Java HotSpot(TM) 64-Bit Server VM (fastdebug build 16-ea+3-42, mixed mode)
       stdout: [hsdb> hsdb> + verbose true
      hsdb> + where
      Command not valid until attached to a VM
      hsdb> + attach 9403
      hsdb> + flags MaxJavaStackTraceDepth
      Command not valid until attached to a VM
      hsdb> + detach
      Command not valid until attached to a VM
      hsdb> + universe
      Command not valid until attached to a VM
      hsdb> + reattach
      hsdb> + longConstant markWord::locked_value
      Command not valid until attached to a VM
      hsdb> + quit
      ];
       stderr: [java version "16-ea" 2021-03-16
      Java(TM) SE Runtime Environment (fastdebug build 16-ea+3-42)
      Java HotSpot(TM) 64-Bit Server VM (fastdebug build 16-ea+3-42, mixed mode)
      Attaching to process 9403, please wait...
      Unable to connect to process ID 9403:

      Doesn't appear to be a HotSpot VM (could not find symbol
      "gHotSpotVMStructEntryTypeNameOffset" in remote process)
      sun.jvm.hotspot.debugger.DebuggerException: Doesn't appear to be a HotSpot VM (could not find symbol "gHotSpotVMStructEntryTypeNameOffset" in remote process)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.setupVM(HotSpotAgent.java:431)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:330)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:139)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.attachDebugger(CLHSDB.java:180)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB$2.attach(CLHSDB.java:75)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor$2.doit(CommandProcessor.java:411)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:2051)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:2021)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.run(CommandProcessor.java:1901)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.run(CLHSDB.java:99)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.main(CLHSDB.java:40)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runCLHSDB(SALauncher.java:280)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:483)
      Attaching to process 9403, please wait...
      Unable to connect to process ID 9403:

      Doesn't appear to be a HotSpot VM (could not find symbol "gHotSpotVMTypes" in
      remote process)
      sun.jvm.hotspot.debugger.DebuggerException: Doesn't appear to be a HotSpot VM (could not find symbol "gHotSpotVMTypes" in remote process)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.setupVM(HotSpotAgent.java:431)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:330)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:139)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.attachDebugger(CLHSDB.java:180)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB$2.attach(CLHSDB.java:75)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB$2.reattach(CLHSDB.java:88)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor$1.doit(CommandProcessor.java:402)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:2051)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:2021)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.run(CommandProcessor.java:1901)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.run(CLHSDB.java:99)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.main(CLHSDB.java:40)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runCLHSDB(SALauncher.java:280)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:483)
      ]
       exitValue = 0

      java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: '^sun.jvm.hotspot.debugger.DebuggerException:.*$' found in stderr: 'sun.jvm.hotspot.debugger.DebuggerException: Doesn't appear to be a HotSpot VM (could not find symbol "gHotSpotVMStructEntryTypeNameOffset" in remote process)'

      at ClhsdbAttach.main(ClhsdbAttach.java:75)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:832)
      Caused by: java.lang.RuntimeException: '^sun.jvm.hotspot.debugger.DebuggerException:.*$' found in stderr: 'sun.jvm.hotspot.debugger.DebuggerException: Doesn't appear to be a HotSpot VM (could not find symbol "gHotSpotVMStructEntryTypeNameOffset" in remote process)'

      at jdk.test.lib.process.OutputAnalyzer.shouldNotMatch(OutputAnalyzer.java:372)
      at ClhsdbLauncher.runCmd(ClhsdbLauncher.java:148)
      at ClhsdbLauncher.run(ClhsdbLauncher.java:200)
      at ClhsdbAttach.main(ClhsdbAttach.java:71)
      ... 6 more

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: '^sun.jvm.hotspot.debugger.DebuggerException:.*$' found in stderr: 'sun.jvm.hotspot.debugger.DebuggerException: Doesn't appear to be a HotSpot VM (could not find symbol "gHotSpotVMStructEntryTypeNameOffset" in remote process)'

      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: '^sun.jvm.hotspot.debugger.DebuggerException:.*$' found in stderr: 'sun.jvm.hotspot.debugger.DebuggerException: Doesn't appear to be a HotSpot VM (could not find symbol "gHotSpotVMStructEntryTypeNameOffset" in remote process)'
      ----------rerun:(34/6234)*----------


      This failure happened on a macOSX 10.15.5 machine which
      is a very recent update.

        1. ClhsdbDumpheap.java-jdk21u.log
          67 kB
          Sendao Yan
        2. ClhsdbPstack.java#process-jdk23u.log
          17 kB
          Sendao Yan
        3. ClhsdbSource.java-jdk23u.log
          20 kB
          Sendao Yan

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

              Created:
              Updated: