[Bug c/56375] SIGSEGV when assign SIMD variable to member of allocated structure

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 18 13:47:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56375

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |jakub at gcc dot gnu.org
         Resolution|                            |INVALID

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-18 13:46:39 UTC ---
User error, malloc doesn't guarantee sufficient alignment of the pointer, which
you are relying on.  You need to use posix_memalign or memalign or align it by
hand yourself (allocate more for the padding).



More information about the Gcc-bugs mailing list