[llvm-bugs] [Bug 24604] New: __cxa_allocate_exception returns under-aligned memory in 32 bit builds
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Aug 27 13:19:36 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24604
Bug ID: 24604
Summary: __cxa_allocate_exception returns under-aligned memory
in 32 bit builds
Product: libc++abi
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
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
Classification: Unclassified
In 32 bit builds with GNU unwind __cxa_exception is 16 byte aligned. However
the maximal alignment in 32 bit builds is 8 bytes. That means that the memory
returned from std::malloc is not suitably aligned to represent a
__cxa_exception and this causes undefined behavior.
We need to figure out the best way to get over-aligned memory from
__cxa_allocate_exception.
--
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/20150827/6ce81ff0/attachment.html>
More information about the llvm-bugs
mailing list