Comments (2)
Hi!
Thanks for trying out this library.
That's a panic, not a segfault, and it's a custom error that says "Not
supported". So, your operating system is not fully supported yet.
I've only implemented full support for FreeBSD and started working on
Linux support (currently, only memory and load_average are working on
Linux).
You can always help with implementing the functionality for different
operating systems ;-)
On 07/10, Patrick wrote:
I tried playing around with your library and was surprised to see one of the few segfaults i've seen in rust and running your demo file too.
Running `target/debug/bin`
thread 'main' panicked at 'called
Result::unwrap()
on anErr
value: Error { repr: Custom(Custom { kind: Other, error: StringError("Not supported") }) }', ../src/libcore/result.rs:785
stack backtrace:
1: 0x55a355aeafef - std::sys::backtrace::tracing::imp::write::h6528da8103c51ab9
2: 0x55a355aed3eb - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::hbe741a5cc3c49508
3: 0x55a355aed06f - std::panicking::default_hook::he0146e6a74621cb4
4: 0x55a355ae4f3e - std::panicking::rust_panic_with_hook::h983af77c1a2e581b
5: 0x55a355aed631 - std::panicking::begin_panic::he426e15a3766089a
6: 0x55a355ae58aa - std::panicking::begin_panic_fmt::hdddb415186c241e7
7: 0x55a355aed5ce - rust_begin_unwind
8: 0x55a355b22aaf - core::panicking::panic_fmt::hf4e16cb7f0d41a25
9: 0x55a355ad9f1b - core::result::unwrap_failed::hf40cb93f6f31ec3d
at ../src/libcore/macros.rs:29
10: 0x55a355ad9551 - _<core..result..Result<T, E>>::unwrap::ha10f31560a1ef478
at ../src/libcore/result.rs:723
11: 0x55a355ad81ba - bin::main::h526525808e6ff144
at src/main.rs:10
12: 0x55a355aecca8 - std::panicking::try::call::h852b0d5f2eec25e4
13: 0x55a355af6cbb - __rust_try
14: 0x55a355af6c5e - __rust_maybe_catch_panic
15: 0x55a355aec74e - std::rt::lang_start::hfe4efe1fc39e4a30
16: 0x55a355ae1cf9 - main
17: 0x7f9fa817d740 - __libc_start_main
18: 0x55a355ad7ce8 - _start
19: 0x0 -
error: Process didn't exit successfully:target/debug/bin
(exit code: 101)Since I rarely run into segfaults im unsure of how to continue, do you have any ideas as to what could be causeing this?
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#1
from systemstat.
Ok that makes sense. Sorry for my ignorance, I've only been working in rust for about 2 months. Also i'd be glad to help (with what little i can) I've been looking for a smaller project to contribute too lately.
from systemstat.
Related Issues (20)
- Move away from serde-feature-hack
- What is needed to release a new version? HOT 1
- how is systemstat related to the get_sys_info crate? HOT 4
- Support for NetBSD HOT 10
- cpu model
- Fails on i386: error[E0308]: mismatched types HOT 1
- Add cpu_time to the Platform trait
- How build and run info.rs example? HOT 1
- Battery error if a wireless device with battery is attached HOT 1
- wrong number of CPUs from cpu_load() on Linux HOT 4
- Do not use this library if at all possible HOT 1
- CPU load output isn't showing actual load HOT 2
- Crates.io HOT 2
- How to get cpu usage HOT 3
- macOS purgeable space HOT 2
- Support Mac arm64 HOT 3
- Swap support HOT 2
- cpu_temp returns the error message: "Not supported" on Windows 10 HOT 8
- Invoking networks() results in STATUS_ACCESS_VIOLATION HOT 5
- Cross-compil from Linux to Windows failed HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from systemstat.