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

force-unwind-tables has no effect #85582

Open
stevemk14ebr opened this issue May 22, 2021 · 1 comment
Open

force-unwind-tables has no effect #85582

stevemk14ebr opened this issue May 22, 2021 · 1 comment
Labels
A-panic Area: Panicking machinery C-bug Category: This is a bug. S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@stevemk14ebr
Copy link

Hello, i'm building a no_std rust driver for windows and the unwind tables are not being generated in release mode. This is a large issue for be because i'm interacting with a kernel interfaces that requires the unwind_table entry for a specific function. Here is the issue in detail: rust-lang/backtrace-rs#397 (comment)

I'd expect that even though i've set the panic=abort mode that unwind tables are generated, and especially with the force-unwind-tables flag set to yes. I only need a specific function to have an unwind entry, so perhaps a #[unwind_entry] function attribute could make sense to introduce? The panic behavior should be separate from what binary tables are generated, they are separate concerns...

@stevemk14ebr stevemk14ebr added the C-bug Category: This is a bug. label May 22, 2021
@stevemk14ebr
Copy link
Author

It seems sometimes it does include the table but sometimes not. A rebuild fixed it in at least one case.

@ChrisDenton ChrisDenton added the needs-triage-legacy Old issue that were never triaged. Remove this label once the issue has been sufficiently triaged. label Jul 16, 2023
@jieyouxu jieyouxu added T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. A-panic Area: Panicking machinery S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. and removed needs-triage-legacy Old issue that were never triaged. Remove this label once the issue has been sufficiently triaged. labels Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-panic Area: Panicking machinery C-bug Category: This is a bug. S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants