Unable to create thread dump from core file of OpenJDK and Oracle JDK generated by SIGABRT or SIGSEGV

Solution Unverified - Updated -

Issue

  • I tried the following command to create a thread dump from a core file generated by SIGABRT or SIGSEGV of OpenJDK 7:
/usr/bin/jstack /usr/bin/java core.<PID>

but it failed with the following Exception:

Attaching to core core.<pid> from executable /usr/bin/java, please wait...
Exception in thread "main" java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at sun.tools.jstack.JStack.runJStackTool(JStack.java:136)
    at sun.tools.jstack.JStack.main(JStack.java:102)
Caused by: sun.jvm.hotspot.debugger.UnmappedAddressException: 7f84dd174e10
    at sun.jvm.hotspot.debugger.PageCache.checkPage(PageCache.java:208)
    at sun.jvm.hotspot.debugger.PageCache.getData(PageCache.java:63)
    at sun.jvm.hotspot.debugger.DebuggerBase.readBytes(DebuggerBase.java:217)
    at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.readCInteger(LinuxDebuggerLocal.java:482)
    at sun.jvm.hotspot.debugger.linux.LinuxAddress.getCIntegerAt(LinuxAddress.java:69)
    at sun.jvm.hotspot.utilities.CStringUtilities.getString(CStringUtilities.java:61)
    at sun.jvm.hotspot.HotSpotTypeDataBase.readVMTypes(HotSpotTypeDataBase.java:174)
    at sun.jvm.hotspot.HotSpotTypeDataBase.<init>(HotSpotTypeDataBase.java:85)
    at sun.jvm.hotspot.bugspot.BugSpotAgent.setupVM(BugSpotAgent.java:569)
    at sun.jvm.hotspot.bugspot.BugSpotAgent.go(BugSpotAgent.java:493)
    at sun.jvm.hotspot.bugspot.BugSpotAgent.attach(BugSpotAgent.java:347)
    at sun.jvm.hotspot.tools.Tool.start(Tool.java:169)
    at sun.jvm.hotspot.tools.JStack.main(JStack.java:86)
    ... 6 more

This issue also happens in OpenJDK 6, Oracle JDK 6 and Oracle JDK 7.

Environment

  • Red Hat Enterprise Linux (RHEL) 5.x, 6.x
  • Java
    • OpenJDK 6, 7
    • Oracle JDK 6, 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.