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: unassignedb...@nondot.org
          Reporter: e...@efcs.ca
                CC: llvm-bugs@lists.llvm.org, mclow.li...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to