https://llvm.org/bugs/show_bug.cgi?id=27208

            Bug ID: 27208
           Summary: Make sure  _Unwind_Exception object is double-word
                    aligned.
           Product: libc++abi
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

Itanium C++ ABI states that an _Unwind_Exception object should be double-word
(16B) aligned:

https://mentorembedded.github.io/cxx-abi/abi-eh.html#base-data

However, libc++abi doesn't guarantee it's 16-byte aligned, which caused
programs to crash when __cxa_allocate_exception returned an under-aligned
object.

r264998 fixed clang to lower the expected alignment on Darwin. We should
investigate whether other OSes need similar fixes and whether it's possible to
fix this in libc++abi (instead of in clang) without breaking the ABI.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to