[LLVMbugs] [Bug 19451] Crash Using Clang on Android

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 22 03:47:53 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19451

James Molloy <james.molloy at arm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |james.molloy at arm.com
         Resolution|---                         |INVALID

--- Comment #7 from James Molloy <james.molloy at arm.com> ---
Hi,

I have reproduced the failure locally, but this is not a compiler bug.

The testcase creates a structure "foo" and uses it in a std::vector. "foo" has
an alignment constraint due to it containing a float32x4_t member of 16 bytes.
The compiler honours this in all code it generates. The underlying allocator
used by std::vector just calls operator new (_Znwj), and uses the memory
returned. operator new calls malloc, and malloc returns memory aligned to 8
bytes.

Memory corruption follows due to NEON instructions with :128 alignment hints
being used on unaligned addresses.

A similar question is asked at StackOverflow here:
http://stackoverflow.com/questions/12942548/making-stdvector-allocate-aligned-memory
.

I'll resolve this as "not a bug".

Cheers,

James

-- 
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/20140422/13fe4006/attachment.html>


More information about the llvm-bugs mailing list