Skip to content
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

Segfault when linked with libbpf-sys version 1.5.0 #1015

Open
abrehman94 opened this issue Dec 1, 2024 · 2 comments
Open

Segfault when linked with libbpf-sys version 1.5.0 #1015

abrehman94 opened this issue Dec 1, 2024 · 2 comments
Assignees
Labels
build Build related issues

Comments

@abrehman94
Copy link
Contributor

When a rust scx scheduler is built with libbpf-sys version 1.5.0+v1.5.0 it causes a seg fault.

17:38:01 [INFO] scx_flash 1.0.7-gfa1e12a-dirty x86_64-unknown-linux-gnu/debug SMT off
17:38:01 [INFO] L3 cache ID 1: sibling CPUs: [24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47]
17:38:01 [INFO] L3 cache ID 0: sibling CPUs: [0, 1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 20, 21, 22, 23, 3, 4, 5, 6, 7, 8, 9]
./clean_build.sh: line 6: 96847 Segmentation fault      sudo ./target/debug/scx_flash

As far as I could identify, the previous version that works is 1.4.6.

libbpf-rs = "=0.24.8"
libbpf-sys = "=1.4.6"
@hodgesds hodgesds added the build Build related issues label Dec 4, 2024
@etsal etsal self-assigned this Dec 9, 2024
@etsal
Copy link
Contributor

etsal commented Dec 9, 2024

HI Abdul, did you happen to look more closely into why this is happening?

@abrehman94
Copy link
Contributor Author

Hi Emil, no I didn't, as far as I saw was the difference on git in v1.4.6 and v1.5.0 of the libbpfsys - couldn't spot anything that would catch my eye.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build related issues
Projects
None yet
Development

No branches or pull requests

3 participants