From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4241 invoked by alias); 28 Nov 2014 21:16:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 4224 invoked by uid 48); 28 Nov 2014 21:16:00 -0000 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/64108] New: ICE: SIGSEGV in decide_alg() with -mmemset-strategy=libcall:-1:align -minline-all-stringops Date: Fri, 28 Nov 2014 21:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg03364.txt.bz2 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 for instructions. Tested revisions: r218137 - ICE 4_9 r216937 - ICE