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 at start #25

Closed
nothingnesses opened this issue Oct 7, 2019 · 4 comments
Closed

Panic at start #25

nothingnesses opened this issue Oct 7, 2019 · 4 comments

Comments

@nothingnesses
Copy link

Reproduction

Click to expand
$ export RUST_BACKTRACE=full && procs
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "Failed to parse patch version"', src/libcore/result.rs:1084:5
stack backtrace:
   0:     0x55756d533a2b - backtrace::backtrace::libunwind::trace::h89fcc71e59e3bc5b
                               at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.34/src/backtrace/libunwind.rs:88
   1:     0x55756d533a2b - backtrace::backtrace::trace_unsynchronized::h0bad9be1379e729a
                               at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.34/src/backtrace/mod.rs:66
   2:     0x55756d533a2b - std::sys_common::backtrace::_print::hd3382a1f33c473da
                               at src/libstd/sys_common/backtrace.rs:47
   3:     0x55756d533a2b - std::sys_common::backtrace::print::h0ec6f03cfb8e76a6
                               at src/libstd/sys_common/backtrace.rs:36
   4:     0x55756d533a2b - std::panicking::default_hook::{{closure}}::h96cbf7b454e3f557
                               at src/libstd/panicking.rs:200
   5:     0x55756d533706 - std::panicking::default_hook::h95a8f00337383d83
                               at src/libstd/panicking.rs:214
   6:     0x55756d53419d - std::panicking::rust_panic_with_hook::h92f98b46e22f14ed
                               at src/libstd/panicking.rs:477
   7:     0x55756d533d22 - std::panicking::continue_panic_fmt::h25abfbb4e5b7043a
                               at src/libstd/panicking.rs:384
   8:     0x55756d533c06 - rust_begin_unwind
                               at src/libstd/panicking.rs:311
   9:     0x55756d5540dd - core::panicking::panic_fmt::h7e9f94035af782b3
                               at src/libcore/panicking.rs:85
  10:     0x55756d5541d7 - core::result::unwrap_failed::hf7591c1dd9412006
                               at src/libcore/result.rs:1084
  11:     0x55756d51a216 - procfs::read_value::h70a8ff1975a3c93a
  12:     0x55756d517200 - std::sync::once::Once::call_once::{{closure}}::hadc97d58692f4440
  13:     0x55756d530a28 - std::sync::once::Once::call_inner::hd4f4cc742be97eac
                               at src/libstd/sync/once.rs:392
  14:     0x55756d503545 - procfs::process::Stat::from_reader::h28f3fd54348fb299
  15:     0x55756d50d951 - procfs::process::Process::new::h61a59629ef0fe709
  16:     0x55756d510440 - procfs::process::all_processes::h923c0e72a0b03083
  17:     0x55756d363a92 - procs::process::linux::collect_proc::h667da0c79d421ec6
  18:     0x55756d3fa0c4 - procs::gen_columns::h56dcbd5bb859276c
  19:     0x55756d401278 - procs::run::h710be2ae681f2ff3
  20:     0x55756d3fc152 - procs::main::hc6baa929f9ca3929
  21:     0x55756d406213 - std::rt::lang_start::{{closure}}::he8b7288d0c12e9d6
  22:     0x55756d533ba3 - std::rt::lang_start_internal::{{closure}}::h4e93c1949c7a1955
                               at src/libstd/rt.rs:49
  23:     0x55756d533ba3 - std::panicking::try::do_call::h9440ccd4dc467eaa
                               at src/libstd/panicking.rs:296
  24:     0x55756d53b6aa - __rust_maybe_catch_panic
                               at src/libpanic_unwind/lib.rs:80
  25:     0x55756d5346ad - std::panicking::try::hc046e7ee42ee744f
                               at src/libstd/panicking.rs:275
  26:     0x55756d5346ad - std::panic::catch_unwind::h27dfc457c200aee0
                               at src/libstd/panic.rs:394
  27:     0x55756d5346ad - std::rt::lang_start_internal::hea1b49a567afe309
                               at src/libstd/rt.rs:48
  28:     0x55756d405562 - main
  29:     0x7f2904487deb - __libc_start_main
                               at ../csu/libc-start.c:308
  30:     0x55756d34d17a - _start
  31:                0x0 - <unknown>

System information

Click to expand
$ uname -a
Linux a 5.2.19_1 #1 SMP PREEMPT Sun Oct 6 07:54:23 UTC 2019 x86_64 GNU/Linux
$ procs --version
procs 0.8.10

Other information

procs was installed with cargo install procs.

@dalance
Copy link
Owner

dalance commented Oct 7, 2019

Thank you for your report.
Could you execute cat /proc/sys/kernel/osrelease ?

@nothingnesses
Copy link
Author

Sure thing!

$ cat /proc/sys/kernel/osrelease
5.2.19_1

@dalance
Copy link
Owner

dalance commented Oct 7, 2019

Thanks. I found the cause of the issue.

@nothingnesses
Copy link
Author

Thanks, your PR fixed the problem!

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