Skip to content
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

panicked at 'index out of bounds: the len is 16 but the index is 22', #639

Open
fivlao opened this issue Aug 14, 2023 · 1 comment
Open

Comments

@fivlao
Copy link

fivlao commented Aug 14, 2023

proc arch: x86_64
CPU modes: 32-bit, 64-bit
I try to get packet from interface but when I call next() I get an error(

thread 'XXX' panicked at 'index out of bounds: the len is 16 but the index is 22', /home/XXX/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.147/src/unix/linux_like/mod.rs:1582:9
stack backtrace:
   0: rust_begin_unwind
         at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panicking.rs:579:5
   1: core::panicking::panic_fmt
         at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/core/src/panicking.rs:64:14
   2: core::panicking::panic_bounds_check
         at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/core/src/panicking.rs:159:5
   3: libc::unix::linux_like::FD_SET
         at /home/oleh/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.147/src/unix/linux_like/mod.rs:1582:9
   4: <pnet_datalink::backend::DataLinkReceiverImpl as pnet_datalink::DataLinkReceiver>::next
         at /home/oleh/.cargo/registry/src/github.com-1ecc6299db9ec823/pnet_datalink-0.34.0/src/linux.rs:342:13
@nemosupremo
Copy link

Is there a workaround for this? Or an explanation to why this happens?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants