public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/102142] New: [12 Regression] ICE Segmentation fault since r12-3222-g89f33f44addbf985
@ 2021-08-31  8:06 marxin at gcc dot gnu.org
  2021-08-31  8:07 ` [Bug tree-optimization/102142] " marxin at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-08-31  8:06 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102142
           Summary: [12 Regression] ICE Segmentation fault since
                    r12-3222-g89f33f44addbf985
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: rguenth at gcc dot gnu.org
  Target Milestone: ---

The following fails:

$ cat func.ii
extern short arr_597[];
extern bool arr_601[];
int test_var_13;
void test(short arr_391[][9][2][2]) {
  for (int i_60 = 0; i_60 < 11; i_60 += test_var_13)
    arr_597[22] = arr_601[i_60] = arr_391[0][0][1][4];
}

$ g++ func.ii -c -O3
during GIMPLE pass: slp
func.ii: In function ‘void test(short int (*)[9][2][2])’:
func.ii:4:6: internal compiler error: Segmentation fault
    4 | void test(short arr_391[][9][2][2]) {
      |      ^~~~
0x113d40f crash_signal
        ../../gcc/toplev.c:328
0x13f123c vec<std::pair<unsigned int, stmt_info_for_cost*>, va_heap,
vl_embed>::operator[](unsigned int)
        ../../gcc/vec.h:889
0x13f123c vec<std::pair<unsigned int, stmt_info_for_cost*>, va_heap,
vl_ptr>::operator[](unsigned int)
        ../../gcc/vec.h:1495
0x13f123c vect_bb_vectorization_profitable_p
        ../../gcc/tree-vect-slp.c:5302
0x13f889c vect_slp_region
        ../../gcc/tree-vect-slp.c:5869
0x13f9984 vect_slp_bbs
        ../../gcc/tree-vect-slp.c:6040
0x13f9d4c vect_slp_function(function*)
        ../../gcc/tree-vect-slp.c:6128
0x1400342 execute
        ../../gcc/tree-vectorizer.c:1454

Valgrind reports:

==120817== Invalid read of size 4
==120817==    at 0x13F123C: operator[] (vec.h:889)
==120817==    by 0x13F123C: operator[] (vec.h:1495)
==120817==    by 0x13F123C: vect_bb_vectorization_profitable_p(_bb_vec_info*,
vec<_slp_instance*, va_heap, vl_ptr>, loop*) (tree-vect-slp.c:5302)
==120817==    by 0x13F889C: vect_slp_region(vec<basic_block_def*, va_heap,
vl_ptr>, vec<data_reference*, va_heap, vl_ptr>, vec<int, va_heap, vl_ptr>*,
unsigned int, loop*) (tree-vect-slp.c:5869)
==120817==    by 0x13F9984: vect_slp_bbs(vec<basic_block_def*, va_heap, vl_ptr>
const&, loop*) (tree-vect-slp.c:6040)
==120817==    by 0x13F9D4C: vect_slp_function(function*) (tree-vect-slp.c:6128)
==120817==    by 0x1400342: (anonymous
namespace)::pass_slp_vectorize::execute(function*) (tree-vectorizer.c:1454)
==120817==    by 0x106020C: execute_one_pass(opt_pass*) (passes.c:2567)
==120817==    by 0x1060A9F: execute_pass_list_1(opt_pass*) (passes.c:2656)
==120817==    by 0x1060AB1: execute_pass_list_1(opt_pass*) (passes.c:2657)
==120817==    by 0x1060AB1: execute_pass_list_1(opt_pass*) (passes.c:2657)
==120817==    by 0x1060AD8: execute_pass_list(function*, opt_pass*)
(passes.c:2667)
==120817==    by 0xCD3435: expand (cgraphunit.c:1828)
==120817==    by 0xCD3435: cgraph_node::expand() (cgraphunit.c:1781)
==120817==    by 0xCD499F: expand_all_functions (cgraphunit.c:1992)
==120817==    by 0xCD499F: symbol_table::compile() [clone .part.0]
(cgraphunit.c:2356)
==120817==  Address 0x4 is not stack'd, malloc'd or (recently) free'd

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/102142] [12 Regression] ICE Segmentation fault since r12-3222-g89f33f44addbf985
  2021-08-31  8:06 [Bug tree-optimization/102142] New: [12 Regression] ICE Segmentation fault since r12-3222-g89f33f44addbf985 marxin at gcc dot gnu.org
@ 2021-08-31  8:07 ` marxin at gcc dot gnu.org
  2021-08-31  8:58 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-08-31  8:07 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-08-31
             Status|UNCONFIRMED                 |NEW

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/102142] [12 Regression] ICE Segmentation fault since r12-3222-g89f33f44addbf985
  2021-08-31  8:06 [Bug tree-optimization/102142] New: [12 Regression] ICE Segmentation fault since r12-3222-g89f33f44addbf985 marxin at gcc dot gnu.org
  2021-08-31  8:07 ` [Bug tree-optimization/102142] " marxin at gcc dot gnu.org
@ 2021-08-31  8:58 ` rguenth at gcc dot gnu.org
  2021-08-31  9:03 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-08-31  8:58 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/102142] [12 Regression] ICE Segmentation fault since r12-3222-g89f33f44addbf985
  2021-08-31  8:06 [Bug tree-optimization/102142] New: [12 Regression] ICE Segmentation fault since r12-3222-g89f33f44addbf985 marxin at gcc dot gnu.org
  2021-08-31  8:07 ` [Bug tree-optimization/102142] " marxin at gcc dot gnu.org
  2021-08-31  8:58 ` rguenth at gcc dot gnu.org
@ 2021-08-31  9:03 ` rguenth at gcc dot gnu.org
  2021-08-31 10:27 ` cvs-commit at gcc dot gnu.org
  2021-08-31 10:27 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-08-31  9:03 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Meh #/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/102142] [12 Regression] ICE Segmentation fault since r12-3222-g89f33f44addbf985
  2021-08-31  8:06 [Bug tree-optimization/102142] New: [12 Regression] ICE Segmentation fault since r12-3222-g89f33f44addbf985 marxin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-08-31  9:03 ` rguenth at gcc dot gnu.org
@ 2021-08-31 10:27 ` cvs-commit at gcc dot gnu.org
  2021-08-31 10:27 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-08-31 10:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:67927342290c61d7e054430f1d7a7281f1f97fae

commit r12-3250-g67927342290c61d7e054430f1d7a7281f1f97fae
Author: Richard Biener <rguenther@suse.de>
Date:   Tue Aug 31 11:04:51 2021 +0200

    tree-optimization/102142 - fix typo in loop BB reduc cost adjustment

    This fixes a typo in the condition guarding the cleanup of the
    visited flag of costed scalar stmts.

    2021-08-31  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/102142
            * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Fix
            condition under which to unset the visited flag.

            * g++.dg/torture/pr102142.C: New testcase.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/102142] [12 Regression] ICE Segmentation fault since r12-3222-g89f33f44addbf985
  2021-08-31  8:06 [Bug tree-optimization/102142] New: [12 Regression] ICE Segmentation fault since r12-3222-g89f33f44addbf985 marxin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-08-31 10:27 ` cvs-commit at gcc dot gnu.org
@ 2021-08-31 10:27 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-08-31 10:27 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-08-31 10:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-31  8:06 [Bug tree-optimization/102142] New: [12 Regression] ICE Segmentation fault since r12-3222-g89f33f44addbf985 marxin at gcc dot gnu.org
2021-08-31  8:07 ` [Bug tree-optimization/102142] " marxin at gcc dot gnu.org
2021-08-31  8:58 ` rguenth at gcc dot gnu.org
2021-08-31  9:03 ` rguenth at gcc dot gnu.org
2021-08-31 10:27 ` cvs-commit at gcc dot gnu.org
2021-08-31 10:27 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).