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

            Bug ID: 64108
           Summary: ICE: SIGSEGV in decide_alg() with
                    -mmemset-strategy=libcall:-1:align
                    -minline-all-stringops
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz

Created attachment 34134
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34134&action=edit
preprocessed source (gcc.target/i386/memset-strategy-1.c)

Compiler output:
$ gcc -mmemset-strategy=libcall:-1:align -minline-all-stringops
memset-strategy-1.i -wrapper valgrind,-q
==13391== Stack overflow in thread 1: can't grow stack to 0xffe001ff8
==13391== Can't extend stack to 0xffe0010a8 during signal delivery for thread
1:
==13391==   no stack segment
==13391== 
==13391== Process terminating with default action of signal 11 (SIGSEGV)
==13391==  Access not within mapped region at address 0xFFE0010A8
==13391==    at 0xF047D2: decide_alg(long, long, unsigned long, unsigned long,
bool, bool, int*, bool*) (i386.c:24370)
==13391==  If you believe this happened as a result of a stack
==13391==  overflow in your program's main thread (unlikely but
==13391==  possible), you can try to increase the size of the
==13391==  main thread stack using the --main-stacksize= flag.
==13391==  The main thread stack size used in this run was 16777216.
==13391== Stack overflow in thread 1: can't grow stack to 0xffe001f71
==13391== 
==13391== Process terminating with default action of signal 11 (SIGSEGV)
==13391==  Access not within mapped region at address 0xFFE001F71
==13391==    at 0x4A236B0: _vgnU_freeres (in
/usr/lib64/valgrind/vgpreload_core-amd64-linux.so)
==13391==  If you believe this happened as a result of a stack
==13391==  overflow in your program's main thread (unlikely but
==13391==  possible), you can try to increase the size of the
==13391==  main thread stack using the --main-stacksize= flag.
==13391==  The main thread stack size used in this run was 16777216.
gcc: internal compiler error: Segmentation fault (program valgrind)
0x40bff5 execute
        /mnt/svn/gcc-trunk/gcc/gcc.c:2912
0x40c289 do_spec_1
        /mnt/svn/gcc-trunk/gcc/gcc.c:4841
0x40e887 process_brace_body
        /mnt/svn/gcc-trunk/gcc/gcc.c:6124
0x40e887 handle_braces
        /mnt/svn/gcc-trunk/gcc/gcc.c:6038
0x40d287 do_spec_1
        /mnt/svn/gcc-trunk/gcc/gcc.c:5495
0x40e887 process_brace_body
        /mnt/svn/gcc-trunk/gcc/gcc.c:6124
0x40e887 handle_braces
        /mnt/svn/gcc-trunk/gcc/gcc.c:6038
0x40d287 do_spec_1
        /mnt/svn/gcc-trunk/gcc/gcc.c:5495
0x40c613 do_spec_1
        /mnt/svn/gcc-trunk/gcc/gcc.c:5610
0x40e887 process_brace_body
        /mnt/svn/gcc-trunk/gcc/gcc.c:6124
0x40e887 handle_braces
        /mnt/svn/gcc-trunk/gcc/gcc.c:6038
0x40d287 do_spec_1
        /mnt/svn/gcc-trunk/gcc/gcc.c:5495
0x40e887 process_brace_body
        /mnt/svn/gcc-trunk/gcc/gcc.c:6124
0x40e887 handle_braces
        /mnt/svn/gcc-trunk/gcc/gcc.c:6038
0x40d287 do_spec_1
        /mnt/svn/gcc-trunk/gcc/gcc.c:5495
0x40e887 process_brace_body
        /mnt/svn/gcc-trunk/gcc/gcc.c:6124
0x40e887 handle_braces
        /mnt/svn/gcc-trunk/gcc/gcc.c:6038
0x40d287 do_spec_1
        /mnt/svn/gcc-trunk/gcc/gcc.c:5495
0x40e887 process_brace_body
        /mnt/svn/gcc-trunk/gcc/gcc.c:6124
0x40e887 handle_braces
        /mnt/svn/gcc-trunk/gcc/gcc.c:6038
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Tested revisions:
r218137 - ICE
4_9 r216937 - ICE

Reply via email to