thread 'tokio-runtime-worker' panicked at 'overflow when subtracting duration from instant'
Summary
thread 'tokio-runtime-worker' panicked at 'overflow when subtracting duration from instant'
Steps to reproduce:
- Start arti proxy.
What is the current bug behavior?
thread 'tokio-runtime-worker' panicked at 'overflow when subtracting duration from instant', library/std/src/time.rs:425:2021-12-17T05:40:09.542190Z INFO arti::proxy: Listening on [::1]:9150.
33
stack backtrace:
0: 0x104107731 - std::backtrace_rs::backtrace::libunwind::trace::hd1f3f27a0ce98cd1
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
1: 0x104107731 - std::backtrace_rs::backtrace::trace_unsynchronized::hd569a01ac3d00854
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x104107731 - std::sys_common::backtrace::_print_fmt::h996dd958d6ad6e0c
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/sys_common/backtrace.rs:67:5
3: 0x104107731 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hd97b45925762f035
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/sys_common/backtrace.rs:46:22
4: 0x10412379b - core::fmt::write::h2d5ecb4b9764759c
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/core/src/fmt/mod.rs:1149:17
5: 0x1041010da - std::io::Write::write_fmt::h80cfd69766515533
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/io/mod.rs:1697:15
6: 0x104108eb5 - std::sys_common::backtrace::_print::h811beb019f458a3f
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/sys_common/backtrace.rs:49:5
7: 0x104108eb5 - std::sys_common::backtrace::print::h2568609b53248111
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/sys_common/backtrace.rs:36:9
8: 0x104108eb5 - std::panicking::default_hook::{{closure}}::h726902fd3b2e524f
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/panicking.rs:211:50
9: 0x104108a9f - std::panicking::default_hook::h8c88a86349ae0d96
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/panicking.rs:228:9
10: 0x1041095a0 - std::panicking::rust_panic_with_hook::h5cbc51010430491b
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/panicking.rs:606:17
11: 0x10410903e - std::panicking::begin_panic_handler::{{closure}}::hf90c83b4ac2013ae
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/panicking.rs:502:13
12: 0x104107bb7 - std::sys_common::backtrace::__rust_end_short_backtrace::hca90c3f3f4640bf8
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/sys_common/backtrace.rs:139:18
13: 0x104108faa - rust_begin_unwind
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/panicking.rs:498:5
14: 0x10413f85f - core::panicking::panic_fmt::h88a1b6fbb9084d2c
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/core/src/panicking.rs:107:14
15: 0x104121dbb - core::panicking::panic_display::hec0e0339ecb4d7ac
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/core/src/panicking.rs:63:5
16: 0x10413f76c - core::option::expect_failed::hbff261a7d3cf636c
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/core/src/option.rs:1663:5
17: 0x104106935 - core::option::Option<T>::expect::h851699524155b0c4
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/core/src/option.rs:710:21
18: 0x104106935 - <std::time::Instant as core::ops::arith::Sub<core::time::Duration>>::sub::h8cd0a6ee9a390be2
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/time.rs:425:9
19: 0x103b7ed76 - tor_circmgr::preemptive::PreemptiveCircuitPredictor::predict::h86b2f0b8b19ebc8e
at /Users/rex/arti/crates/tor-circmgr/src/preemptive.rs:57:22
20: 0x1036e89bf - tor_circmgr::CircMgr<R>::launch_circuits_preemptively::{{closure}}::h3fa8cfecff7083c0
at /Users/rex/arti/crates/tor-circmgr/src/lib.rs:331:14
21: 0x103580e60 - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h16572b3a97cf401c
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/core/src/future/mod.rs:80:19
22: 0x1035f3f6c - arti_client::client::continually_preemptively_build_circuits::{{closure}}::hee87ff943eef65a6
at /Users/rex/arti/crates/arti-client/src/client.rs:594:9
23: 0x1035812c0 - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h1ee26dc46954637d
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/core/src/future/mod.rs:80:19
24: 0x103e20f6b - <futures_task::future_obj::LocalFutureObj<T> as core::future::future::Future>::poll::h3b9d6f1f0f075ec4
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-task-0.3.18/src/future_obj.rs:84:18
25: 0x103e20ef6 - <futures_task::future_obj::FutureObj<T> as core::future::future::Future>::poll::h3c1a0ce3747ceccf
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-task-0.3.18/src/future_obj.rs:127:9
26: 0x103e21acc - tokio::runtime::task::core::CoreStage<T>::poll::{{closure}}::h47f7f9903efe9ba6
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/core.rs:161:17
27: 0x103e250ad - tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut::h99f12e8e230a9009
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/loom/std/unsafe_cell.rs:14:9
28: 0x103e21995 - tokio::runtime::task::core::CoreStage<T>::poll::h26e88ece61d81fcb
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/core.rs:151:13
29: 0x103e1e9d8 - tokio::runtime::task::harness::poll_future::{{closure}}::h16869ad3aca80628
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/harness.rs:461:19
30: 0x103e20b65 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h2680b6b2df40950c
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/core/src/panic/unwind_safe.rs:271:9
31: 0x103e1e0fa - std::panicking::try::do_call::h0af4f3f19adf4d5f
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/panicking.rs:406:40
32: 0x103e1e69d - <unknown>
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/panicking.rs:434:6
33: 0x103e1e036 - std::panicking::try::hd814776b91cc3ae8
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/panicking.rs:370:19
34: 0x103e2209c - std::panic::catch_unwind::hc82a0acb20f4f867
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/panic.rs:133:14
35: 0x103e1e859 - tokio::runtime::task::harness::poll_future::ha8f86448529c178c
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/harness.rs:449:18
36: 0x103e1ed0a - tokio::runtime::task::harness::Harness<T,S>::poll_inner::h9a5778c2ce898ba5
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/harness.rs:98:27
37: 0x103e1f9e5 - tokio::runtime::task::harness::Harness<T,S>::poll::h789e92d7726436da
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/harness.rs:53:15
38: 0x103e24252 - tokio::runtime::task::raw::poll::haa7ffea8ab4908ee
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/raw.rs:113:5
39: 0x103ea3b7e - tokio::runtime::task::raw::RawTask::poll::hf6ac9e636f22e1ac
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/raw.rs:70:18
40: 0x103e5ed92 - tokio::runtime::task::LocalNotified<S>::run::h50d1be28f1d8f723
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/mod.rs:343:9
41: 0x103eb669f - tokio::runtime::thread_pool::worker::Context::run_task::{{closure}}::h286ccaaf75e2d708
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/thread_pool/worker.rs:420:13
42: 0x103e87309 - tokio::coop::with_budget::{{closure}}::hcc607fcdcc5776b1
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/coop.rs:106:9
43: 0x103ebfa76 - std::thread::local::LocalKey<T>::try_with::haf4549904bb1acfd
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/thread/local.rs:413:16
44: 0x103ebf03c - std::thread::local::LocalKey<T>::with::h851fbeed62781895
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/thread/local.rs:389:9
45: 0x103eb65cc - tokio::coop::with_budget::h36ad67333f04d6b4
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/coop.rs:99:5
46: 0x103eb65cc - tokio::coop::budget::h7d4adf17837730db
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/coop.rs:76:5
47: 0x103eb65cc - tokio::runtime::thread_pool::worker::Context::run_task::h332f552470eb6b48
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/thread_pool/worker.rs:419:9
48: 0x103eb6013 - tokio::runtime::thread_pool::worker::Context::run::haf650d3823617e2d
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/thread_pool/worker.rs:386:24
49: 0x103eb5e75 - tokio::runtime::thread_pool::worker::run::{{closure}}::he197104a15a5e173
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/thread_pool/worker.rs:371:17
50: 0x103e5d746 - tokio::macros::scoped_tls::ScopedKey<T>::set::h42df14fb632354ec
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/macros/scoped_tls.rs:61:9
51: 0x103eb5dc6 - tokio::runtime::thread_pool::worker::run::ha8e58e49dc66de8e
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/thread_pool/worker.rs:368:5
52: 0x103eb5c71 - tokio::runtime::thread_pool::worker::Launch::launch::{{closure}}::h6cc22eb35068c630
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/thread_pool/worker.rs:347:45
53: 0x103ea430a - <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll::he54387f0c3d7c9dc
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/blocking/task.rs:42:21
54: 0x103ea275c - tokio::runtime::task::core::CoreStage<T>::poll::{{closure}}::hbec88538abafbd57
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/core.rs:161:17
55: 0x103e6abad - tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut::ha43b93ef8ee30f3a
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/loom/std/unsafe_cell.rs:14:9
56: 0x103ea25a5 - tokio::runtime::task::core::CoreStage<T>::poll::h3541c457f02425c5
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/core.rs:151:13
57: 0x103ebd8f8 - tokio::runtime::task::harness::poll_future::{{closure}}::h946abc358bc1e52b
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/harness.rs:461:19
58: 0x103e41085 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hcd1121c8918114a0
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/core/src/panic/unwind_safe.rs:271:9
59: 0x103e4047a - std::panicking::try::do_call::h9a6fe990c94171e1
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/panicking.rs:406:40
60: 0x103e40e7d - <unknown>
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/panicking.rs:441:2
61: 0x103e3ff29 - std::panicking::try::hb6b4609de32d30af
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/panicking.rs:370:19
62: 0x103eaff8c - std::panic::catch_unwind::h9ed6499484007814
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/panic.rs:133:14
63: 0x103ebd6e9 - tokio::runtime::task::harness::poll_future::hceda35af5e285967
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/harness.rs:449:18
64: 0x103ebbd72 - tokio::runtime::task::harness::Harness<T,S>::poll_inner::h6ee878228f431154
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/harness.rs:98:27
65: 0x103ebb9b5 - tokio::runtime::task::harness::Harness<T,S>::poll::h3a5836255341aed8
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/harness.rs:53:15
66: 0x103ea3ca2 - tokio::runtime::task::raw::poll::h9178bd5ddb6f93db
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/raw.rs:113:5
67: 0x103ea3b7e - tokio::runtime::task::raw::RawTask::poll::hf6ac9e636f22e1ac
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/raw.rs:70:18
68: 0x103e5ee2e - tokio::runtime::task::UnownedTask<S>::run::hd551b1af9130ec52
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/mod.rs:379:9
69: 0x103e9a92a - tokio::runtime::blocking::pool::Inner::run::hbbf859ef21bdbdcc
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/blocking/pool.rs:264:17
70: 0x103e99f19 - tokio::runtime::blocking::pool::Spawner::spawn_thread::{{closure}}::hc9dbfedf90283c37
at /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/blocking/pool.rs:244:17
71: 0x103e41142 - std::sys_common::backtrace::__rust_begin_short_backtrace::h1f7f23289dec0fcf
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/sys_common/backtrace.rs:123:18
72: 0x103ec1322 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h38a29ae4a6a6d216
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/thread/mod.rs:484:17
73: 0x103e41032 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::ha5d19a887041aa7f
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/core/src/panic/unwind_safe.rs:271:9
74: 0x103e401d4 - std::panicking::try::do_call::h0e7d88988db0f1a9
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/panicking.rs:406:40
75: 0x103e40e7d - <unknown>
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/panicking.rs:441:2
76: 0x103e3fd6f - std::panicking::try::ha3ffb9822578952b
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/panicking.rs:370:19
77: 0x103eb00b2 - std::panic::catch_unwind::hd69ddf78fd9a67b6
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/panic.rs:133:14
78: 0x103ec1120 - std::thread::Builder::spawn_unchecked::{{closure}}::h22f9d492d26fec17
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/thread/mod.rs:483:30
79: 0x103e6e421 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h8280f1b19c2e7a1f
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/core/src/ops/function.rs:227:5
80: 0x10410c887 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h0321c34a780dd2de
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/alloc/src/boxed.rs:1811:9
81: 0x10410c887 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h01da57df1d6a06c2
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/alloc/src/boxed.rs:1811:9
82: 0x10410c887 - std::sys::unix::thread::Thread::new::thread_start::h93c43f15232a2328
at /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/library/std/src/sys/unix/thread.rs:108:17
83: 0x7ff80fcbd4f4 - __pthread_start
What is the expected behavior?
arti does not panic.
Environment
- Version: arti @ 0577eac0
- Operating system: macOS 12.2 (21D5025f)
- Install method: git
- Rust: rustc 1.59.0-nightly (efec54529 2021-12-04)