[PATCH] D102817: [Windows SEH]: HARDWARE EXCEPTION HANDLING (MSVC -EHa) - Part 2

Phoebe Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 19 19:20:13 PDT 2023


pengfei added a comment.

In D102817#4279048 <https://reviews.llvm.org/D102817#4279048>, @hexhexd wrote:

> Hello,
>
> I'm trying to move our code base from using ancient LLVM 11 to main branch LLVM. I experienced clang crashes with below messages while using an assert enabled LLVM build. The problem goes away if I remove `/EHa` from our cmake.
>
>   A single unwind edge may only enter one EH pad
>     invoke void @llvm.seh.scope.end()
>             to label %"??1?$_Compressed_pair at V?$allocator at D@std@@V?$_String_val at U?$_Simple_types at D@std@@@2@$00 at std@@QEAA at XZ.exit6.i" unwind label %ehcleanup.i5.i, !dbg !4121
>   in function ??1CrashdumpCollecter at debugging@skyfall@@QEAA at XZ
>   fatal error: error in backend: Broken function found, compilation aborted!
>
> The crash happened in
>
>   #6 0x00007ff76757bf80 `anonymous namespace'::VerifierLegacyPass::runOnFunction C:\dev\llvm-project\llvm\lib\IR\Verifier.cpp:6532:0

I observed same failure in our internal testing. I'm looking into it. In the meanwhile, I think you can remove `/EHa` as a workaround. The option was a dumb without this patch.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102817/new/

https://reviews.llvm.org/D102817



More information about the llvm-commits mailing list