Skip to content

Instantly share code, notes, and snippets.

@xylix
Created February 23, 2020 19:03
Show Gist options
  • Save xylix/1b85a4fe805241862440ea8cd420ef44 to your computer and use it in GitHub Desktop.
Save xylix/1b85a4fe805241862440ea8cd420ef44 to your computer and use it in GitHub Desktop.
backtrace for worker panic
thread 'api_tests::settings_list_get' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', aw-datastore/src/worker.rs:426:15
stack backtrace:
0: backtrace::backtrace::libunwind::trace
at /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.44/src/backtrace/libunwind.rs:86
1: backtrace::backtrace::trace_unsynchronized
at /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.44/src/backtrace/mod.rs:66
2: std::sys_common::backtrace::_print_fmt
at src/libstd/sys_common/backtrace.rs:78
3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
at src/libstd/sys_common/backtrace.rs:59
4: core::fmt::write
at src/libcore/fmt/mod.rs:1052
5: std::io::Write::write_fmt
at /rustc/8aa9d2014f4e5258f83b907e8431c59a33acdae7/src/libstd/io/mod.rs:1428
6: std::io::impls::<impl std::io::Write for alloc::boxed::Box<W>>::write_fmt
at src/libstd/io/impls.rs:156
7: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:62
8: std::sys_common::backtrace::print
at src/libstd/sys_common/backtrace.rs:49
9: std::panicking::default_hook::{{closure}}
at src/libstd/panicking.rs:204
10: std::panicking::default_hook
at src/libstd/panicking.rs:221
11: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:470
12: rust_begin_unwind
at src/libstd/panicking.rs:378
13: core::panicking::panic_fmt
at src/libcore/panicking.rs:85
14: core::option::expect_none_failed
at src/libcore/option.rs:1211
15: core::result::Result<T,E>::unwrap
at /rustc/8aa9d2014f4e5258f83b907e8431c59a33acdae7/src/libcore/result.rs:1003
16: aw_datastore::worker::Datastore::get_keys_starting
at aw-datastore/src/worker.rs:426
17: aw_server::endpoints::settings::settings_list_get
at aw-server/src/endpoints/settings.rs:46
18: aw_server::endpoints::settings::rocket_route_fn_settings_list_get
at aw-server/src/endpoints/settings.rs:41
19: core::ops::function::Fn::call
20: <F as rocket::handler::Handler>::handle
21: rocket::rocket::Rocket::route
22: rocket::rocket::Rocket::route_and_process
23: rocket::rocket::Rocket::dispatch
24: base64::decode::decode_chunk_precise
25: rocket::local::request::LocalRequest::dispatch
at /Users/xylix/.cargo/registry/src/github.com-1ecc6299db9ec823/rocket-0.4.2/src/local/request.rs:356
26: api::api_tests::settings_list_get
at aw-server/tests/api.rs:389
27: api::api_tests::settings_list_get::{{closure}}
at aw-server/tests/api.rs:379
28: core::ops::function::FnOnce::call_once
at /rustc/8aa9d2014f4e5258f83b907e8431c59a33acdae7/src/libcore/ops/function.rs:232
29: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
at /rustc/8aa9d2014f4e5258f83b907e8431c59a33acdae7/src/liballoc/boxed.rs:1017
30: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:86
31: std::panicking::try
at /rustc/8aa9d2014f4e5258f83b907e8431c59a33acdae7/src/libstd/panicking.rs:281
32: std::panic::catch_unwind
at /rustc/8aa9d2014f4e5258f83b907e8431c59a33acdae7/src/libstd/panic.rs:394
33: test::run_test_in_process
at src/libtest/lib.rs:542
34: test::run_test::run_test_inner::{{closure}}
at src/libtest/lib.rs:451
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
failures:
api_tests::settings_list_get
test result: FAILED. 10 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment