-
Notifications
You must be signed in to change notification settings - Fork 130
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Description
Working on a public cloud VM:
$ uname -srvmo
Linux 6.8.0-1018-oracle #19~22.04.1-Ubuntu SMP Mon Dec 9 23:49:53 UTC 2024 aarch64 GNU/Linux
$ git clone https://github.com/eminence/procfs.git
$ cd procfs
$ git checkout v0.17.0
$ RUST_BACKTRACE=1 cargo test
[…]
failures:
---- tests::test_cpuinfo stdout ----
None
thread 'tests::test_cpuinfo' panicked at procfs/src/lib.rs:683:34:
called `Option::unwrap()` on a `None` value
stack backtrace:
0: rust_begin_unwind
at /build/rustc-fgzh1o/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/std/src/panicking.rs:645:5
1: core::panicking::panic_fmt
at /build/rustc-fgzh1o/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/core/src/panicking.rs:72:14
2: core::panicking::panic
at /build/rustc-fgzh1o/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/core/src/panicking.rs:127:5
3: core::option::Option<T>::unwrap
at /build/rustc-fgzh1o/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/core/src/option.rs:931:21
4: procfs::tests::test_cpuinfo
at ./src/lib.rs:683:13
5: procfs::tests::test_cpuinfo::{{closure}}
at ./src/lib.rs:679:22
6: core::ops::function::FnOnce::call_once
at /build/rustc-fgzh1o/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/core/src/ops/function.rs:250:5
7: core::ops::function::FnOnce::call_once
at /build/rustc-fgzh1o/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
---- process::task::tests::test_task_runsinglethread stdout ----
thread 'process::task::tests::test_task_runsinglethread' panicked at procfs/src/process/task.rs:202:17:
utime(37) too small
stack backtrace:
0: rust_begin_unwind
at /build/rustc-fgzh1o/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/std/src/panicking.rs:645:5
1: core::panicking::panic_fmt
at /build/rustc-fgzh1o/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/core/src/panicking.rs:72:14
2: procfs::process::task::tests::test_task_runsinglethread
at ./src/process/task.rs:202:17
3: procfs::process::task::tests::test_task_runsinglethread::{{closure}}
at ./src/process/task.rs:125:35
4: core::ops::function::FnOnce::call_once
at /build/rustc-fgzh1o/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/core/src/ops/function.rs:250:5
5: core::ops::function::FnOnce::call_once
at /build/rustc-fgzh1o/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
failures:
process::task::tests::test_task_runsinglethread
tests::test_cpuinfo
test result: FAILED. 96 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.09s
I originally saw this while working on an update for the rust-procfs
package in Fedora. While the above reproduces it on aarch64
, I saw the same test failure on ppc64le
and s390x
. The test_task_runsinglethread
failure is reported separately in #322.
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed