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

Panic with error: IoErrorWrapper { path: "/proc/net/udp", inner: None } #84

Closed
desbma opened this issue Jan 7, 2020 · 2 comments
Closed

Comments

@desbma
Copy link

desbma commented Jan 7, 2020

I'm getting an error a few second after startup:

'display_handler' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Custom { kind: Other, error: IoErrorWrapper { path: "/proc/net/udp", inner: None } }, Some("/proc/net/udp"))', src/libcore/result.rs:1165:5

Full log with RUST_BACKTRACE=full (indentation is messed up): https://pastebin.com/raw/qGVpSjG0

Environment: Ubuntu 18.04 AMD64, up to date, with the 0.7.0 musl binary.

EDIT: /proc/net/udp exists and is readable.

@zhangxp1998
Copy link
Collaborator

zhangxp1998 commented Jan 8, 2020

Probably caused by this line

let tcp = ::procfs::net::tcp().unwrap();

I'm surprised that we are simply unwrap()ing stuff... Better to return None or empty vector instead.

zhangxp1998 added a commit to zhangxp1998/bandwhich that referenced this issue Jan 8, 2020
zhangxp1998 added a commit to zhangxp1998/bandwhich that referenced this issue Jan 8, 2020
zhangxp1998 added a commit to zhangxp1998/bandwhich that referenced this issue Jan 8, 2020
zhangxp1998 added a commit to zhangxp1998/bandwhich that referenced this issue Jan 8, 2020
zhangxp1998 added a commit to zhangxp1998/bandwhich that referenced this issue Jan 8, 2020
zhangxp1998 added a commit to zhangxp1998/bandwhich that referenced this issue Jan 8, 2020
@zhangxp1998
Copy link
Collaborator

Fixed by #88

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