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

--- Comment #5 from Vladimir Smirnov <civil.over at gmail dot com> ---
If that'll help:
katje ~ # gcc-6.0.0-alpha20160103 -c -mfpu=neon ./bug.c -wrapper valgrind
==25016== Memcheck, a memory error detector
==25016== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==25016== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==25016== Command:
/usr/libexec/gcc/armv7a-hardfloat-linux-gnueabi/6.0.0-alpha20160103/cc1 -quiet
./bug.c -quiet -dumpbase bug.c -mfpu=neon -march=armv7-a -mfloat-abi=hard
-mtls-dialect=gnu -auxbase bug -o /tmp/ccp9iBkm.s
==25016== 
==25016== Invalid write of size 4
==25016==    at 0x4004CF8: _dl_start (rtld.c:337)
==25016==    by 0x4000A8F: ??? (in /lib/ld-2.22.so)
==25016==  Address 0xbd90412c is on thread 1's stack
==25016==  36 bytes below stack pointer
==25016== 
==25016== 
==25016== Process terminating with default action of signal 11 (SIGSEGV)
==25016==  Access not within mapped region at address 0xBD903FFC
==25016==    at 0x401B234: bcmp (memcmp.c:315)
==25016==    by 0x40025C7: process_envvars (rtld.c:2387)
==25016==    by 0x40025C7: dl_main (rtld.c:773)
==25016==    by 0x4018363: _dl_sysdep_start (dl-sysdep.c:249)
==25016==    by 0x400502B: _dl_start_final (rtld.c:307)
==25016==    by 0x400502B: _dl_start (rtld.c:413)
==25016==    by 0x4000A8F: ??? (in /lib/ld-2.22.so)
==25016==  If you believe this happened as a result of a stack
==25016==  overflow in your program's main thread (unlikely but
==25016==  possible), you can try to increase the size of the
==25016==  main thread stack using the --main-stacksize= flag.
==25016==  The main thread stack size used in this run was 16777216.
==25016== 
==25016== HEAP SUMMARY:
==25016==     in use at exit: 0 bytes in 0 blocks
==25016==   total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==25016== 
==25016== All heap blocks were freed -- no leaks are possible
==25016== 
==25016== For counts of detected and suppressed errors, rerun with: -v
==25016== ERROR SUMMARY: 2 errors from 1 contexts (suppressed: 7 from 4)
gcc-6.0.0-alpha20160103: internal compiler error: Segmentation fault (program
valgrind)

Reply via email to