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: unassig...@gcc.gnu.org
        ReportedBy: g...@intrepid.com
                CC: ne...@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.

Reply via email to