From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3228 invoked by alias); 2 May 2012 06:10:21 -0000 Received: (qmail 3215 invoked by uid 22791); 2 May 2012 06:10:20 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 02 May 2012 06:10:07 +0000 From: "gary at intrepid dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/53185] New: segmentation fault in vectorizable_load Date: Wed, 02 May 2012 06:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gary at intrepid dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2012-05/txt/msg00050.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53185 Bug #: 53185 Summary: segmentation fault in vectorizable_load Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned@gcc.gnu.org ReportedBy: gary@intrepid.com CC: nenad@intrepid.com Target: x86_64 Created attachment 27280 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27280 script to demonstrate compiler segfault GCC 4.8 trunk revision r187034 encounters a segfault when compiling the attached test case. This appears to be a relatively recent regression. Here's the back trace. Program received signal SIGSEGV, Segmentation fault. 0x0000000000d93153 in vectorizable_load (stmt=0x7ffff1889460, gsi=0x7fffffffd680, vec_stmt=0x7fffffffd5a0, slp_node=0x0, slp_node_instance=0x0) at gcc/tree-vect-stmts.c:4563 4563 ivstep = fold_build2 (MULT_EXPR, TREE_TYPE (ivstep), ivstep, (gdb) where #0 0x0000000000d93153 in vectorizable_load (stmt=0x7ffff1889460, gsi=0x7fffffffd680, vec_stmt=0x7fffffffd5a0, slp_node=0x0, slp_node_instance=0x0) at gcc/tree-vect-stmts.c:4563 #1 0x0000000000d978e4 in vect_transform_stmt (stmt=0x7ffff1889460, gsi=0x7fffffffd680, grouped_store=0x7fffffffd677 "", slp_node=0x0, slp_node_instance=0x0) at gcc/tree-vect-stmts.c:5639 #2 0x0000000000dac324 in vect_transform_loop (loop_vinfo=0x1cd0630) at gcc/tree-vect-loop.c:5461 #3 0x0000000000dbfd08 in vectorize_loops () at gcc/tree-vectorizer.c:214 #4 0x0000000000cbf6b4 in tree_vectorize () at gcc/tree-ssa-loop.c:218 #5 0x0000000000a22eb0 in execute_one_pass (pass=0x19fdc40) at gcc/passes.c:2181 #6 0x0000000000a23096 in execute_pass_list (pass=0x19fdc40) at gcc/passes.c:2236 #7 0x0000000000a230b7 in execute_pass_list (pass=0x19fda60) at gcc/passes.c:2237 To reproduce, copy the attached do-fail script and gasnet_core.i file to the gcc build directory, and run do-fail. The compiler was configured with --disable-bootstrap --disable-multilib and --enable-checking, however, the failure occurred after a full bootstrap and with various other configure switches as well.