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

jstack enters infinite loop in tmtools/jstack/deadlock-m/deadlock_core scenario on some linux hosts

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic, linux

      Description

      The test

          tmtools/jstack/deadlock-m/deadlock_core

      creates a deadlock in java code, dumps core with "kill -ABRT", then runs "jstack -m" on the core file (verifying that deadlock detection works). However, the jstack loops indefinitely while printing stack of one threads:

      Attaching to core /tmp/sd/ResultDir/deadlock_core/core.6412 from executable /net/vmsqe.russia/export/jdk/re/7/promoted/ea/b106/binaries/linux-amd64/bin/java, please wait...
      Debugger attached successfully.
      Server compiler detected.
      JVM version is 19.0-b05
      Deadlock Detection:

      Found one Java-level deadlock:
      =============================

      "scenario":
        waiting to lock Monitor@0x000000001d2da1c8 (Object@0x00000000eb646980, a java/lang/Object),
        which is held by "scenario2"
      "scenario2":
        waiting to lock Monitor@0x000000001d25d330 (Object@0x00000000eb646990, a java/lang/Object),
        which is held by "scenario"

      Found a total of 1 deadlock.

      ----------------- 6415 -----------------
      0x00000034518cae46 __libc_poll + 0x66
      sun.jvm.hotspot.debugger.UnalignedAddressException: Trying to read at address: 0x0000000000000001 with alignment: 4
              at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$1.checkAlignment(LinuxDebuggerLocal.java:181)
              at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.readCInteger(LinuxDebuggerLocal.java:478)
              at sun.jvm.hotspot.debugger.DebuggerBase.readAddressValue(DebuggerBase.java:454)
              at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.readAddress(LinuxDebuggerLocal.java:423)
              at sun.jvm.hotspot.debugger.linux.LinuxAddress.getAddressAt(LinuxAddress.java:74)
              at sun.jvm.hotspot.debugger.linux.amd64.LinuxAMD64CFrame.sender(LinuxAMD64CFrame.java:59)
              at sun.jvm.hotspot.tools.PStack.run(PStack.java:161)
              at sun.jvm.hotspot.tools.PStack.run(PStack.java:53)
              at sun.jvm.hotspot.tools.PStack.run(PStack.java:48)
              at sun.jvm.hotspot.tools.JStack.run(JStack.java:60)
              at sun.jvm.hotspot.tools.Tool.start(Tool.java:221)
              at sun.jvm.hotspot.tools.JStack.main(JStack.java:86)
              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:613)
              at sun.tools.jstack.JStack.runJStackTool(JStack.java:136)
              at sun.tools.jstack.JStack.main(JStack.java:102)

      [---snip---]

      ----------------- 6412 -----------------
      0x0000003452407955 pthread_join + 0x125
      0x00002b85fe103cd0 ????????
      0x00002b85fe103cd0 ????????
      0x00002b85fe103cd0 ????????
      0x00002b85fe103cd0 ????????
      0x00002b85fe103cd0 ????????
      0x00002b85fe103cd0 ????????
      0x00002b85fe103cd0 ????????
      0x00002b85fe103cd0 ????????
      0x00002b85fe103cd0 ????????
      0x00002b85fe103cd0 ????????
      0x00002b85fe103cd0 ????????
      0x00002b85fe103cd0 ????????
      0x00002b85fe103cd0 ????????
      0x00002b85fe103cd0 ????????
      0x00002b85fe103cd0 ????????
      0x00002b85fe103cd0 ????????
      0x00002b85fe103cd0 ????????
      0x00002b85fe103cd0 ????????
      0x00002b85fe103cd0 ????????
      0x00002b85fe103cd0 ????????
      0x00002b85fe103cd0 ????????
      0x00002b85fe103cd0 ????????
      [repeates indefinitely]

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sdolgovorcl Sergey Dolgov (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: