Open er0k opened 1 year ago
Hi there,
dnspeep crashed on me with the following error:
thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', src/main.rs:283:29
I'm using v0.1.3 on a debian 11 host. I'm not sure the exact query that caused it.
RUST_BACKTRACE=full gave this:
RUST_BACKTRACE=full
thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', src/main.rs:283:29 stack backtrace: 0: 0x55fc0c437bac - std::backtrace_rs::backtrace::libunwind::trace::h093d4af0eabdfc15 at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 1: 0x55fc0c437bac - std::backtrace_rs::backtrace::trace_unsynchronized::h2b90813d74c759ca at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: 0x55fc0c437bac - std::sys_common::backtrace::_print_fmt::hfaa8856bf3eca13f at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/std/src/sys_common/backtrace.rs:67:5 3: 0x55fc0c437bac - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h0cbaef3adcb5a454 at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/std/src/sys_common/backtrace.rs:46:22 4: 0x55fc0c453f0c - core::fmt::write::h35a8eb836b847360 at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/core/src/fmt/mod.rs:1149:17 5: 0x55fc0c4339b5 - std::io::Write::write_fmt::h45f2b8390f189782 at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/std/src/io/mod.rs:1697:15 6: 0x55fc0c439780 - std::sys_common::backtrace::_print::h56f62073b0e62985 at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/std/src/sys_common/backtrace.rs:49:5 7: 0x55fc0c439780 - std::sys_common::backtrace::print::h152fba05ec38941b at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/std/src/sys_common/backtrace.rs:36:9 8: 0x55fc0c439780 - std::panicking::default_hook::{{closure}}::ha3121a0b8482251f at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/std/src/panicking.rs:211:50 9: 0x55fc0c439335 - std::panicking::default_hook::hde5d78c11ae3b8f6 at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/std/src/panicking.rs:228:9 10: 0x55fc0c439e34 - std::panicking::rust_panic_with_hook::he6f55c3e7ed1777c at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/std/src/panicking.rs:606:17 11: 0x55fc0c439910 - std::panicking::begin_panic_handler::{{closure}}::h4b51effcc76f0c14 at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/std/src/panicking.rs:502:13 12: 0x55fc0c438074 - std::sys_common::backtrace::__rust_end_short_backtrace::haae2fe666128308b at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/std/src/sys_common/backtrace.rs:139:18 13: 0x55fc0c439879 - rust_begin_unwind at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/std/src/panicking.rs:498:5 14: 0x55fc0c3bc631 - core::panicking::panic_fmt::h6434c641853e4979 at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/core/src/panicking.rs:107:14 15: 0x55fc0c3bc5f2 - core::panicking::panic_bounds_check::hd2e90cd3a5796c1e at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/core/src/panicking.rs:75:5 16: 0x55fc0c3c1030 - dnspeep::print_packet::h9985260f066d850e 17: 0x55fc0c3bfc6b - <dnspeep::PrintCodec as pcap::stream::PacketCodec>::decode::ha260d4f958e3b203 18: 0x55fc0c3d04d5 - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::hed3e041945391826 19: 0x55fc0c3d202b - tokio::runtime::thread_pool::ThreadPool::block_on::hcf8432d7d01f7b1a 20: 0x55fc0c3c3611 - tokio::runtime::context::enter::h00a39a78da050049 21: 0x55fc0c3cdf5c - tokio::runtime::handle::Handle::enter::h410d8a5f4625952c 22: 0x55fc0c3c2607 - dnspeep::main::hc1f6200c9eb8a3af 23: 0x55fc0c3c6203 - std::sys_common::backtrace::__rust_begin_short_backtrace::h5437e2fc43d81ce6 24: 0x55fc0c3c621d - std::rt::lang_start::{{closure}}::h79c1b7b898fd4d67 25: 0x55fc0c43783b - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h7422298f811ee14d at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/core/src/ops/function.rs:259:13 26: 0x55fc0c43783b - std::panicking::try::do_call::hcba55cf6d5b5533e at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/std/src/panicking.rs:406:40 27: 0x55fc0c43783b - std::panicking::try::h0b2a05128a4ee609 at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/std/src/panicking.rs:370:19 28: 0x55fc0c43783b - std::panic::catch_unwind::he1deef49e02fb06c at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/std/src/panic.rs:133:14 29: 0x55fc0c43783b - std::rt::lang_start_internal::{{closure}}::hf44e73ef18e45ffd at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/std/src/rt.rs:128:48 30: 0x55fc0c43783b - std::panicking::try::do_call::h894daf8a782b48f4 at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/std/src/panicking.rs:406:40 31: 0x55fc0c43783b - std::panicking::try::hd3e4f8d86f3a7fb5 at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/std/src/panicking.rs:370:19 32: 0x55fc0c43783b - std::panic::catch_unwind::h2e69404746fb3d50 at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/std/src/panic.rs:133:14 33: 0x55fc0c43783b - std::rt::lang_start_internal::hec7f1b06f38d8409 at /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40/library/std/src/rt.rs:128:20 34: 0x55fc0c3c2712 - main 35: 0x7f285cfd0d0a - __libc_start_main 36: 0x55fc0c3bce2e - _start 37: 0x0 - <unknown>
Hi there,
dnspeep crashed on me with the following error:
I'm using v0.1.3 on a debian 11 host. I'm not sure the exact query that caused it.
RUST_BACKTRACE=full
gave this: