-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
phantun always panicked when used in a few days #79
Comments
phantun_client side |
What kind of client do you have? I have never seen this error before and it will be helpful if you can provide more info. |
client system run in a kvm,Openwrt 21.02.3 from official. phantun_client version: start command: use case: |
Do you have high number of new UDP connections all the time? There is a small chance that Phantun might reuse an existing port number and that could cause this assertion failure you showed. How often does these |
About 2-3 |
Hi! Got same stack tonight:
OS is the Ubuntu 22.04.4 LTS:
Client version:
Start command:
Usage: |
…times to reduce the chance of paniking Fixes #79
…times to reduce the chance of paniking Fixes #79
Please give #162 a try, I think this will address your issue. If it works well, I will publish a new release with the fix. |
INFO client > New UDP client from 127.0.0.1:15497
INFO fake_tcp > Sent SYN to server
INFO fake_tcp > Connection to xxx.xxx.xxx.xxx:xxx established
INFO client > New UDP client from 127.0.0.1:63470
thread 'tokio-runtime-worker' panicked at 'assertion failed: tuples.insert(tuple, incoming.clone()).is_none()', /project/fake-tcp/src/lib.rs:425:13
note: run with
RUST_BACKTRACE=1
environment variable to display a backtracethread 'tokio-runtime-worker' panicked at 'called
Result::unwrap()
on anErr
value: PoisonError { .. }', fake-tcp/src/lib.rs:325:44stack backtrace:
0: 0x56c79d - std::backtrace_rs::backtrace::libunwind::trace::h081201764674ef17
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
1: 0x56c79d - std::backtrace_rs::backtrace::trace_unsynchronized::hebab37398c391bd7
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x56c79d - std::sys_common::backtrace::_print_fmt::h301516df68ed24f9
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:66:5
3: 0x56c79d - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h8f5170f4f03a12c0
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:45:22
4: 0x5a4cdc - core::fmt::write::h5dc5601e8d9f6367
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/fmt/mod.rs:1190:17
5: 0x565e88 - std::io::Write::write_fmt::h5b19302eb99d9acf
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/io/mod.rs:1657:15
6: 0x56ebe7 - std::sys_common::backtrace::_print::hd81cf53a75c8ae6a
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:48:5
7: 0x56ebe7 - std::sys_common::backtrace::print::hb5aa882e87c2a0dc
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:35:9
8: 0x56ebe7 - std::panicking::default_hook::{{closure}}::had913369af61b326
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:295:22
9: 0x56e8b0 - std::panicking::default_hook::h37b06af9ee965447
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:314:9
10: 0x56f339 - std::panicking::rust_panic_with_hook::hf2019958d21362cc
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:698:17
11: 0x56f027 - std::panicking::begin_panic_handler::{{closure}}::he9c06fdd592f8785
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:588:13
12: 0x56cc64 - std::sys_common::backtrace::__rust_end_short_backtrace::ha521b96560789310
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:138:18
13: 0x56ed39 - rust_begin_unwind
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:584:5
14: 0x40c363 - core::panicking::panic_fmt::h28f1697d4e9394b4
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panicking.rs:143:14
15: 0x40c3f3 - core::result::unwrap_failed::hea43ef43a7a8c801
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/result.rs:1749:5
16: 0x4c36b6 - <fake_tcp::Socket as core::ops::drop::Drop>::drop::h1a82aa2a762e6663
17: 0x42769d - core::ptr::drop_in_place<fake_tcp::Socket>::h9642bb5034846e49
18: 0x42d1d6 - client::main::{{closure}}::{{closure}}::hedb1c4db73446abe
19: 0x4108dd - tokio::runtime::task::harness::poll_future::h71e4629bb72ebffa
20: 0x40ec41 - tokio::runtime::task::harness::Harness<T,S>::poll::hd78d455ce817a0c4
21: 0x4fc9f0 - std::thread::local::LocalKey::with::h25d46ec2bd26319e
22: 0x4f3c0d - tokio::runtime::thread_pool::worker::Context::run_task::h89a72a6001d042f4
23: 0x4f2d8f - tokio::runtime::thread_pool::worker::Context::run::h902a2ffa1a9bd051
24: 0x4dea1b - tokio::macros::scoped_tls::ScopedKey::set::h60ccb18cf4ba637e
25: 0x4f280c - tokio::runtime::thread_pool::worker::run::hdaf5742befe30ba0
26: 0x4d80e1 - <tokio::runtime::blocking::task::BlockingTask as core::future::future::Future>::poll::h100ed8d5c3bf1cbf
27: 0x4d9b41 - tokio::runtime::task::harness::Harness<T,S>::poll::hbd3606d2e34d7e90
28: 0x4e2e83 - tokio::runtime::blocking::pool::Inner::run::ha389bc77b977d94f
29: 0x4e096c - std::sys_common::backtrace::__rust_begin_short_backtrace::he288b5cbf780ffc1
30: 0x4e987f - core::ops::function::FnOnce::call_once{{vtable.shim}}::he75549d8b045b827
31: 0x573043 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce>::call_once::hcf019fa04facec20
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/alloc/src/boxed.rs:1853:9
32: 0x573043 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce>::call_once::h5cc542c486f8c3f4
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/alloc/src/boxed.rs:1853:9
33: 0x573043 - std::sys::unix::thread::Thread::new::thread_start::h5d35ae99cebafa12
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys/unix/thread.rs:108:17
thread panicked while panicking. aborting.
The text was updated successfully, but these errors were encountered: