JDK-8151815 : Could not parse core image with JSnap.
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-03-14
  • Updated: 2018-01-17
  • Resolved: 2017-10-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 10
10 b31Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
When I use `jhsdb jsnap` to get PerfCounter from core images, I encountered NPE:
-------------
Exception in thread "main" java.lang.NullPointerException
        at sun.jvm.hotspot.tools.JSnap.run(JSnap.java:45)
        at sun.jvm.hotspot.tools.Tool.startInternal(Tool.java:260)
        at sun.jvm.hotspot.tools.Tool.start(Tool.java:223)
        at sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)
        at sun.jvm.hotspot.tools.JSnap.main(JSnap.java:67)
        at sun.jvm.hotspot.SALauncher.runJSNAP(SALauncher.java:352)
        at sun.jvm.hotspot.SALauncher.main(SALauncher.java:404)
-------------

PerfMemory::destroy() clears all members which are used in JSnap.
Thus NPE is occurred.

http://mail.openjdk.java.net/pipermail/serviceability-dev/2016-January/018810.html
Comments
Final review thread: http://mail.openjdk.java.net/pipermail/serviceability-dev/2017-October/021958.html
03-01-2018

I posted new webrev: http://mail.openjdk.java.net/pipermail/serviceability-dev/2017-June/021390.html http://cr.openjdk.java.net/~ysuenaga/JDK-8151815/webrev.03/
13-06-2017