public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/102645] New: ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault
@ 2021-10-07 21:35 zhendong.su at inf dot ethz.ch
  2021-10-07 21:37 ` [Bug tree-optimization/102645] [12 Regression] " pinskia at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: zhendong.su at inf dot ethz.ch @ 2021-10-07 21:35 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102645
           Summary: ICE on valid code at -O3 on x86_64-linux-gnu:
                    Segmentation fault
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zhendong.su at inf dot ethz.ch
  Target Milestone: ---

[618] % gcctk -v
Using built-in specs.
COLLECT_GCC=gcctk
COLLECT_LTO_WRAPPER=/local/suz-local/software/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-trunk/configure --disable-bootstrap
--prefix=/local/suz-local/software/local/gcc-trunk --enable-languages=c,c++
--disable-werror --enable-multilib --with-system-zlib
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.0.0 20211007 (experimental) [master r12-4238-gfba228e259d] (GCC) 
[619] % 
[619] % gcctk -O2 small.c; ./a.out
[620] % 
[620] % gcctk -O3 small.c
during GIMPLE pass: unrolljam
small.c: In function ‘main’:
small.c:3:5: internal compiler error: Segmentation fault
    3 | int main() {
      |     ^~~~
0xe78d7f crash_signal
        ../../gcc-trunk/gcc/toplev.c:326
0x1027191 tree_transform_and_unroll_loop(loop*, unsigned int, edge_def*,
tree_niter_desc*, void (*)(loop*, void*), void*)
        ../../gcc-trunk/gcc/tree-ssa-loop-manip.c:1424
0x1a97e6b tree_loop_unroll_and_jam
        ../../gcc-trunk/gcc/gimple-loop-jam.c:590
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
[621] % 
[621] % cat small.c
volatile int a[1], d;
int b, c;
int main() {
  if (b && c) {
    for (c = 0; c < 3; c++) {
      for (int e = 0; e < 6; e++)
        for (int f = 0; f < 12; f++)
          d && a[0];
      continue;
    }
  }
  return 0;
}

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

* [Bug tree-optimization/102645] [12 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault
  2021-10-07 21:35 [Bug tree-optimization/102645] New: ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault zhendong.su at inf dot ethz.ch
@ 2021-10-07 21:37 ` pinskia at gcc dot gnu.org
  2021-10-08  6:13 ` rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-10-07 21:37 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE on valid code at -O3 on |[12 Regression] ICE on
                   |x86_64-linux-gnu:           |valid code at -O3 on
                   |Segmentation fault          |x86_64-linux-gnu:
                   |                            |Segmentation fault
   Target Milestone|---                         |12.0
            Version|unknown                     |12.0

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

* [Bug tree-optimization/102645] [12 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault
  2021-10-07 21:35 [Bug tree-optimization/102645] New: ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault zhendong.su at inf dot ethz.ch
  2021-10-07 21:37 ` [Bug tree-optimization/102645] [12 Regression] " pinskia at gcc dot gnu.org
@ 2021-10-08  6:13 ` rguenth at gcc dot gnu.org
  2021-10-08 14:34 ` rsandifo at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-10-08  6:13 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
                 CC|                            |rsandifo at gcc dot gnu.org
           Priority|P3                          |P1
   Last reconfirmed|                            |2021-10-08
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed, indeed looks like a dup of that PR.

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

* [Bug tree-optimization/102645] [12 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault
  2021-10-07 21:35 [Bug tree-optimization/102645] New: ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault zhendong.su at inf dot ethz.ch
  2021-10-07 21:37 ` [Bug tree-optimization/102645] [12 Regression] " pinskia at gcc dot gnu.org
  2021-10-08  6:13 ` rguenth at gcc dot gnu.org
@ 2021-10-08 14:34 ` rsandifo at gcc dot gnu.org
  2022-02-15 12:57 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2021-10-08 14:34 UTC (permalink / raw)
  To: gcc-bugs

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

rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> changed:

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

--- Comment #2 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #1)
> Confirmed, indeed looks like a dup of that
Looks like it's a separate thing from PR102385, but caused
by the same commit (g:62acc72a957b5614)

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

* [Bug tree-optimization/102645] [12 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault
  2021-10-07 21:35 [Bug tree-optimization/102645] New: ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault zhendong.su at inf dot ethz.ch
                   ` (2 preceding siblings ...)
  2021-10-08 14:34 ` rsandifo at gcc dot gnu.org
@ 2022-02-15 12:57 ` rguenth at gcc dot gnu.org
  2022-02-15 15:25 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-02-15 12:57 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |needs-bisection

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
No longer ICEs for me, but the fixes I'm aware of shouldn't have affected it. 
What fixed it?

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

* [Bug tree-optimization/102645] [12 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault
  2021-10-07 21:35 [Bug tree-optimization/102645] New: ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault zhendong.su at inf dot ethz.ch
                   ` (3 preceding siblings ...)
  2022-02-15 12:57 ` rguenth at gcc dot gnu.org
@ 2022-02-15 15:25 ` jakub at gcc dot gnu.org
  2022-02-22 10:08 ` marxin at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-02-15 15:25 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org
           Keywords|needs-bisection             |

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started to ICE with r12-3876-g4a960d548b7d7d942f316c5295f6d849b74214f5
Stopped ICEing with r12-5264-gd1ca8aeaf34a717dffd8f4a1f0333d25c7d1c904
I think we want the testcase for the testsuite in any case.

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

* [Bug tree-optimization/102645] [12 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault
  2021-10-07 21:35 [Bug tree-optimization/102645] New: ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault zhendong.su at inf dot ethz.ch
                   ` (4 preceding siblings ...)
  2022-02-15 15:25 ` jakub at gcc dot gnu.org
@ 2022-02-22 10:08 ` marxin at gcc dot gnu.org
  2022-03-22  7:42 ` cvs-commit at gcc dot gnu.org
  2022-03-22 10:06 ` jakub at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-02-22 10:08 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
@Richi: Can you please add the testcase and close this issue?

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

* [Bug tree-optimization/102645] [12 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault
  2021-10-07 21:35 [Bug tree-optimization/102645] New: ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault zhendong.su at inf dot ethz.ch
                   ` (5 preceding siblings ...)
  2022-02-22 10:08 ` marxin at gcc dot gnu.org
@ 2022-03-22  7:42 ` cvs-commit at gcc dot gnu.org
  2022-03-22 10:06 ` jakub at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-03-22  7:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:7d5ee289510f0c7ac2c318e396c8a6f0d0d93db0

commit r12-7750-g7d5ee289510f0c7ac2c318e396c8a6f0d0d93db0
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue Mar 22 08:41:02 2022 +0100

    testsuite: Add testcase for no longer failing PR [PR102645]

    This test started ICEing with r12-3876 but stopped with r12-5264.

    2022-03-22  Jakub Jelinek  <jakub@redhat.com>

            PR tree-optimization/102645
            * gcc.c-torture/compile/pr102645.c: New test.

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

* [Bug tree-optimization/102645] [12 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault
  2021-10-07 21:35 [Bug tree-optimization/102645] New: ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault zhendong.su at inf dot ethz.ch
                   ` (6 preceding siblings ...)
  2022-03-22  7:42 ` cvs-commit at gcc dot gnu.org
@ 2022-03-22 10:06 ` jakub at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-03-22 10:06 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.

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

end of thread, other threads:[~2022-03-22 10:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-07 21:35 [Bug tree-optimization/102645] New: ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault zhendong.su at inf dot ethz.ch
2021-10-07 21:37 ` [Bug tree-optimization/102645] [12 Regression] " pinskia at gcc dot gnu.org
2021-10-08  6:13 ` rguenth at gcc dot gnu.org
2021-10-08 14:34 ` rsandifo at gcc dot gnu.org
2022-02-15 12:57 ` rguenth at gcc dot gnu.org
2022-02-15 15:25 ` jakub at gcc dot gnu.org
2022-02-22 10:08 ` marxin at gcc dot gnu.org
2022-03-22  7:42 ` cvs-commit at gcc dot gnu.org
2022-03-22 10:06 ` jakub 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).