-
Notifications
You must be signed in to change notification settings - Fork 7
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
taskstats crashes on Linux kernels v5.19 and newer #12
Comments
Thanks for reporting.
Agree. I have to admit that the actual definition of taskstats struct in kernel is evolving much aggressively than I initially expected. Maybe for backward compatibility we can keep the current definition of taskstats struct in |
me too, but build with statically linked. install use thread '<unnamed>' panicked at 'range end index 352 out of range for slice of length 328', /home/thinkgo/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/linux-taskstats-0.5.0/src/model.rs:127:39 my os system call
|
should be fixed by #13 |
While attempting to run zenith on my Gentoo x86_64 box, I get an immediate crash:
thread '<unnamed>' panicked at 'range end index 432 out of range for slice of length 416', $HOME/.cargo/registry/src/index.crates.io-6f17d22bba15001f/linux-taskstats-0.5.0/src/model.rs:127:39
The change 662ce1dc9caf4 in the Linux kernel extended
struct taskstats
by 16 bytes.This change landed in Linux kernel v5.19. So all kernels newer than that should break in the same way.
Looking at the comment in the
src/lib.rs
, it might be a good idea to revisit the decision to open code the rust struct vice letting bindgen do it. Maybe setting an MSRV would work here?The text was updated successfully, but these errors were encountered: