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

serviceability/sa/ClhsdbFindPC.java#id0 failed with (could not find symbol "gHotSpotVMStructEntryTypeNameOffset" in remote process)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 16
    • Fix Version/s: None
    • Component/s: hotspot
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      os_x_10.15

      Description

      The following test failed in the JDK16 CI:

      serviceability/sa/ClhsdbFindPC.java#id0

      Here's a snippet from the log file:

      Attaching to process 87819, please wait...

      Target JDK is not signed.
      Starting clhsdb against 87819
      Adding 'sudo -E -n' to the command.
      [2021-01-03T07:07:16.916510Z] Gathering output for process 87853
      [2021-01-03T07:07:18.001183Z] Waiting for completion for process 87853
      [2021-01-03T07:07:18.001331Z] Waiting for completion finished for process 87853
      Output:
      hsdb> hsdb> + verbose true
      hsdb> + findpc 0x000000011c21db04
      Command not valid until attached to a VM
      hsdb> + quit
      Attaching to process 87819, please wait...
      Unable to connect to process ID 87819:

      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.run(CLHSDB.java:61)
      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)

      [2021-01-03T07:07:18.001904Z] Waiting for completion for process 87853
      [2021-01-03T07:07:18.002021Z] Waiting for completion finished for process 87853
       LingeredApp stdout: [];
       LingeredApp stderr: []
       LingeredApp exitValue = 0
      ----------System.err:(45/3215)----------
       stdout: [hsdb> hsdb> + verbose true
      hsdb> + findpc 0x000000011c21db04
      Command not valid until attached to a VM
      hsdb> + quit
      ];
       stderr: [Attaching to process 87819, please wait...
      Unable to connect to process ID 87819:

      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.run(CLHSDB.java:61)
      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 ClhsdbFindPC.testFindPC(ClhsdbFindPC.java:155)
      at ClhsdbFindPC.main(ClhsdbFindPC.java:167)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:831)
      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 ClhsdbFindPC.testFindPC(ClhsdbFindPC.java:150)
      ... 7 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:(36/7407)*----------

      Please note that this is the second attach to PID 87819.
      The earlier attach to PID 87819 by the test worked fine.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: