-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Add UWTable attr to functions with a personality function #125844
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @pnkfelix (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
This comment has been minimized.
This comment has been minimized.
Looks like this solution somehow is causing a crash with SIGILL on:
:\ |
You can try debugging this by enabling LLVM assertions: https://rustc-dev-guide.rust-lang.org/backend/debugging.html#enable-llvm-internal-checks |
This comment has been minimized.
This comment has been minimized.
Adding a personality function forces LLVM to generate unwinding info that might be incorrect. To solve it, always apply the UWTable attribute when setting a personality function. Fixes rust-lang#123733
@Reflexe any updates on this? thanks |
@pnkfelix , @Dylan-DPC , unfortunately I have yet to find the time to research how to properly test this specific case. Do we have anything similar test in rust already? (E.g. a regression test for a specific platform, in which you need to run a sample binary with qemu or another emulator) |
Adding a personality function forces LLVM to generate unwinding info that might be incorrect. To solve it, always apply the UWTable attribute when setting a personality function.
Thanks @Amanieu for doing most of the research work.
Fixes #123733