http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53758
Bug #: 53758 Summary: Segfault at 'vmovaps' when setting pointer array in a loop Classification: Unclassified Product: gcc Version: 4.6.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: jan.b...@kaetemi.be Created attachment 27692 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27692 Disassemly of function and list of registers. Segfault in a simple loop that sets pointers in an array to NULL. Target is -march=bdver1 -mtune=bdver1. for(i = 0; i < NL_DLM_LIGHTMAP_TYPE_SIZE; i++) { _FreeBlocks[i] = NULL; } 0x00007ffff6ea4b00 <+608>: inc %edx => 0x00007ffff6ea4b02 <+610>: vmovaps %xmm0,(%rcx) 0x00007ffff6ea4b06 <+614>: add $0x10,%rcx 0x00007ffff6ea4b0a <+618>: cmp %edx,%esi 0x00007ffff6ea4b0c <+620>: ja 0x7ffff6ea4b00 edx 0x1 1 rcx 0x159106a4 361825956 esi 0x8 8 Full log in attachment.