-
Notifications
You must be signed in to change notification settings - Fork 167
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
Segmentation fault on Apple M2 #1253
Comments
I reran 3 targets failing on M2 passed on rk3588: 2 targets still failed: |
Thanks for the report! I don't have an Apple M2 myself, but going by the backtrace you provided, I have a guess of at least part of what's going on. Would you be able to test the patch in #1254? If you're able to, I'd also be curious to know if you could run tests such as the vdso_test_gettimeofday.c test in https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/testing/selftests/vDSO/. If your vDSO is missing a |
Thanks a lot for the quick response! I've tested the patch in #1254 and tests/time/main.rs passed but test backend::vdso::test:vdso fails now. vdso_test_gettimeofday outputs |
Cool, thanks for testing! I will land the patch (after fixing some unrelated CI breakage). I may disable that Also, it appears your Linux kernel's vDSO is lacking a |
This may be caused by torvalds/linux@48f6430, in which case it's not a bug. It appears the changes to Linux's reference parser haven't landed yet, but it looks like https://lore.kernel.org/lkml/[email protected]/T/#r3166a373d53e9beb19a33abcbd3eb131dcdcc107 is the needed change. |
I've added the patch and ran the tests again. vdso_test_gettimeofday now outputs the correct time |
I've now released rustix 0.38.43 with the fix for the segmentation fault. For now if there's no |
I've now submitted #1259 implementing @steffenvongrabau Would you by change be able to test out the patch in #1259? |
With the patch in #1259 test |
I've stumbled upon this issue while trying to run Niri and it instantly segfaulted.
Using GDB I generated the following backtrace, which shows: Segmentation fault.
init_from_sysinfo_ehdr () at src/backend/linux_raw/vdso.rs:187
gdb.txt
I cloned this git repository and ran
cargo test --features=all-apis --no-fail-fast
which showed multiple tests failing.cargo_test.txt
tests/time/main.rs segfaults with no further error message, so I manually ran target/debug/deps/time-ebc378475d0c4529 with rust-gdb to generate this backtrace:
gdb_time.txt
Like the Niri backtrace it also shows: Segmentation fault.
rustix::backend::vdso::init_from_sysinfo_ehdr () at src/backend/linux_raw/vdso.rs:187
System Information
The text was updated successfully, but these errors were encountered: