RFR: 8259037: livenmethods cannot find hsdis library [v2]

Yasumasa Suenaga ysuenaga at openjdk.java.net
Tue Jan 5 01:14:12 UTC 2021


> `livenmethods` CLHSDB command could not find hsdis library even though it deployed to `$JAVA_HOME/lib/server/`.
> 
> sun.jvm.hotspot.debugger.DebuggerException: /usr/local/jdk-15.0.1/lib/amd64/hsdis-amd64.so: cannot open shared object file: No such file or directory
>         at jdk.hotspot.agent/sun.jvm.hotspot.asm.Disassembler.load_library(Native Method)
>         at jdk.hotspot.agent/sun.jvm.hotspot.asm.Disassembler.<init>(Disassembler.java:95)
>         at jdk.hotspot.agent/sun.jvm.hotspot.asm.Disassembler.decode(Disassembler.java:52)
>         at jdk.hotspot.agent/sun.jvm.hotspot.asm.Disassembler.decode(Disassembler.java:43)
>         at jdk.hotspot.agent/sun.jvm.hotspot.ui.classbrowser.HTMLGenerator.genHTML(HTMLGenerator.java:1435)
>         at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor$45.doit(CommandProcessor.java:1651)
>         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)
> 
> JDK directory layout has been changed since JDK 9, however `livenmethods` hasn't followed it yet.

Yasumasa Suenaga has updated the pull request incrementally with one additional commit since the last revision:

  Add some comments, remove unnecessary code

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/1920/files
  - new: https://git.openjdk.java.net/jdk/pull/1920/files/01121d24..c623d98d

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=1920&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=1920&range=00-01

  Stats: 13 lines in 2 files changed: 3 ins; 6 del; 4 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1920.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1920/head:pull/1920

PR: https://git.openjdk.java.net/jdk/pull/1920


More information about the serviceability-dev mailing list