Skip to content

Instantly share code, notes, and snippets.

@oberhamsi
Created June 5, 2013 08:55
Show Gist options
  • Save oberhamsi/5712588 to your computer and use it in GitHub Desktop.
Save oberhamsi/5712588 to your computer and use it in GitHub Desktop.
shutdown hook deadlock
2013-06-05 10:47:40
Full thread dump Java HotSpot(TM) 64-Bit Server VM (20.1-b02 mixed mode):
"ringo-worker-1" daemon prio=10 tid=0x00007fb698003800 nid=0x77e7 waiting on condition [0x00007fb6cb227000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000000ec3cc6a0> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:811)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:842)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1178)
at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:186)
at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:262)
at org.ringojs.engine.RingoWorker.acquireWorker(RingoWorker.java:442)
at org.ringojs.engine.RingoWorker.invoke(RingoWorker.java:85)
at org.ringojs.engine.RingoWorker$1.call(RingoWorker.java:149)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
"Thread-1" prio=10 tid=0x00007fb6dc369000 nid=0x77e6 waiting on condition [0x00007fb6cb126000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000000ecf40778> (a java.util.concurrent.FutureTask$Sync)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:811)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:969)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1281)
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:218)
at java.util.concurrent.FutureTask.get(FutureTask.java:83)
at org.ringojs.engine.RhinoEngine.shutdown(RhinoEngine.java:346)
- locked <0x00000000ec3bf0f8> (a org.ringojs.engine.RhinoEngine)
at org.ringojs.engine.RhinoEngine$1.run(RhinoEngine.java:145)
"Low Memory Detector" daemon prio=10 tid=0x00007fb6dc0b9000 nid=0x77e3 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"C2 CompilerThread1" daemon prio=10 tid=0x00007fb6dc0b6800 nid=0x77e2 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"C2 CompilerThread0" daemon prio=10 tid=0x00007fb6dc0b3800 nid=0x77e1 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Signal Dispatcher" daemon prio=10 tid=0x00007fb6dc0b1800 nid=0x77e0 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Finalizer" daemon prio=10 tid=0x00007fb6dc095000 nid=0x77df in Object.wait() [0x00007fb6cbaf9000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000ec0b1300> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
- locked <0x00000000ec0b1300> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
"Reference Handler" daemon prio=10 tid=0x00007fb6dc093000 nid=0x77de in Object.wait() [0x00007fb6cbbfa000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000ec0b11d8> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:485)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
- locked <0x00000000ec0b11d8> (a java.lang.ref.Reference$Lock)
"main" prio=10 tid=0x00007fb6dc007800 nid=0x77d8 in Object.wait() [0x00007fb6e0aa0000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000ec924fe8> (a org.ringojs.engine.RhinoEngine$1)
at java.lang.Thread.join(Thread.java:1186)
- locked <0x00000000ec924fe8> (a org.ringojs.engine.RhinoEngine$1)
at java.lang.Thread.join(Thread.java:1239)
at java.lang.ApplicationShutdownHooks.runHooks(ApplicationShutdownHooks.java:79)
at java.lang.ApplicationShutdownHooks$1.run(ApplicationShutdownHooks.java:24)
at java.lang.Shutdown.runHooks(Shutdown.java:79)
at java.lang.Shutdown.sequence(Shutdown.java:123)
at java.lang.Shutdown.exit(Shutdown.java:168)
- locked <0x00000000bf341a18> (a java.lang.Class for java.lang.Shutdown)
at java.lang.Runtime.exit(Runtime.java:90)
at java.lang.System.exit(System.java:904)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.mozilla.javascript.gen.system_js_8._c_anonymous_8(system.js:86)
at org.mozilla.javascript.gen.system_js_8.call(system.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.mozilla.javascript.gen._tmp_shook_js_3._c_main_1(/tmp/shook.js:5)
at org.mozilla.javascript.gen._tmp_shook_js_3.call(/tmp/shook.js)
at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:74)
at org.mozilla.javascript.gen._tmp_shook_js_3._c_script_0(/tmp/shook.js:14)
at org.mozilla.javascript.gen._tmp_shook_js_3.call(/tmp/shook.js)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at org.mozilla.javascript.gen._tmp_shook_js_3.call(/tmp/shook.js)
at org.mozilla.javascript.gen._tmp_shook_js_3.exec(/tmp/shook.js)
at org.ringojs.engine.ReloadableScript.evaluate(ReloadableScript.java:186)
at org.ringojs.engine.RingoWorker.evaluateScript(RingoWorker.java:310)
at org.ringojs.engine.RhinoEngine.runScript(RhinoEngine.java:211)
at org.ringojs.tools.RingoRunner.run(RingoRunner.java:152)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.ringojs.tools.launcher.Main.run(Main.java:66)
at org.ringojs.tools.launcher.Main.main(Main.java:45)
"VM Thread" prio=10 tid=0x00007fb6dc08c800 nid=0x77dd runnable
"GC task thread#0 (ParallelGC)" prio=10 tid=0x00007fb6dc01a800 nid=0x77d9 runnable
"GC task thread#1 (ParallelGC)" prio=10 tid=0x00007fb6dc01c800 nid=0x77da runnable
"GC task thread#2 (ParallelGC)" prio=10 tid=0x00007fb6dc01e800 nid=0x77db runnable
"GC task thread#3 (ParallelGC)" prio=10 tid=0x00007fb6dc020000 nid=0x77dc runnable
"VM Periodic Task Thread" prio=10 tid=0x00007fb6dc0c3800 nid=0x77e4 waiting on condition
JNI global references: 923
Heap
PSYoungGen total 17920K, used 15424K [0x00000000ec0b0000, 0x00000000ed4a0000, 0x0000000100000000)
eden space 15424K, 100% used [0x00000000ec0b0000,0x00000000ecfc0000,0x00000000ecfc0000)
from space 2496K, 0% used [0x00000000ed230000,0x00000000ed230000,0x00000000ed4a0000)
to space 2496K, 0% used [0x00000000ecfc0000,0x00000000ecfc0000,0x00000000ed230000)
PSOldGen total 40832K, used 0K [0x00000000c4200000, 0x00000000c69e0000, 0x00000000ec0b0000)
object space 40832K, 0% used [0x00000000c4200000,0x00000000c4200000,0x00000000c69e0000)
PSPermGen total 21248K, used 9203K [0x00000000bf000000, 0x00000000c04c0000, 0x00000000c4200000)
object space 21248K, 43% used [0x00000000bf000000,0x00000000bf8fcd40,0x00000000c04c0000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment