Git Product home page Git Product logo

Comments (2)

valpackett avatar valpackett commented on June 18, 2024

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 an Err 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.

 avatar commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.