[llvm-bugs] [Bug 25533] clang-cl producing crashing executable due to exception handling
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Nov 16 10:48:16 PST 2015
https://llvm.org/bugs/show_bug.cgi?id=25533
Reid Kleckner <rnk at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |rnk at google.com
Resolution|--- |FIXED
--- Comment #1 from Reid Kleckner <rnk at google.com> ---
Thanks for the report. I broke this in r253059.
What happened was we had a function that:
- Used no callee-saved registers (because -O0)
- Used the C++ personality function
- Did not have any EH pads
We have logic that allocates an UnwindHelp fixed stack object and initializes
it to -2. That logic was checking for the MSVC C++ EH personality, and it was
forgetting to handle the case that there were no existing fixed stack objects.
In that case, it used offset 0 for UnwindHelp, which is the offset of the
return address.
I fixed this with two changes in r253245:
- If there are no fixed stack objects, use offset -SlotSize, which is after the
return address
- Don't allocate UnwindHelp at all if there are no funclets
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151116/53e46a9b/attachment.html>
More information about the llvm-bugs
mailing list