Skip to content

panics on MalformedNlsValue #2

@alex179ohm

Description

@alex179ohm

panics on malformed NlsValue

thread 'main' panicked at 'called Result::unwrap() on an Err value: MalformedNlaValue', src/libcore/result.rs:997:5
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:71
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:59
at src/libstd/panicking.rs:197
3: std::panicking::default_hook
at src/libstd/panicking.rs:211
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:474
5: std::panicking::continue_panic_fmt
at src/libstd/panicking.rs:381
6: rust_begin_unwind
at src/libstd/panicking.rs:308
7: core::panicking::panic_fmt
at src/libcore/panicking.rs:85
8: core::result::unwrap_failed
at /rustc/e68bf8ae15ee6c052d0bcc9252386c5c5ee86de2/src/libcore/macros.rs:16
9: <core::result::Result<T, E>>::unwrap
at /rustc/e68bf8ae15ee6c052d0bcc9252386c5c5ee86de2/src/libcore/result.rs:798
10: <rtnetlink::codecs::NetlinkCodecrtnetlink::packets::message::NetlinkMessage as tokio_io::codec::decoder::Decoder>::decode
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/rtnetlink-0.0.3/src/codecs.rs:72
11: <rtnetlink::framed::NetlinkFramed as futures::stream::Stream>::poll
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/rtnetlink-0.0.3/src/framed.rs:46
12: <iproute2::connection::connection::Connection as futures::future::Future>::poll
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/iproute2-0.0.2/src/connection/connection.rs:180
13: <futures::future::map_err::MapErr<A, F> as futures::future::Future>::poll
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/future/map_err.rs:30
14: <alloc::boxed::Box as futures::future::Future>::poll
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/future/mod.rs:113
15: <futures::task_impl::Spawn>::poll_future_notify::{{closure}}
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/task_impl/mod.rs:326
16: <futures::task_impl::Spawn>::enter::{{closure}}
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/task_impl/mod.rs:396
17: futures::task_impl::std::set
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/task_impl/std/mod.rs:78
18: <futures::task_impl::Spawn>::enter
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/task_impl/mod.rs:396
19: <futures::task_impl::Spawn>::poll_fn_notify
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/task_impl/mod.rs:288
20: <futures::task_impl::Spawn>::poll_future_notify
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.25/src/task_impl/mod.rs:326
21: <tokio_current_thread::scheduler::Scheduled<'a, U>>::tick
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.5/src/scheduler.rs:351
22: <tokio_current_thread::scheduler::Scheduler>::tick::{{closure}}
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.5/src/scheduler.rs:330
23: <tokio_current_thread::Borrow<'a, U>>::enter::{{closure}}::{{closure}}
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.5/src/lib.rs:769
24: tokio_current_thread::CurrentRunner::set_spawn
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.5/src/lib.rs:806
25: <tokio_current_thread::Borrow<'a, U>>::enter::{{closure}}
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.5/src/lib.rs:769
26: <std::thread::local::LocalKey>::try_with
at /rustc/e68bf8ae15ee6c052d0bcc9252386c5c5ee86de2/src/libstd/thread/local.rs:299
27: <std::thread::local::LocalKey>::with
at /rustc/e68bf8ae15ee6c052d0bcc9252386c5c5ee86de2/src/libstd/thread/local.rs:245
28: <tokio_current_thread::Borrow<'a, U>>::enter
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.5/src/lib.rs:767
29: <tokio_current_thread::scheduler::Scheduler>::tick
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.5/src/scheduler.rs:330
30: <tokio_current_thread::Entered<'a, P>>::tick
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.5/src/lib.rs:602
31: <tokio_current_thread::Entered<'a, P>>::turn
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.5/src/lib.rs:529
32: tokio_core::reactor::Core::poll::{{closure}}::{{closure}}::{{closure}}::{{closure}}
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-core-0.1.17/src/reactor/mod.rs:298
33: <scoped_tls::ScopedKey>::set
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped-tls-0.1.2/src/lib.rs:155
34: tokio_core::reactor::Core::poll::{{closure}}::{{closure}}::{{closure}}
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-core-0.1.17/src/reactor/mod.rs:297
35: tokio_timer::timer::handle::with_default::{{closure}}
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-timer-0.2.10/src/timer/handle.rs:94
36: <std::thread::local::LocalKey>::try_with
at /rustc/e68bf8ae15ee6c052d0bcc9252386c5c5ee86de2/src/libstd/thread/local.rs:299
37: <std::thread::local::LocalKey>::with
at /rustc/e68bf8ae15ee6c052d0bcc9252386c5c5ee86de2/src/libstd/thread/local.rs:245
38: tokio_timer::timer::handle::with_default
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-timer-0.2.10/src/timer/handle.rs:81
39: tokio_core::reactor::Core::poll::{{closure}}::{{closure}}
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-core-0.1.17/src/reactor/mod.rs:275
40: tokio_executor::global::with_default::{{closure}}
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-executor-0.1.6/src/global.rs:192
41: <std::thread::local::LocalKey>::try_with
at /rustc/e68bf8ae15ee6c052d0bcc9252386c5c5ee86de2/src/libstd/thread/local.rs:299
42: <std::thread::local::LocalKey>::with
at /rustc/e68bf8ae15ee6c052d0bcc9252386c5c5ee86de2/src/libstd/thread/local.rs:245
43: tokio_executor::global::with_default
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-executor-0.1.6/src/global.rs:162
44: tokio_core::reactor::Core::poll::{{closure}}
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-core-0.1.17/src/reactor/mod.rs:274
45: tokio_reactor::with_default::{{closure}}
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-reactor-0.1.9/src/lib.rs:237
46: <std::thread::local::LocalKey>::try_with
at /rustc/e68bf8ae15ee6c052d0bcc9252386c5c5ee86de2/src/libstd/thread/local.rs:299
47: <std::thread::local::LocalKey>::with
at /rustc/e68bf8ae15ee6c052d0bcc9252386c5c5ee86de2/src/libstd/thread/local.rs:245
48: tokio_reactor::with_default
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-reactor-0.1.9/src/lib.rs:217
49: tokio_core::reactor::Core::poll
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-core-0.1.17/src/reactor/mod.rs:273
50: tokio_core::reactor::Core::run
at /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-core-0.1.17/src/reactor/mod.rs:248
51: net_tools::NetRequest::get
at src/lib.rs:19
52: net_tools::main
at src/main.rs:61
53: std::rt::lang_start::{{closure}}
at /rustc/e68bf8ae15ee6c052d0bcc9252386c5c5ee86de2/src/libstd/rt.rs:64
54: std::panicking::try::do_call
at src/libstd/rt.rs:49
at src/libstd/panicking.rs:293
55: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:87
56: std::rt::lang_start_internal
at src/libstd/panicking.rs:272
at src/libstd/panic.rs:388
at src/libstd/rt.rs:48
57: std::rt::lang_start
at /rustc/e68bf8ae15ee6c052d0bcc9252386c5c5ee86de2/src/libstd/rt.rs:64
58: main
59: __libc_start_main
60: _start

~ rustc --version
rustc 1.35.0-nightly (e68bf8ae1 2019-03-11)

~ /lib64/libc.so.6
GNU C Library (GNU libc) stable release version 2.28.
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 8.2.1 20181105 (Red Hat 8.2.1-5).

~ uname -a
Linux localhost.localdomain 4.20.14-200.fc29.x86_64 #1 SMP Tue Mar 5 19:55:32 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Maybe a rtnetlink crate problem on the tokio_io::codec::decoder implementation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions