serviceability/sa/TestJhsdbJstackMixedCore.java fails due to NPE because "because "this.cfa" is null"

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 27
    • Affects Version/s: 27
    • Component/s: hotspot
    • 27
    • b09
    • x86_64
    • linux

      Failure is on linux-x86-debug. I believe it was introduced by JDK-8376264.

      java.lang.NullPointerException: Cannot invoke "sun.jvm.hotspot.debugger.Address.addOffsetTo(long)" because "this.cfa" is null
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.linux.amd64.LinuxAMD64CFrame.getNextRSP(LinuxAMD64CFrame.java:143)
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.linux.amd64.LinuxAMD64CFrame.sender(LinuxAMD64CFrame.java:189)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.PStack.run(PStack.java:195)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.PStack.run(PStack.java:65)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.PStack.run(PStack.java:60)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.JStack.run(JStack.java:67)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.startInternal(Tool.java:278)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.start(Tool.java:241)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.execute(Tool.java:134)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.JStack.runWithArgs(JStack.java:90)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runJSTACK(SALauncher.java:306)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:507)

      I believe this is happening while walking the "main" thread:

      "main" #3 prio=5 tid=0x00007f34f402e320 nid=1106480 runnable [0x00007f34ff3ed000]
         java.lang.Thread.State: RUNNABLE
         JavaThread state: _thread_in_native
      0x00007f34fee555ef __GI_raise + 0x10f
      0x00007f34fee28e65 __GI_abort + 0x127
      0x00007f34fc569605 os::abort(bool, void const*, void const*) [clone .cold] + 0x4
      0x00007f34fded7892 VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void const*, void const*, char const*, int, unsigned long) + 0x6f2
      0x00007f34fded803b VMError::report_and_die(Thread*, unsigned int, unsigned char*, void const*, void const*, char const*, ...) + 0x8a
      0x00007f34fded8098 VMError::report_and_die(Thread*, unsigned int, unsigned char*, void const*, void const*) + 0x58
      0x00007f34fdc0d4c8 JVM_handle_linux_signal + 0x428
      0x00007f34fee55670 __restore_rt <signal trampoline>
      0x00007f34ff3f4690 ????????

        1. hs_err_pid1666049.log
          70 kB
          Chris Plummer
        2. LingeredApp.elf
          15 kB
          Chris Plummer
        3. TestJhsdbJstackMixedCore.jtr
          90 kB
          Chris Plummer

            Assignee:
            Yasumasa Suenaga
            Reporter:
            Chris Plummer
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: