-
Notifications
You must be signed in to change notification settings - Fork 1
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
unwrap_panicked
test fails (unwind support)
#1
Comments
It seems like some bug sneaked into my branch as I can reproduce the test failure in debug mode. However the original |
Okay, the issue seems to be that no landingpads exist when the context switch, which is done through the inline assembly, is ( There are two solutions:
In its current state unwinding support is basically unsound and broken. |
Re: |
LLVM patch which should allow unwinding from inline asm: https://github.com/cynecx/llvm-project/tree/asm-landingpads (The patch only contains support for SelectionDAG. Adding support for GlobalIsel should be straightforward too). |
unwrap_panicked
test failsunwrap_panicked
test fails (unwind support)
Next step: Wait for rust to upgrade to LLVM 13. |
@Amanieu JFYI: I've been reviving your old "unwinding support" for libfringe branch here: https://github.com/cynecx/libfringe/tree/asm as a test case for rust-lang/rust#88439. |
The
generator::unwrap_panicked
test fails. It seems like bothcatch_unwind
s (insideunwind_wrapper
and inside the test) are not catching the panic. Seems like the unwinder somehow fails to properly unwind the stack.😔
Ref PR: edef1c#70
The text was updated successfully, but these errors were encountered: