You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
I tried the server/client example and while the server example seems to work fine, the client panics. Here's the backtrace I see when running cargo run --example client:
quic/picoquic/quicctx.c:1827 [picoquic_connection_error]: Protocol error 12e
oquic/picoquic/packet.c:412 [picoquic_decrypt_packet]: PN dec not ready, type: 6, epoch: 3, pc: 0, pn: -1
oquic/picoquic/packet.c:1635 [picoquic_incoming_segment]: Packet (1) dropped, t: 6, e: 3, pc: 0, pn: -1, l: 245, ret : 403
oquic/picoquic/packet.c:412 [picoquic_decrypt_packet]: PN dec not ready, type: 6, epoch: 3, pc: 0, pn: -1
oquic/picoquic/packet.c:1635 [picoquic_incoming_segment]: Packet (1) dropped, t: 6, e: 3, pc: 0, pn: -1, l: 1440, ret : 403
thread 'main' panicked at 'new connection: Error { inner: stack backtrace:
0: 0x10053f334 - backtrace::backtrace::trace::h59004a80ac5904df
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.9/src/backtrace/mod.rs:42
1: 0x10053a0fc - backtrace::capture::Backtrace::new_unresolved::h0f355ed353b17a17
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.9/src/capture.rs:88
2: 0x1005378e3 - failure::backtrace::internal::InternalBacktrace::new::h310921035eb49077
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.3/src/backtrace/internal.rs:44
3: 0x10053959e - failure::backtrace::Backtrace::new::h67a299584204dab6
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.3/src/backtrace/mod.rs:111
4: 0x1003f7361 - <failure::context::Context<D>>::new::h73662d7d9a74b1df
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.3/src/context.rs:84
5: 0x1003e7b48 - <picoquic::error::Error as core::convert::From<picoquic::error::ErrorKind>>::from::h322676e63bdc8711
at /Users/dvd/dev/rust/picoquic-rs/src/error.rs:42
6: 0x1003e86f9 - <T as core::convert::Into<U>>::into::he66031be82637859
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libcore/convert.rs:455
7: 0x1003d51c4 - picoquic::ffi::connection::Connection::error::{{closure}}::he818069d17c2c059
at /Users/dvd/dev/rust/picoquic-rs/src/ffi/connection.rs:244
8: 0x1003d26d9 - picoquic::connection::Context::check_and_handle_error::h4562fe59179d250c
at /Users/dvd/dev/rust/picoquic-rs/src/connection.rs:395
9: 0x1003d2cb3 - picoquic::connection::recv_data_callback::hd3b0d11f648d96aa
at /Users/dvd/dev/rust/picoquic-rs/src/connection.rs:452
10: 0x1004eb6b4 - _picoquic_prepare_packet_closing
at /Users/dvd/dev/rust/picoquic-rs/picoquic-sys/src/picoquic/picoquic/sender.c:1915
11: 0x1004ecd4d - _picoquic_prepare_segment
at /Users/dvd/dev/rust/picoquic-rs/picoquic-sys/src/picoquic/picoquic/sender.c:2321
12: 0x1004ed80a - _picoquic_prepare_packet
at /Users/dvd/dev/rust/picoquic-rs/picoquic-sys/src/picoquic/picoquic/sender.c:2554
13: 0x1003d389a - picoquic::ffi::connection::Connection::prepare_packet::hd26b1df08f81edd9
at /Users/dvd/dev/rust/picoquic-rs/src/ffi/connection.rs:113
14: 0x1003f5766 - picoquic::context_inner::ContextInner::send_connection_packets::hecb254f57169e3f3
at /Users/dvd/dev/rust/picoquic-rs/src/context_inner.rs:143
15: 0x1003f6542 - <picoquic::context_inner::ContextInner as futures::future::Future>::poll::hae996ecca60f9022
at /Users/dvd/dev/rust/picoquic-rs/src/context_inner.rs:231
16: 0x100561594 - <alloc::boxed::Box<F> as futures::future::Future>::poll::hab7193f835b2a424
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/future/mod.rs:113
17: 0x100471cb4 - <futures::task_impl::Spawn<T>>::poll_future_notify::{{closure}}::h1ed10dbab68e943e
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/task_impl/mod.rs:326
18: 0x100471f8f - <futures::task_impl::Spawn<T>>::enter::{{closure}}::h6550e276c7ef55ca
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/task_impl/mod.rs:396
19: 0x1004666c6 - futures::task_impl::std::set::ha937407cc1b02bf0
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/task_impl/std/mod.rs:78
20: 0x100471f07 - <futures::task_impl::Spawn<T>>::enter::h89a8a3532348e134
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/task_impl/mod.rs:396
21: 0x100471b77 - <futures::task_impl::Spawn<T>>::poll_fn_notify::ha0227343890a80e9
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/task_impl/mod.rs:288
22: 0x100471c44 - <futures::task_impl::Spawn<T>>::poll_future_notify::h726598c52ac51a45
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/task_impl/mod.rs:326
23: 0x10047bd5c - tokio_threadpool::task::Task::run::{{closure}}::h5db7fdd346aa48c0
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.8/src/task/mod.rs:127
24: 0x1004638ec - core::ops::function::FnOnce::call_once::h7e795c29ea090be5
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libcore/ops/function.rs:238
25: 0x10046dda7 - <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb88052966bc8c263
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/panic.rs:319
26: 0x100474d14 - std::panicking::try::do_call::hd2f10fef0dbd0780
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/panicking.rs:310
27: 0x10058641e - ___rust_maybe_catch_panic
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libpanic_unwind/lib.rs:102
28: 0x100474ad2 - std::panicking::try::h2e2de31ba1d2b78f
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/panicking.rs:289
29: 0x10046e21e - std::panic::catch_unwind::h48c62e6f5c2e30bf
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/panic.rs:398
30: 0x10047b7fb - tokio_threadpool::task::Task::run::h38f683dbb6cb5884
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.8/src/task/mod.rs:113
31: 0x100453df9 - tokio_threadpool::worker::Worker::run_task2::h63a16bdafd8b66ad
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.8/src/worker/mod.rs:550
32: 0x1004538c1 - tokio_threadpool::worker::Worker::run_task::hd3908e997f7326c6
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.8/src/worker/mod.rs:451
33: 0x10045317c - tokio_threadpool::worker::Worker::try_run_owned_task::h9f44c0c9d79cf138
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.8/src/worker/mod.rs:391
34: 0x100452bbc - tokio_threadpool::worker::Worker::try_run_task::ha20ed9de805b2923
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.8/src/worker/mod.rs:299
35: 0x100452a30 - tokio_threadpool::worker::Worker::run::hd3b08bdb6e3972c1
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.8/src/worker/mod.rs:240
36: 0x1004015ab - tokio::runtime::builder::Builder::build::{{closure}}::{{closure}}::{{closure}}::{{closure}}::h6472407278ff7e70
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.1.11/src/runtime/builder.rs:238
37: 0x10040d8b9 - tokio_timer::timer::handle::with_default::{{closure}}::hf3f24103450292d7
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-timer-0.2.7/src/timer/handle.rs:94
38: 0x100408ca8 - <std::thread::local::LocalKey<T>>::try_with::h0ffbd64876b356a3
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/thread/local.rs:309
39: 0x1004089af - <std::thread::local::LocalKey<T>>::with::h34476c2dd0bd4fe9
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/thread/local.rs:255
40: 0x10040d74b - tokio_timer::timer::handle::with_default::he3544174ed0b2eda
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-timer-0.2.7/src/timer/handle.rs:81
41: 0x1004015ec - tokio::runtime::builder::Builder::build::{{closure}}::{{closure}}::{{closure}}::hd9b5cb9282521ceb
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.1.11/src/runtime/builder.rs:237
42: 0x100405b28 - tokio_timer::clock::clock::with_default::{{closure}}::h6bdfcf513c8222bc
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-timer-0.2.7/src/clock/clock.rs:136
43: 0x1004090c2 - <std::thread::local::LocalKey<T>>::try_with::h7bff254c4e62f5cd
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/thread/local.rs:309
44: 0x100408a17 - <std::thread::local::LocalKey<T>>::with::h4b27e77cb6d623ed
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/thread/local.rs:255
45: 0x100405a4a - tokio_timer::clock::clock::with_default::h620468c09fec45cb
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-timer-0.2.7/src/clock/clock.rs:119
46: 0x100401635 - tokio::runtime::builder::Builder::build::{{closure}}::{{closure}}::h2320985ec3c1989c
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.1.11/src/runtime/builder.rs:236
47: 0x10040dbe6 - tokio_reactor::with_default::{{closure}}::h9c432f17b828857a
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-reactor-0.1.6/src/lib.rs:229
48: 0x1004092e7 - <std::thread::local::LocalKey<T>>::try_with::hf4d7baf1de81bd21
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/thread/local.rs:309
49: 0x100408a7a - <std::thread::local::LocalKey<T>>::with::h60f4ed0c6ddd17e8
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/thread/local.rs:255
50: 0x10040d9f6 - tokio_reactor::with_default::hbe394c9498eeee75
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-reactor-0.1.6/src/lib.rs:212
51: 0x100401756 - tokio::runtime::builder::Builder::build::{{closure}}::hbfa08239bf7d7394
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.1.11/src/runtime/builder.rs:235
52: 0x1004796c5 - tokio_threadpool::callback::Callback::call::h57f54d810d209ade
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.8/src/callback.rs:21
53: 0x100452717 - tokio_threadpool::worker::Worker::do_run::{{closure}}::{{closure}}::h576e2095e8dc94bf
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.8/src/worker/mod.rs:122
54: 0x10045c172 - tokio_executor::global::with_default::{{closure}}::h728bde76af5e138d
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-executor-0.1.5/src/global.rs:192
55: 0x10045cb94 - <std::thread::local::LocalKey<T>>::try_with::h12d4f7fbad62cbe5
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/thread/local.rs:309
56: 0x10045c8ef - <std::thread::local::LocalKey<T>>::with::h6174605f61970614
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/thread/local.rs:255
57: 0x10045c06e - tokio_executor::global::with_default::hcc479509edb29373
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-executor-0.1.5/src/global.rs:162
58: 0x1004527b6 - tokio_threadpool::worker::Worker::do_run::{{closure}}::h01e12d0955409e1a
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.8/src/worker/mod.rs:120
59: 0x10045d3c9 - <std::thread::local::LocalKey<T>>::try_with::h5ae194510b1c2ca9
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/thread/local.rs:309
60: 0x10045c83c - <std::thread::local::LocalKey<T>>::with::h09516b407332c05f
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/thread/local.rs:255
61: 0x100452606 - tokio_threadpool::worker::Worker::do_run::h5e08f8996ba68ca5
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.8/src/worker/mod.rs:111
62: 0x100451030 - tokio_threadpool::pool::Pool::spawn_thread::{{closure}}::h29ab259f59d98b1a
at /Users/dvd/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.8/src/pool/mod.rs:423
63: 0x10046e1e7 - std::sys_common::backtrace::__rust_begin_short_backtrace::h5d9ec08c9964b10a
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/sys_common/backtrace.rs:136
64: 0x10047a177 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h2a4b34422ee819bb
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/thread/mod.rs:477
65: 0x10046dd77 - <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h926e51feaf038e85
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/panic.rs:319
66: 0x100474ca4 - std::panicking::try::do_call::h5f7b7c07c5007121
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/panicking.rs:310
67: 0x10058641e - ___rust_maybe_catch_panic
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libpanic_unwind/lib.rs:102
68: 0x100474bc4 - std::panicking::try::h70d1b70735bda141
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/panicking.rs:289
69: 0x10046e257 - std::panic::catch_unwind::h9b60373dd5d21f5e
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/panic.rs:398
70: 0x100479fd0 - std::thread::Builder::spawn_unchecked::{{closure}}::h08edd5d0e1b9d0ea
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/thread/mod.rs:476
71: 0x10047a78f - <F as alloc::boxed::FnBox<A>>::call_box::h0c4bed5f28981b24
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/liballoc/boxed.rs:673
72: 0x10057a90b - std::sys::unix::thread::Thread::new::thread_start::ha4ef7d007e07cba6
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/sys_common/thread.rs:24
73: 0x7fff5f769338 - __pthread_body
74: 0x7fff5f76c2a6 - __pthread_start
An error occurred in the TLS handshake. }', libcore/result.rs:1009:5
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
1: std::sys_common::backtrace::_print
at libstd/sys_common/backtrace.rs:71
2: std::panicking::default_hook::{{closure}}
at libstd/sys_common/backtrace.rs:59
at libstd/panicking.rs:211
3: std::panicking::default_hook
at libstd/panicking.rs:227
4: <std::panicking::begin_panic::PanicPayload<A> as core::panic::BoxMeUp>::get
at libstd/panicking.rs:476
5: std::panicking::continue_panic_fmt
at libstd/panicking.rs:390
6: std::panicking::try::do_call
at libstd/panicking.rs:325
7: core::char::methods::<impl char>::escape_debug
at libcore/panicking.rs:77
8: core::result::unwrap_failed
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libcore/macros.rs:26
9: <core::result::Result<T, E>>::expect
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libcore/result.rs:835
10: client::main
at examples/client.rs:19
11: std::rt::lang_start::{{closure}}
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/rt.rs:74
12: std::panicking::try::do_call
at libstd/rt.rs:59
at libstd/panicking.rs:310
13: panic_unwind::dwarf::eh::read_encoded_pointer
at libpanic_unwind/lib.rs:102
14: <std::panicking::begin_panic::PanicPayload<A> as core::panic::BoxMeUp>::get
at libstd/panicking.rs:289
at libstd/panic.rs:398
at libstd/rt.rs:58
15: std::rt::lang_start
at /rustc/6f93e93af6f823948cc13d2938957757c6486d88/src/libstd/rt.rs:74
16: client::main
The text was updated successfully, but these errors were encountered:
I tried the server/client example and while the server example seems to work fine, the client panics. Here's the backtrace I see when running
cargo run --example client
:The text was updated successfully, but these errors were encountered: