[Bug target/79480] -O3 and -mfpu=neon produces crashing code on ARM

tulipawn at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Feb 12 21:54:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79480

--- Comment #4 from PeteVine <tulipawn at gmail dot com> ---
Whereas `-fsanitize=address` aborts all the same:

==28821==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new [] vs
operator delete) on 0xaf012100
    #0 0xb6af76fb in operator delete(void*, unsigned int)
(/usr/gcc7/lib/libasan.so.4+0xd86fb)
    #1 0xe5e53 in CLoad3DS::ProcessNextObjectChunk(CModel*, CObject*, Chunk*)
[clone .constprop.38] (/tmp/gl-117-1.3.2-src/src/gl-117+0xe5e53)
    #2 0xe6773 in CLoad3DS::ProcessNextObjectChunk(CModel*, CObject*, Chunk*)
[clone .constprop.38] (/tmp/gl-117-1.3.2-src/src/gl-117+0xe6773)
    #3 0xf8ae7 in CLoad3DS::ProcessNextChunk(CModel*, Chunk*) [clone
.constprop.30] (/tmp/gl-117-1.3.2-src/src/gl-117+0xf8ae7)
    #4 0xf8ecf in CLoad3DS::ProcessNextChunk(CModel*, Chunk*) [clone
.constprop.30] (/tmp/gl-117-1.3.2-src/src/gl-117+0xf8ecf)
    #5 0x80537 in CLoad3DS::Import3DS(CModel*, char*) [clone .constprop.29]
(/tmp/gl-117-1.3.2-src/src/gl-117+0x80537)
    #6 0x3e403 in myFirstInit() (/tmp/gl-117-1.3.2-src/src/gl-117+0x3e403)
    #7 0x1b2a7 in main (/tmp/gl-117-1.3.2-src/src/gl-117+0x1b2a7)
    #8 0xb659d66f in __libc_start_main
(/lib/arm-linux-gnueabihf/libc.so.6+0x1766f)

0xaf012100 is located 0 bytes inside of 7680-byte region
[0xaf012100,0xaf013f00)
allocated by thread T0 here:
    #0 0xb6af66cf in operator new[](unsigned int)
(/usr/gcc7/lib/libasan.so.4+0xd76cf)
    #1 0xe5a5b in CLoad3DS::ProcessNextObjectChunk(CModel*, CObject*, Chunk*)
[clone .constprop.38] (/tmp/gl-117-1.3.2-src/src/gl-117+0xe5a5b)

SUMMARY: AddressSanitizer: alloc-dealloc-mismatch
(/usr/gcc7/lib/libasan.so.4+0xd86fb) in operator delete(void*, unsigned int)
==28821==HINT: if you don't care about these errors you may set
ASAN_OPTIONS=alloc_dealloc_mismatch=0
==28821==ABORTING


More information about the Gcc-bugs mailing list