Bug 110440 - [14 regression] ICE when building pixman
Summary: [14 regression] ICE when building pixman
Status: RESOLVED DUPLICATE of bug 110443
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 14.0
: P3 normal
Target Milestone: 14.0
Assignee: Richard Biener
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2023-06-27 18:47 UTC by Sam James
Modified: 2023-06-28 09:13 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2023-06-28 00:00:00


Attachments
pixman-bits-image.c.i (36.76 KB, text/plain)
2023-06-27 18:47 UTC, Sam James
Details
reduced.i (237 bytes, text/plain)
2023-06-27 19:36 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James 2023-06-27 18:47:40 UTC
Created attachment 55405 [details]
pixman-bits-image.c.i

```
FAILED: pixman/libpixman-1.so.0.42.2.p/pixman-bits-image.c.o
aarch64-unknown-linux-gnu-gcc -Ipixman/libpixman-1.so.0.42.2.p -Ipixman -I../pixman-0.42.2/pixman -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu99 -Wdeclaration-after-statement
 -fno-strict-aliasing -fvisibility=hidden -Wundef -ftrapping-math -Wno-unused-local-typedefs -DHAVE_CONFIG_H -O3 -pipe -mcpu=native -fdiagnostics-color=always -fPIC -pthread -MD -MQ pixman/libpixman-1.so.0.42
.2.p/pixman-bits-image.c.o -MF pixman/libpixman-1.so.0.42.2.p/pixman-bits-image.c.o.d -o pixman/libpixman-1.so.0.42.2.p/pixman-bits-image.c.o -c ../pixman-0.42.2/pixman/pixman-bits-image.c
during GIMPLE pass: vect
../pixman-0.42.2/pixman/pixman-bits-image.c: In function ‘dest_write_back_wide’:
../pixman-0.42.2/pixman/pixman-bits-image.c:1172:1: internal compiler error: Segmentation fault
 1172 | dest_write_back_wide (pixman_iter_t *iter)
      | ^~~~~~~~~~~~~~~~~~~~
0xaaaaafb19b1f crash_signal
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/toplev.cc:314
0xaaaab0c0b7b0 vec<_slp_tree*, va_heap, vl_embed>::operator[](unsigned int)
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/vec.h:890
0xaaaab0c0b7b0 vec<_slp_tree*, va_heap, vl_ptr>::operator[](unsigned int)
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/vec.h:1505
0xaaaab0c0b7b0 vect_get_gather_scatter_ops
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-stmts.cc:3109
0xaaaab0c1eb3b vectorizable_load
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-stmts.cc:10254
0xaaaab0c28cc3 vect_transform_stmt(vec_info*, _stmt_vec_info*, gimple_stmt_iterator*, _slp_tree*, _slp_instance*)
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-stmts.cc:12031
0xaaaaafe12a47 vect_schedule_slp_node
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:9002
0xaaaaafe2657b vect_schedule_scc
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:9197
0xaaaaafe2651f vect_schedule_scc
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:9178
0xaaaaafe2651f vect_schedule_scc
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:9178
0xaaaaafe2651f vect_schedule_scc
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:9178
0xaaaaafe2651f vect_schedule_scc
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:9178
0xaaaaafe2651f vect_schedule_scc
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:9178
0xaaaaafe2651f vect_schedule_scc
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:9178
0xaaaaafe2651f vect_schedule_scc
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:9178
0xaaaaafe2651f vect_schedule_scc
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:9178
0xaaaaafe2651f vect_schedule_scc
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:9178
0xaaaaafe26bdf vect_schedule_slp(vec_info*, vec<_slp_instance*, va_heap, vl_ptr> const&)
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:9337
0xaaaaafdf8567 vect_transform_loop(_loop_vec_info*, gimple*)
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-loop.cc:11270
0xaaaaafe373e7 vect_transform_loops
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vectorizer.cc:1004
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
```

```
gcc (Gentoo 14.0.0 p, commit 6cb33e2f39e289ec4f25f845d8153053147c5c49) 14.0.0 20230627 (experimental) 3c52dff792878306515056ecd94c8aa909f388fb
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```
Comment 1 Sam James 2023-06-27 18:47:53 UTC
gcc -O3 -c ... is enough to repro.
Comment 2 Sam James 2023-06-27 19:36:38 UTC
Created attachment 55406 [details]
reduced.i
Comment 3 Sam James 2023-06-28 05:51:15 UTC
I've hit it with another package (basis_universal) but the ICE looks identical and it's C++ so I won't worry about reducing it unless someone asks me to.

```
during GIMPLE pass: vect
/var/tmp/portage/games-util/basis_universal-1.16.3/work/basis_universal-1.16.3/encoder/basisu_etc.cpp: In member function ‘void basisu::etc1_optimizer::refine_solution(uint32_t)’:
/var/tmp/portage/games-util/basis_universal-1.16.3/work/basis_universal-1.16.3/encoder/basisu_etc.cpp:846:14: internal compiler error: Segmentation fault
  846 |         void etc1_optimizer::refine_solution(uint32_t max_refinement_trials)
      |              ^~~~~~~~~~~~~~
0xaaaacb821d7f crash_signal
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/toplev.cc:314
0xaaaacc8834b0 vec<_slp_tree*, va_heap, vl_embed>::operator[](unsigned int)
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/vec.h:890
0xaaaacc8834b0 vec<_slp_tree*, va_heap, vl_ptr>::operator[](unsigned int)
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/vec.h:1505
0xaaaacc8834b0 vect_get_gather_scatter_ops
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-stmts.cc:3109
0xaaaacc89683b vectorizable_load
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-stmts.cc:10254
0xaaaacc8a09c3 vect_transform_stmt(vec_info*, _stmt_vec_info*, gimple_stmt_iterator*, _slp_tree*, _slp_instance*)
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-stmts.cc:12031
0xaaaacbb1aaa7 vect_schedule_slp_node
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:9002
0xaaaacbb2e5db vect_schedule_scc
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:9197
0xaaaacbb2e57f vect_schedule_scc
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:9178
0xaaaacbb2e57f vect_schedule_scc
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:9178
0xaaaacbb2e57f vect_schedule_scc
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:9178
0xaaaacbb2e57f vect_schedule_scc
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:9178
0xaaaacbb2e57f vect_schedule_scc
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:9178
0xaaaacbb2ec3f vect_schedule_slp(vec_info*, vec<_slp_instance*, va_heap, vl_ptr> const&)
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:9337
0xaaaacbb005c7 vect_transform_loop(_loop_vec_info*, gimple*)
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-loop.cc:11270
0xaaaacbb3f447 vect_transform_loops
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vectorizer.cc:1004
0xaaaacbb3fb23 try_vectorize_loop_1
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vectorizer.cc:1150
0xaaaacbb3fb23 try_vectorize_loop
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vectorizer.cc:1180
0xaaaacbb4018f execute
        /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vectorizer.cc:1296
Please submit a full bug report, with preprocessed source (by using -freport-bug).
```
Comment 4 Richard Biener 2023-06-28 07:54:58 UTC
I will have a look.
Comment 5 Richard Biener 2023-06-28 09:13:29 UTC
duplicate

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