Skip to content

Instantly share code, notes, and snippets.

@eribeiro
Created March 29, 2016 21:43
Show Gist options
  • Save eribeiro/96f95b295a4b90c0d261057d4542063a to your computer and use it in GitHub Desktop.
Save eribeiro/96f95b295a4b90c0d261057d4542063a to your computer and use it in GitHub Desktop.
Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.51-b03 mixed mode):
"Attach Listener" #13 daemon prio=9 os_prio=31 tid=0x00007f943c05e000 nid=0x3507 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"DestroyJavaVM" #12 prio=5 os_prio=31 tid=0x00007f943a817000 nid=0x1003 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Thread-1" #11 prio=5 os_prio=31 tid=0x00007f943a816000 nid=0x5003 waiting for monitor entry [0x00007000012cc000]
java.lang.Thread.State: BLOCKED (on object monitor)
at DeadlockTest$Foo.equals(DeadlockTest.java:58)
- waiting to lock <0x00000007957bee28> (a DeadlockTest$Foo)
- locked <0x00000007957bee38> (a DeadlockTest$Foo)
at DeadlockTest$2.run(DeadlockTest.java:30)
at java.lang.Thread.run(Thread.java:745)
"Thread-0" #10 prio=5 os_prio=31 tid=0x00007f943b810000 nid=0x4e03 waiting for monitor entry [0x00007000011c9000]
java.lang.Thread.State: BLOCKED (on object monitor)
at DeadlockTest$Foo.equals(DeadlockTest.java:58)
- waiting to lock <0x00000007957bee38> (a DeadlockTest$Foo)
- locked <0x00000007957bee28> (a DeadlockTest$Foo)
at DeadlockTest$1.run(DeadlockTest.java:18)
at java.lang.Thread.run(Thread.java:745)
"Monitor Ctrl-Break" #9 daemon prio=5 os_prio=31 tid=0x00007f943c05d800 nid=0x4c03 runnable [0x00007000010c6000]
java.lang.Thread.State: RUNNABLE
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:404)
at java.net.ServerSocket.implAccept(ServerSocket.java:545)
at java.net.ServerSocket.accept(ServerSocket.java:513)
at com.intellij.rt.execution.application.AppMain$1.run(AppMain.java:90)
at java.lang.Thread.run(Thread.java:745)
"Service Thread" #8 daemon prio=9 os_prio=31 tid=0x00007f943b801800 nid=0x4803 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"C1 CompilerThread2" #7 daemon prio=9 os_prio=31 tid=0x00007f943b0ba800 nid=0x4603 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"C2 CompilerThread1" #6 daemon prio=9 os_prio=31 tid=0x00007f943b0ba000 nid=0x4403 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"C2 CompilerThread0" #5 daemon prio=9 os_prio=31 tid=0x00007f943b06d800 nid=0x4203 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Signal Dispatcher" #4 daemon prio=9 os_prio=31 tid=0x00007f943b042000 nid=0x360f runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Finalizer" #3 daemon prio=8 os_prio=31 tid=0x00007f943b063800 nid=0x2e03 in Object.wait() [0x000070000092e000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x0000000795586f58> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
- locked <0x0000000795586f58> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)
"Reference Handler" #2 daemon prio=10 os_prio=31 tid=0x00007f943a806000 nid=0x2c03 in Object.wait() [0x000070000082b000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x0000000795586998> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:502)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:157)
- locked <0x0000000795586998> (a java.lang.ref.Reference$Lock)
"VM Thread" os_prio=31 tid=0x00007f943b063000 nid=0x2a03 runnable
"GC task thread#0 (ParallelGC)" os_prio=31 tid=0x00007f943b802000 nid=0x2203 runnable
"GC task thread#1 (ParallelGC)" os_prio=31 tid=0x00007f943b806000 nid=0x2403 runnable
"GC task thread#2 (ParallelGC)" os_prio=31 tid=0x00007f943b015000 nid=0x2603 runnable
"GC task thread#3 (ParallelGC)" os_prio=31 tid=0x00007f943b016000 nid=0x2803 runnable
"VM Periodic Task Thread" os_prio=31 tid=0x00007f943a808000 nid=0x4a03 waiting on condition
JNI global references: 21
Found one Java-level deadlock:
=============================
"Thread-1":
waiting to lock monitor 0x00007f943a8100a8 (object 0x00000007957bee28, a DeadlockTest$Foo),
which is held by "Thread-0"
"Thread-0":
waiting to lock monitor 0x00007f943a80da28 (object 0x00000007957bee38, a DeadlockTest$Foo),
which is held by "Thread-1"
Java stack information for the threads listed above:
===================================================
"Thread-1":
at DeadlockTest$Foo.equals(DeadlockTest.java:58)
- waiting to lock <0x00000007957bee28> (a DeadlockTest$Foo)
- locked <0x00000007957bee38> (a DeadlockTest$Foo)
at DeadlockTest$2.run(DeadlockTest.java:30)
at java.lang.Thread.run(Thread.java:745)
"Thread-0":
at DeadlockTest$Foo.equals(DeadlockTest.java:58)
- waiting to lock <0x00000007957bee38> (a DeadlockTest$Foo)
- locked <0x00000007957bee28> (a DeadlockTest$Foo)
at DeadlockTest$1.run(DeadlockTest.java:18)
at java.lang.Thread.run(Thread.java:745)
Found 1 deadlock.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment