Stream: project-ffi-unwind

Topic: catching all unwinding in windows


view this post on Zulip nikomatsakis (Sep 02 2021 at 18:29):

So @bjorn3 prepared #86801 which modifies the personality function -Cpanic=abort Rust code to abort on any unwinding, but it doesn't work on windows. @rylev or @mw (random choices) do you all perhaps have any thoughts on what the windows equivalent is, or who to ask?

view this post on Zulip bjorn3 (Sep 02 2021 at 18:30):

I suggested how to do this on Windows in a comment, but haven't yet found the time to actually try this.

view this post on Zulip nikomatsakis (Sep 02 2021 at 18:30):

ah, ok

view this post on Zulip nikomatsakis (Sep 02 2021 at 18:31):

I didn't realize you had suggested a specific thing

view this post on Zulip bjorn3 (Sep 02 2021 at 18:32):

SEH uses a personality function too, but LLVM detects things based on the name, so I suggested a dance to allow the personality function to have this name for rust object files without causing conflicts with the actual function of this name which is used by C++ too.

view this post on Zulip rylev (Sep 02 2021 at 18:55):

On windows aborting should be done with __fastfail. I thought we were already doing that for the abort intrinsic

view this post on Zulip bjorn3 (Sep 02 2021 at 19:16):

Yes, we do. This issue is however for making extern "C-unwind" abort when trying to unwind through it from C++.

view this post on Zulip rylev (Sep 03 2021 at 09:20):

This sounds like something that @Arlie Davis could potentially help with.


Last updated: Jan 26 2022 at 07:32 UTC