You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to use the stdout exporter's regex filter (-r) causes Scaphandre to panic and exit. Backtrace:
⚘ ~/dev/rust/scaphandre RUST_BACKTRACE=1./target/debug/scaphandre stdout -r chromium [101]Scaphandre stdout exporter
Sending ⚡ metrics
Measurement step is:2s
Host:0W
package core dram uncore
Processes filtered by 'chromium':PowerPIDExeNo processes found yet or filter returns no value.
------------------------------------------------------------
Host:2.072913W
package core dram uncore
Socket02.072913W | 0.61677W0.438338W0.007717WProcesses filtered by 'chromium':
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value:PermissionDenied(None)', src/sensors/utils.rs:302:48
stack backtrace:0: rust_begin_unwind
at /rustc/5e1d3299a290026b85787bc9c7e72bcc53ac283f/library/std/src/panicking.rs:577:51: core::panicking::panic_fmt
at /rustc/5e1d3299a290026b85787bc9c7e72bcc53ac283f/library/core/src/panicking.rs:67:142: core::result::unwrap_failed
at /rustc/5e1d3299a290026b85787bc9c7e72bcc53ac283f/library/core/src/result.rs:1690:53: core::result::Result<T,E>::unwrap
at /rustc/5e1d3299a290026b85787bc9c7e72bcc53ac283f/library/core/src/result.rs:1092:234: scaphandre::sensors::utils::IProcess::exe
at ./src/sensors/utils.rs:302:285: scaphandre::sensors::utils::ProcessTracker::get_filtered_processes
at ./src/sensors/utils.rs:903:396: scaphandre::exporters::stdout::StdoutExporter::show_metrics
at ./src/exporters/stdout.rs:242:257: scaphandre::exporters::stdout::StdoutExporter::iterate
at ./src/exporters/stdout.rs:157:98: scaphandre::exporters::stdout::StdoutExporter::runner
at ./src/exporters/stdout.rs:140:179: <scaphandre::exporters::stdout::StdoutExporteras scaphandre::exporters::Exporter>::run
at ./src/exporters/stdout.rs:20:910: scaphandre::run
at ./src/lib.rs:89:911: scaphandre::main
at ./src/main.rs:89:512: core::ops::function::FnOnce::call_once
at /rustc/5e1d3299a290026b85787bc9c7e72bcc53ac283f/library/core/src/ops/function.rs:250:5
note:Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
To Reproduce
scaphandre stdout -r foo
Watch it panic.
Expected behavior
Scaphandre should output the list of processes matching the regex, if any.
Environment
Linux distribution version: Manjaro 22.1.0 (Talos)
Kernel version: 6.2.8-1-MANJARO
Additional context
This is fixed on dev due to the problematic implementation of IProcess.exe(&self) being removed in b18aaee. Obviously Scaphandre isn't "stable" software yet, but it would maybe be nice to release a new version which addresses this? (Provided that cutting a new release from dev isn't too much work.)
Cheers!
The text was updated successfully, but these errors were encountered:
Bug description
Attempting to use the stdout exporter's regex filter (
-r
) causes Scaphandre to panic and exit. Backtrace:To Reproduce
scaphandre stdout -r foo
Expected behavior
Scaphandre should output the list of processes matching the regex, if any.
Environment
Additional context
This is fixed on
dev
due to the problematic implementation ofIProcess.exe(&self)
being removed in b18aaee. Obviously Scaphandre isn't "stable" software yet, but it would maybe be nice to release a new version which addresses this? (Provided that cutting a new release fromdev
isn't too much work.)Cheers!
The text was updated successfully, but these errors were encountered: