[llvm-bugs] [Bug 39051] New: [7.0 Regression] libc++abi incorrectly aligns exceptions in 32 bit builds
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Sep 22 13:20:16 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=39051
Bug ID: 39051
Summary: [7.0 Regression] libc++abi incorrectly aligns
exceptions in 32 bit builds
Product: libc++abi
Version: 7.0
Hardware: PC
OS: Linux
Status: NEW
Severity: release blocker
Priority: P
Component: All Bugs
Assignee: unassignedbugs at nondot.org
Reporter: eric at efcs.ca
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
Libc++ commit r339431 moved the _LIBCPP_HAS_NO_ALIGNED_ALLOCATION logic from
<new> to <__config>. As a result, it was defined when building libc++abi's
fallback_malloc.cpp, which made libc++abi think posix_memalign was unavailable.
This meant that libc++abi was silently falling back to using malloc. In 32 bit
builds, malloc does not return correctly aligned memory for the exception
header.
This is a regression in the 7.0 release.
The issues was fixed in libc++abi commit r342815. This change should be merged
into the 7.1 release.
@Marshall, Louis, can you sign off on this?
--
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/20180922/6927b806/attachment.html>
More information about the llvm-bugs
mailing list