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

SA: jstack throws UnmappedAddressException with a CDS core file

    Details

    • Subcomponent:
    • Resolved In Build:
      b24
    • CPU:
      generic
    • OS:
      linux

      Backports

        Description

        A 'jstack -v' on a corefile obtained from an Xshare:on process results in an UnmappedAddressException

        [ jini-VirtualBox ClhsdbCDSCore ] $ sudo /home/jini/new16/hs/build/linux-x86_64-normal-server-fastdebug/images/jdk/bin/jhsdb clhsdb --core cds_core_file --exe /home/jini/new16/hs/build/linux-x86_64-normal-server-fastdebug/images/jdk/bin/java
        Opening core file, please wait...
        javax.script.ScriptException: TypeError: sapkg.runtime.VM.getVM is not a function in sa.js at line number 54
        javax.script.ScriptException: TypeError: sapkg.runtime.VM.getVM is not a function in sa.js at line number 54
        Warning! JS Engine can't start, some commands will not be available.
        hsdb> jstack -v
        Deadlock Detection:

        No deadlocks found.

        "Error accessing address 0x7bff58520
        sun.jvm.hotspot.debugger.UnmappedAddressException: 7bff58520
                at jdk.hotspot.agent/sun.jvm.hotspot.debugger.PageCache.checkPage(PageCache.java:208)
                at jdk.hotspot.agent/sun.jvm.hotspot.debugger.PageCache.getData(PageCache.java:63)
                at jdk.hotspot.agent/sun.jvm.hotspot.debugger.DebuggerBase.readBytes(DebuggerBase.java:225)
                at jdk.hotspot.agent/sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.readCInteger(LinuxDebuggerLocal.java:494)
                at jdk.hotspot.agent/sun.jvm.hotspot.debugger.DebuggerBase.readCompKlassAddressValue(DebuggerBase.java:477)
                at jdk.hotspot.agent/sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.readCompKlassAddress(LinuxDebuggerLocal.java:440)
                at jdk.hotspot.agent/sun.jvm.hotspot.debugger.linux.LinuxAddress.getCompKlassAddressAt(LinuxAddress.java:84)
                at jdk.hotspot.agent/sun.jvm.hotspot.oops.Oop.getKlassForOopHandle(Oop.java:210)
                at jdk.hotspot.agent/sun.jvm.hotspot.oops.ObjectHeap.newOop(ObjectHeap.java:252)
                at jdk.hotspot.agent/sun.jvm.hotspot.oops.NarrowOopField.getValue(NarrowOopField.java:44)
                at jdk.hotspot.agent/sun.jvm.hotspot.oops.OopUtilities.threadOopGetName(OopUtilities.java:263)
                at jdk.hotspot.agent/sun.jvm.hotspot.runtime.JavaThread.getThreadName(JavaThread.java:372)
                at jdk.hotspot.agent/sun.jvm.hotspot.runtime.JavaThread.printThreadInfoOn(JavaThread.java:485)
                at jdk.hotspot.agent/sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:77)
                at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor$26.doit(CommandProcessor.java:1075)
                at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:1983)
                at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:1953)
                at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.run(CommandProcessor.java:1833)
                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:191)
                at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:439)
        hsdb>

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jgeorge Jini George (Inactive)
                  Reporter:
                  jgeorge Jini George (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: