public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/95653] New: [11 Regression] ICE: SIGSEGV in gimple_bb (gimple.h:1847) with -ftree-loop-vectorize -fno-tree-scev-cprop
@ 2020-06-12 10:55 zsojka at seznam dot cz
  2020-06-12 11:41 ` [Bug tree-optimization/95653] " marxin at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: zsojka at seznam dot cz @ 2020-06-12 10:55 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95653
           Summary: [11 Regression] ICE: SIGSEGV in gimple_bb
                    (gimple.h:1847) with -ftree-loop-vectorize
                    -fno-tree-scev-cprop
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu

Created attachment 48722
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48722&action=edit
reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc -O2 -ftree-loop-vectorize -fno-tree-scev-cprop
testcase.c -wrapper valgrind,-q
==6104== Invalid read of size 8
==6104==    at 0x1AD8111: gimple_bb (gimple.h:1847)
==6104==    by 0x1AD8111: loop_containing_stmt (tree-ssa-loop.h:76)
==6104==    by 0x1AD8111: chrec_contains_symbols_defined_in_loop(tree_node
const*, unsigned int, hash_set<tree_node const*, false,
default_hash_traits<tree_node const*> >&) (tree-chrec.c:1009)
==6104==    by 0x1AD81F9: chrec_contains_symbols_defined_in_loop(tree_node
const*, unsigned int, hash_set<tree_node const*, false,
default_hash_traits<tree_node const*> >&) (tree-chrec.c:1026)
==6104==    by 0x1AD81F9: chrec_contains_symbols_defined_in_loop(tree_node
const*, unsigned int, hash_set<tree_node const*, false,
default_hash_traits<tree_node const*> >&) (tree-chrec.c:1026)
==6104==    by 0x1AD81F9: chrec_contains_symbols_defined_in_loop(tree_node
const*, unsigned int, hash_set<tree_node const*, false,
default_hash_traits<tree_node const*> >&) (tree-chrec.c:1026)
==6104==    by 0x1AD82B5: chrec_contains_symbols_defined_in_loop(tree_node
const*, unsigned int) (tree-chrec.c:1039)
==6104==    by 0x10D09E7: compute_overall_effect_of_inner_loop
(tree-scalar-evolution.c:473)
==6104==    by 0x10D09E7: compute_overall_effect_of_inner_loop(loop*,
tree_node*) (tree-scalar-evolution.c:447)
==6104==    by 0x10D0F6E: follow_ssa_edge_inner_loop_phi
(tree-scalar-evolution.c:1114)
==6104==    by 0x10D0F6E: follow_ssa_edge_expr(loop*, gimple*, tree_node*,
gphi*, tree_node**, int) (tree-scalar-evolution.c:1183)
==6104==    by 0x10D108E: follow_ssa_edge_in_condition_phi_branch
(tree-scalar-evolution.c:1011)
==6104==    by 0x10D108E: follow_ssa_edge_in_condition_phi
(tree-scalar-evolution.c:1037)
==6104==    by 0x10D108E: follow_ssa_edge_expr(loop*, gimple*, tree_node*,
gphi*, tree_node**, int) (tree-scalar-evolution.c:1165)
==6104==    by 0x10D108E: follow_ssa_edge_in_condition_phi_branch
(tree-scalar-evolution.c:1011)
==6104==    by 0x10D108E: follow_ssa_edge_in_condition_phi
(tree-scalar-evolution.c:1037)
==6104==    by 0x10D108E: follow_ssa_edge_expr(loop*, gimple*, tree_node*,
gphi*, tree_node**, int) (tree-scalar-evolution.c:1165)
==6104==    by 0x10CEF49: analyze_evolution_in_loop
(tree-scalar-evolution.c:1396)
==6104==    by 0x10CEF49: interpret_loop_phi (tree-scalar-evolution.c:1560)
==6104==    by 0x10CEF49: analyze_scalar_evolution_1(loop*, tree_node*)
(tree-scalar-evolution.c:1974)
==6104==    by 0x10CF79A: analyze_scalar_evolution(loop*, tree_node*)
(tree-scalar-evolution.c:2038)
==6104==    by 0x1AE20E6: get_base_for_alignment_1 (tree-data-ref.c:5738)
==6104==    by 0x1AE20E6: get_base_for_alignment(tree_node*, unsigned int*)
(tree-data-ref.c:5792)
==6104==  Address 0x10 is not stack'd, malloc'd or (recently) free'd
==6104== 
during GIMPLE pass: vect
testcase.c: In function 'g':
testcase.c:6:1: internal compiler error: Segmentation fault
    6 | g (char *h)
      | ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.


$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r11-1248-20200612093253-g47fe96341d2-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/11.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-cloog --with-ppl --with-isl --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
--with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r11-1248-20200612093253-g47fe96341d2-checking-yes-rtl-df-extra-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.0.0 20200612 (experimental) (GCC)

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

* [Bug tree-optimization/95653] [11 Regression] ICE: SIGSEGV in gimple_bb (gimple.h:1847) with -ftree-loop-vectorize -fno-tree-scev-cprop
  2020-06-12 10:55 [Bug tree-optimization/95653] New: [11 Regression] ICE: SIGSEGV in gimple_bb (gimple.h:1847) with -ftree-loop-vectorize -fno-tree-scev-cprop zsojka at seznam dot cz
@ 2020-06-12 11:41 ` marxin at gcc dot gnu.org
  2020-06-12 11:41 ` marxin at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-06-12 11:41 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2020-06-12
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r11-1146-g1396fa5b91cfa0b3.

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

* [Bug tree-optimization/95653] [11 Regression] ICE: SIGSEGV in gimple_bb (gimple.h:1847) with -ftree-loop-vectorize -fno-tree-scev-cprop
  2020-06-12 10:55 [Bug tree-optimization/95653] New: [11 Regression] ICE: SIGSEGV in gimple_bb (gimple.h:1847) with -ftree-loop-vectorize -fno-tree-scev-cprop zsojka at seznam dot cz
  2020-06-12 11:41 ` [Bug tree-optimization/95653] " marxin at gcc dot gnu.org
@ 2020-06-12 11:41 ` marxin at gcc dot gnu.org
  2020-06-15  6:23 ` rguenth at gcc dot gnu.org
  2020-06-15 17:21 ` aldyh at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-06-12 11:41 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=95649
                 CC|                            |aldyh at gcc dot gnu.org

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Likely dup of PR95649.

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

* [Bug tree-optimization/95653] [11 Regression] ICE: SIGSEGV in gimple_bb (gimple.h:1847) with -ftree-loop-vectorize -fno-tree-scev-cprop
  2020-06-12 10:55 [Bug tree-optimization/95653] New: [11 Regression] ICE: SIGSEGV in gimple_bb (gimple.h:1847) with -ftree-loop-vectorize -fno-tree-scev-cprop zsojka at seznam dot cz
  2020-06-12 11:41 ` [Bug tree-optimization/95653] " marxin at gcc dot gnu.org
  2020-06-12 11:41 ` marxin at gcc dot gnu.org
@ 2020-06-15  6:23 ` rguenth at gcc dot gnu.org
  2020-06-15 17:21 ` aldyh at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-06-15  6:23 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |11.0
           Priority|P3                          |P1

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

* [Bug tree-optimization/95653] [11 Regression] ICE: SIGSEGV in gimple_bb (gimple.h:1847) with -ftree-loop-vectorize -fno-tree-scev-cprop
  2020-06-12 10:55 [Bug tree-optimization/95653] New: [11 Regression] ICE: SIGSEGV in gimple_bb (gimple.h:1847) with -ftree-loop-vectorize -fno-tree-scev-cprop zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2020-06-15  6:23 ` rguenth at gcc dot gnu.org
@ 2020-06-15 17:21 ` aldyh at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: aldyh at gcc dot gnu.org @ 2020-06-15 17:21 UTC (permalink / raw)
  To: gcc-bugs

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

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #3 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
duplicate

*** This bug has been marked as a duplicate of bug 95649 ***

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

end of thread, other threads:[~2020-06-15 17:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-12 10:55 [Bug tree-optimization/95653] New: [11 Regression] ICE: SIGSEGV in gimple_bb (gimple.h:1847) with -ftree-loop-vectorize -fno-tree-scev-cprop zsojka at seznam dot cz
2020-06-12 11:41 ` [Bug tree-optimization/95653] " marxin at gcc dot gnu.org
2020-06-12 11:41 ` marxin at gcc dot gnu.org
2020-06-15  6:23 ` rguenth at gcc dot gnu.org
2020-06-15 17:21 ` aldyh 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).