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

java/lang/management/ThreadMXBean/FindDeadlocks.java - Expected to have 3 to be in the deadlock list

    Details

      Description

      ----------messages:(3/121)----------
      command: main FindDeadlocks
      reason: User specified action: run main/othervm FindDeadlocks
      elapsed time (seconds): 1.606
      ----------System.out:(114/5858)----------
      Full Java thread dump
      "Deadlock-Thread-3" Id=15 in WAITING on lock=java.util.concurrent.locks.ReentrantLock$NonfairSync@3ca52535
          owned by Deadlock-Thread-1 Id=13
         at sun.misc.Unsafe.park(Native Method)
         at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
         at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:836)
         at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:870)
         at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1199)
         at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:209)
         at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:285)
         at SynchronizerDeadlock$DeadlockingThread.g(SynchronizerDeadlock.java:131)
         at SynchronizerDeadlock$DeadlockingThread.f(SynchronizerDeadlock.java:124)
         at SynchronizerDeadlock$DeadlockingThread.run(SynchronizerDeadlock.java:117)

         Locked synchronizers: count = 1
           - java.util.concurrent.locks.ReentrantLock$NonfairSync@df16e65

      "Deadlock-Thread-2" Id=14 in RUNNABLE
         at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1198)
         at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:209)
         at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:285)
         at SynchronizerDeadlock$DeadlockingThread.g(SynchronizerDeadlock.java:131)
         at SynchronizerDeadlock$DeadlockingThread.f(SynchronizerDeadlock.java:124)
         at SynchronizerDeadlock$DeadlockingThread.run(SynchronizerDeadlock.java:117)

         Locked synchronizers: count = 1
           - java.util.concurrent.locks.ReentrantLock$NonfairSync@755cb899

      "Deadlock-Thread-1" Id=13 in WAITING on lock=java.util.concurrent.locks.ReentrantLock$NonfairSync@755cb899
          owned by Deadlock-Thread-2 Id=14
         at sun.misc.Unsafe.park(Native Method)
         at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
         at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:836)
         at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:870)
         at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1199)
         at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:209)
         at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:285)
         at SynchronizerDeadlock$DeadlockingThread.g(SynchronizerDeadlock.java:131)
         at SynchronizerDeadlock$DeadlockingThread.f(SynchronizerDeadlock.java:124)
         at SynchronizerDeadlock$DeadlockingThread.run(SynchronizerDeadlock.java:117)

         Locked synchronizers: count = 1
           - java.util.concurrent.locks.ReentrantLock$NonfairSync@3ca52535

      "MThread-3" Id=12 in BLOCKED on lock=java.lang.Object@6bc98baf
          owned by MThread-1 Id=10
         at MonitorDeadlock$DeadlockingThread.g(MonitorDeadlock.java:129)
         at MonitorDeadlock$DeadlockingThread.f(MonitorDeadlock.java:123)
           - locked java.lang.Object@6dcd5235
         at MonitorDeadlock$DeadlockingThread.run(MonitorDeadlock.java:117)

         Locked synchronizers: count = 0

      "MThread-2" Id=11 in BLOCKED on lock=java.lang.Object@6dcd5235
          owned by MThread-3 Id=12
         at MonitorDeadlock$DeadlockingThread.g(MonitorDeadlock.java:129)
         at MonitorDeadlock$DeadlockingThread.f(MonitorDeadlock.java:123)
           - locked java.lang.Object@7ed0876e
         at MonitorDeadlock$DeadlockingThread.run(MonitorDeadlock.java:117)

         Locked synchronizers: count = 0

      "MThread-1" Id=10 in BLOCKED on lock=java.lang.Object@7ed0876e
          owned by MThread-2 Id=11
         at MonitorDeadlock$DeadlockingThread.g(MonitorDeadlock.java:129)
         at MonitorDeadlock$DeadlockingThread.f(MonitorDeadlock.java:123)
           - locked java.lang.Object@6bc98baf
         at MonitorDeadlock$DeadlockingThread.run(MonitorDeadlock.java:117)

         Locked synchronizers: count = 0

      "MainThread" Id=9 in RUNNABLE
         at sun.management.ThreadImpl.dumpThreads0(Native Method)
         at sun.management.ThreadImpl.dumpAllThreads(ThreadImpl.java:446)
         at ThreadDump.threadDump(ThreadDump.java:102)
         at SynchronizerDeadlock.checkResult(SynchronizerDeadlock.java:138)
         at FindDeadlocks.main(FindDeadlocks.java:99)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:484)
         at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
         at java.lang.Thread.run(Thread.java:745)

         Locked synchronizers: count = 0

      "Signal Dispatcher" Id=4 in RUNNABLE

         Locked synchronizers: count = 0

      "Finalizer" Id=3 in WAITING on lock=java.lang.ref.ReferenceQueue$Lock@6e58705d
         at java.lang.Object.wait(Native Method)
         at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
         at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
         at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)

         Locked synchronizers: count = 0

      "Reference Handler" Id=2 in WAITING on lock=java.lang.ref.Reference$Lock@6983cb59
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:502)
         at java.lang.ref.Reference.tryHandlePending(Reference.java:191)
         at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:153)

         Locked synchronizers: count = 0

      "main" Id=1 in WAITING on lock=java.lang.Thread@4e30a135
         at java.lang.Object.wait(Native Method)
         at java.lang.Thread.join(Thread.java:1245)
         at java.lang.Thread.join(Thread.java:1319)
         at com.sun.javatest.regtest.MainWrapper.main(MainWrapper.java:71)

         Locked synchronizers: count = 0

      ----------System.err:(14/861)----------
      java.lang.RuntimeException: Expected to have 3 to be in the deadlock list
      at SynchronizerDeadlock.checkResult(SynchronizerDeadlock.java:139)
      at FindDeadlocks.main(FindDeadlocks.java:99)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:484)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:745)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected to have 3 to be in the deadlock list

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                iklam Ioi Lam
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: