Skip to content

Instantly share code, notes, and snippets.

@jonhoo
Created June 8, 2018 19:26
Show Gist options
  • Save jonhoo/d898ca9e93fe851271a5aeaa31d4a7d2 to your computer and use it in GitHub Desktop.
Save jonhoo/d898ca9e93fe851271a5aeaa31d4a7d2 to your computer and use it in GitHub Desktop.
tokio deadlock
#0 0x00007fafb46f7ffc in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1 0x000055e6e56d7d3c in std::sys::unix::condvar::Condvar::wait (self=0x7faf9ae51130, mutex=0x7faf9ae51100)
at /checkout/src/libstd/sys/unix/condvar.rs:78
#2 0x000055e6e56d7ce6 in std::sys_common::condvar::Condvar::wait (self=0x7faf9ae51130, mutex=0x7faf9ae51100)
at /checkout/src/libstd/sys_common/condvar.rs:51
#3 0x000055e6e56d458a in std::sync::condvar::Condvar::wait (self=0x7faf9afaade8, guard=...)
at /checkout/src/libstd/sync/condvar.rs:214
#4 0x000055e6e56d0047 in futures::task_impl::std::ThreadNotify::park (self=0x7faf9afaadd0)
at /home/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.21/src/task_impl/std/mod.rs:536
#5 0x000055e6e55f30f6 in futures::task_impl::std::<impl futures::task_impl::Spawn<F>>::wait_future::{{closure}} (
notify=0x7faf859fe668)
at /home/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.21/src/task_impl/std/mod.rs:244
#6 0x000055e6e55f2b67 in futures::task_impl::std::ThreadNotify::with_current::{{closure}} (notify=0x7faf859fe668)
at /home/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.21/src/task_impl/std/mod.rs:506
#7 0x000055e6e55f3e9f in <std::thread::local::LocalKey<T>>::try_with (self=0x55e6e63f0b58, f=...)
at /checkout/src/libstd/thread/local.rs:294
#8 0x000055e6e55f3a6d in <std::thread::local::LocalKey<T>>::with (self=0x55e6e63f0b58, f=...)
at /checkout/src/libstd/thread/local.rs:248
#9 0x000055e6e55f2b27 in futures::task_impl::std::ThreadNotify::with_current (f=...)
at /home/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.21/src/task_impl/std/mod.rs:506
#10 0x000055e6e55fb01d in futures::task_impl::std::<impl futures::task_impl::Spawn<F>>::wait_future (
self=0x7faf859faf00)
at /home/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.21/src/task_impl/std/mod.rs:240
#11 0x000055e6e55f7aad in futures::future::Future::wait (self=...)
at /home/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.21/src/future/mod.rs:299
#12 0x000055e6e55f7f91 in <tokio::runtime::Runtime as core::ops::drop::Drop>::drop (self=0x7faf859fb2a8)
at /home/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.1.7/src/runtime/mod.rs:492
#13 0x000055e6e3f47971 in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#0 0x00007fafb46f710f in pthread_rwlock_wrlock () from /usr/lib/libpthread.so.0
#1 0x000055e6e563b092 in std::sys::unix::rwlock::RWLock::write (self=0x7fafb1813140)
at /checkout/src/libstd/sys/unix/rwlock.rs:82
#2 0x000055e6e563435e in std::sys_common::rwlock::RWLock::write (self=0x7fafb1813140)
at /checkout/src/libstd/sys_common/rwlock.rs:51
#3 0x000055e6e562f5b5 in <std::sync::rwlock::RwLock<T>>::write (self=0x7fafb183a0f8)
at /checkout/src/libstd/sync/rwlock.rs:277
#4 0x000055e6e562aaab in tokio_reactor::Inner::drop_source (self=0x7fafb183a0b0, token=9)
at /home/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-reactor-0.1.1/src/lib.rs:592
#5 0x000055e6e5627d15 in <tokio_reactor::registration::Inner as core::ops::drop::Drop>::drop (self=0x7fafae42a628)
at /home/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-reactor-0.1.1/src/registration.rs:556
#6 0x000055e6e3f43d51 in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#7 0x000055e6e3f2d45e in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#8 0x000055e6e3f37e3e in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#9 0x000055e6e3f341ee in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#10 0x000055e6e3f4a9fe in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#11 0x000055e6e3f48ac4 in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#12 0x000055e6e3f203ae in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#13 0x000055e6e3f34681 in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#14 0x000055e6e3f29fd1 in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#15 0x000055e6e3f47561 in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#16 0x000055e6e3f35495 in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#17 0x000055e6e3f39d00 in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#18 0x000055e6e3f29eae in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#19 0x000055e6e3f316c7 in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#20 0x000055e6e3f3b6fe in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#21 0x000055e6e3f4a33e in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#22 0x000055e6e564a417 in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#23 0x000055e6e564a3aa in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#24 0x000055e6e564aa2e in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#25 0x000055e6e5649fc2 in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#26 0x000055e6e564a3ee in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#27 0x000055e6e564b382 in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#28 0x000055e6e5661f89 in <alloc::arc::Arc<T>>::drop_slow (self=0x7faf937fa070) at /checkout/src/liballoc/arc.rs:517
#29 0x000055e6e5663258 in <alloc::arc::Arc<T> as core::ops::drop::Drop>::drop (self=0x7faf937fa070)
at /checkout/src/liballoc/arc.rs:969
#30 0x000055e6e564ba1e in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#31 0x000055e6e5658a11 in <tokio_threadpool::notifier::Notifier as futures::task_impl::Notify>::drop_id (
self=0x7fafacaa0250, id=140392540260784)
at /home/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.4/src/notifier.rs:69
#32 0x000055e6e564d5a9 in <futures::task_impl::std::ArcWrapped<T> as futures::task_impl::Notify>::drop_id (
self=0x7fafacaa0240, id=140392540260784)
at /home/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.21/src/task_impl/std/mod.rs:701
#33 0x000055e6e56d319d in futures::task_impl::NotifyHandle::drop_id (self=0x7faf937fa1f0, id=140392540260784)
at /home/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.21/src/task_impl/mod.rs:629
#34 0x000055e6e56d5646 in <futures::task_impl::core::TaskUnpark as core::ops::drop::Drop>::drop (self=0x7faf937fa1f0)
at /home/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.21/src/task_impl/core.rs:83
#35 0x000055e6e5635881 in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#36 0x000055e6e5635817 in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#37 0x000055e6e5634c95 in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#38 0x000055e6e563539e in core::ptr::drop_in_place () at /checkout/src/libcore/ptr.rs:59
#39 0x000055e6e563798f in tokio_reactor::atomic_task::AtomicTask::notify (self=0x7fafaf7ace90)
at /home/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-reactor-0.1.1/src/atomic_task.rs:257
#40 0x000055e6e562967a in tokio_reactor::Reactor::dispatch (self=0x7faf937fabc0, token=..., ready=...)
at /home/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-reactor-0.1.1/src/lib.rs:383
#41 0x000055e6e5629043 in tokio_reactor::Reactor::poll (self=0x7faf937fabc0, max_wait=...)
at /home/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-reactor-0.1.1/src/lib.rs:350
#42 0x000055e6e562856d in tokio_reactor::Reactor::turn (self=0x7faf937fabc0, max_wait=...)
at /home/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-reactor-0.1.1/src/lib.rs:301
#43 0x000055e6e563147d in tokio_reactor::background::run (reactor=..., shared=...)
at /home/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-reactor-0.1.1/src/background.rs:205
#44 0x000055e6e5630b09 in tokio_reactor::background::Background::new::{{closure}} ()
at /home/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-reactor-0.1.1/src/background.rs:77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment