Skip to content
This repository has been archived by the owner on May 10, 2020. It is now read-only.

test_threadpool_executor: thread 'tokio-runtime-worker-0' panicked at 'assertion failed: success', tiberius/src/lib.rs:1101:28 #91

Open
bbigras opened this issue Jan 28, 2019 · 0 comments

Comments

@bbigras
Copy link
Contributor

bbigras commented Jan 28, 2019

I'm not sure if it's a bug.

3ce159c
rustc 1.33.0-nightly (19f8958f8 2019-01-23)
on NixOS.

$ cargo test test_threadpool_executor
    Finished dev [unoptimized + debuginfo] target(s) in 0.15s
     Running target/debug/deps/tiberius-52db3806f994f6f7

running 1 test
thread 'tokio-runtime-worker-0' panicked at 'assertion failed: success', tiberius/src/lib.rs:1101:28
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
test tests::test_threadpool_executor ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 47 filtered out

   Doc-tests tiberius

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 2 filtered out

with backtrace:

$ RUST_BACKTRACE=1 cargo test test_threadpool_executor
    Finished dev [unoptimized + debuginfo] target(s) in 0.14s
     Running target/debug/deps/tiberius-52db3806f994f6f7

running 1 test
thread 'tokio-runtime-worker-0' panicked at 'assertion failed: success', tiberius/src/lib.rs:1101:28
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
   1: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:70
   2: std::panicking::default_hook::{{closure}}
             at src/libstd/sys_common/backtrace.rs:58
             at src/libstd/panicking.rs:200
   3: std::panicking::default_hook
             at src/libstd/panicking.rs:215
   4: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:478
   5: std::panicking::begin_panic
             at /rustc/19f8958f827e379be9b0ffc93fca580ec8ffac77/src/libstd/panicking.rs:412
   6: tiberius::tests::test_threadpool_executor::{{closure}}
             at tiberius/src/lib.rs:1101
   7: <core::result::Result<T, E>>::map
             at /rustc/19f8958f827e379be9b0ffc93fca580ec8ffac77/src/libcore/result.rs:458
   8: <futures::future::map::Map<A, F> as futures::future::Future>::poll
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/future/map.rs:35
   9: <futures::future::map_err::MapErr<A, F> as futures::future::Future>::poll
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/future/map_err.rs:30
  10: <alloc::boxed::Box<F> as futures::future::Future>::poll
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/future/mod.rs:113
  11: <futures::task_impl::Spawn<T>>::poll_future_notify::{{closure}}
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/task_impl/mod.rs:326
  12: <futures::task_impl::Spawn<T>>::enter::{{closure}}
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/task_impl/mod.rs:396
  13: futures::task_impl::std::set
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/task_impl/std/mod.rs:78
  14: <futures::task_impl::Spawn<T>>::enter
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/task_impl/mod.rs:396
  15: <futures::task_impl::Spawn<T>>::poll_fn_notify
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/task_impl/mod.rs:288
  16: <futures::task_impl::Spawn<T>>::poll_future_notify
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/task_impl/mod.rs:326
  17: tokio_threadpool::task::Task::run::{{closure}}
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.10/src/task/mod.rs:122
  18: core::ops::function::FnOnce::call_once
             at /rustc/19f8958f827e379be9b0ffc93fca580ec8ffac77/src/libcore/ops/function.rs:231
  19: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/19f8958f827e379be9b0ffc93fca580ec8ffac77/src/libstd/panic.rs:309
  20: std::panicking::try::do_call
             at /rustc/19f8958f827e379be9b0ffc93fca580ec8ffac77/src/libstd/panicking.rs:297
  21: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:92
  22: std::panicking::try
             at /rustc/19f8958f827e379be9b0ffc93fca580ec8ffac77/src/libstd/panicking.rs:276
  23: std::panic::catch_unwind
             at /rustc/19f8958f827e379be9b0ffc93fca580ec8ffac77/src/libstd/panic.rs:388
  24: tokio_threadpool::task::Task::run
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.10/src/task/mod.rs:108
  25: tokio_threadpool::worker::Worker::run_task2
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.10/src/worker/mod.rs:555
  26: tokio_threadpool::worker::Worker::run_task
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.10/src/worker/mod.rs:454
  27: tokio_threadpool::worker::Worker::try_run_owned_task
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.10/src/worker/mod.rs:394
  28: tokio_threadpool::worker::Worker::try_run_task
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.10/src/worker/mod.rs:302
  29: tokio_threadpool::worker::Worker::run
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.10/src/worker/mod.rs:246
  30: tokio::runtime::threadpool::builder::Builder::build::{{closure}}::{{closure}}::{{closure}}::{{closure}}
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.1.14/src/runtime/threadpool/builder.rs:340
  31: tokio_timer::timer::handle::with_default::{{closure}}
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-timer-0.2.8/src/timer/handle.rs:94
  32: <std::thread::local::LocalKey<T>>::try_with
             at /rustc/19f8958f827e379be9b0ffc93fca580ec8ffac77/src/libstd/thread/local.rs:296
  33: <std::thread::local::LocalKey<T>>::with
             at /rustc/19f8958f827e379be9b0ffc93fca580ec8ffac77/src/libstd/thread/local.rs:242
  34: tokio_timer::timer::handle::with_default
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-timer-0.2.8/src/timer/handle.rs:81
  35: tokio::runtime::threadpool::builder::Builder::build::{{closure}}::{{closure}}::{{closure}}
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.1.14/src/runtime/threadpool/builder.rs:339
  36: tokio_timer::clock::clock::with_default::{{closure}}
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-timer-0.2.8/src/clock/clock.rs:136
  37: <std::thread::local::LocalKey<T>>::try_with
             at /rustc/19f8958f827e379be9b0ffc93fca580ec8ffac77/src/libstd/thread/local.rs:296
  38: <std::thread::local::LocalKey<T>>::with
             at /rustc/19f8958f827e379be9b0ffc93fca580ec8ffac77/src/libstd/thread/local.rs:242
  39: tokio_timer::clock::clock::with_default
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-timer-0.2.8/src/clock/clock.rs:119
  40: tokio::runtime::threadpool::builder::Builder::build::{{closure}}::{{closure}}
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.1.14/src/runtime/threadpool/builder.rs:338
  41: tokio_reactor::with_default::{{closure}}
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-reactor-0.1.8/src/lib.rs:229
  42: <std::thread::local::LocalKey<T>>::try_with
             at /rustc/19f8958f827e379be9b0ffc93fca580ec8ffac77/src/libstd/thread/local.rs:296
  43: <std::thread::local::LocalKey<T>>::with
             at /rustc/19f8958f827e379be9b0ffc93fca580ec8ffac77/src/libstd/thread/local.rs:242
  44: tokio_reactor::with_default
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-reactor-0.1.8/src/lib.rs:212
  45: tokio::runtime::threadpool::builder::Builder::build::{{closure}}
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.1.14/src/runtime/threadpool/builder.rs:337
  46: tokio_threadpool::callback::Callback::call
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.10/src/callback.rs:21
  47: tokio_threadpool::worker::Worker::do_run::{{closure}}::{{closure}}
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.10/src/worker/mod.rs:132
  48: tokio_executor::global::with_default::{{closure}}
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-executor-0.1.6/src/global.rs:192
  49: <std::thread::local::LocalKey<T>>::try_with
             at /rustc/19f8958f827e379be9b0ffc93fca580ec8ffac77/src/libstd/thread/local.rs:296
  50: <std::thread::local::LocalKey<T>>::with
             at /rustc/19f8958f827e379be9b0ffc93fca580ec8ffac77/src/libstd/thread/local.rs:242
  51: tokio_executor::global::with_default
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-executor-0.1.6/src/global.rs:162
  52: tokio_threadpool::worker::Worker::do_run::{{closure}}
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.10/src/worker/mod.rs:130
  53: <std::thread::local::LocalKey<T>>::try_with
             at /rustc/19f8958f827e379be9b0ffc93fca580ec8ffac77/src/libstd/thread/local.rs:296
  54: <std::thread::local::LocalKey<T>>::with
             at /rustc/19f8958f827e379be9b0ffc93fca580ec8ffac77/src/libstd/thread/local.rs:242
  55: tokio_threadpool::worker::Worker::do_run
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.10/src/worker/mod.rs:121
  56: tokio_threadpool::pool::Pool::spawn_thread::{{closure}}
             at /home/bbigras2/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.10/src/pool/mod.rs:354
test tests::test_threadpool_executor ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 47 filtered out

   Doc-tests tiberius

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 2 filtered out
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant