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

            Bug ID: 122745
           Summary: [16 regression] ICE when building qtgui-5.15.18
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
                CC: amacleod at redhat dot com
  Target Milestone: ---

```
$ g++ -c qpaintengine_raster.ii -O2 -wrapper valgrind,-q
==82605== Stack overflow in thread #1: can't grow stack to 0x1ffe001000
==82605== Can't extend stack to 0x1ffe000cf8 during signal delivery for thread
1:
==82605==   no stack segment
==82605==
==82605== Process terminating with default action of signal 11 (SIGSEGV)
==82605==  Access not within mapped region at address 0x1FFE000CF8
==82605== Stack overflow in thread #1: can't grow stack to 0x1ffe001000
==82605==    at 0x68FE6D5: gori_compute::edge_range_p(vrange&, edge_def*,
tree_node*, range_query&) (gimple-range-gori.cc:1389)
==82605==  If you believe this happened as a result of a stack
==82605==  overflow in your program's main thread (unlikely but
==82605==  possible), you can try to increase the size of the
==82605==  main thread stack using the --main-stacksize= flag.
==82605==  The main thread stack size used in this run was 16777216.
```

```
int QClipDatainitialize_rects, QClipDatainitialize_firstInBand;
void QClipDatainitialize(int y) {
  while (QClipDatainitialize_firstInBand) {
    int currMinY, currMaxY;
    while (y < currMinY)
      ++y;
    while (QClipDatainitialize_rects)
      ;
    while (y < currMaxY)
      ++y;
  }
}
```

```
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/16/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/16
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/16/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/16
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/16/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/16/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/16/include/g++-v16
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/16/python
--enable-libphobos --enable-objc-gc
--enable-languages=c,c++,d,objc,obj-c++,fortran,ada,rust --enable-obsolete
--enable-secureplt --disable-werror --with-system-zlib --enable-nls
--without-included-gettext --disable-libunwind-exceptions
--enable-checking=yes,extra,rtl,df --with-bugurl=https://bugs.gentoo.org/
--with-pkgversion='Gentoo 16.0.9999 p, commit
932d6056fa09741e36d27e1501c437b4a230dda1' --with-gcc-major-version-only
--enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point
--enable-targets=all --enable-offload-defaulted
--enable-offload-targets=nvptx-none --enable-libgomp --disable-libssp
--enable-libada --enable-cet --disable-systemtap --enable-valgrind-annotations
--disable-vtable-verify --disable-libvtv --with-zstd --without-isl
--enable-default-pie --enable-host-pie --enable-host-bind-now
--enable-default-ssp --disable-fixincludes
--with-gxx-libcxx-include-dir=/usr/include/c++/v1 --disable-libgdiagnostics
--with-build-config='bootstrap-lto bootstrap-cet'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.0 20251117 (experimental)
e55195c4f2f809419c25b9d7c2ffdcc017f010a4 (Gentoo 16.0.9999 p, commit
932d6056fa09741e36d27e1501c437b4a230dda1)
```

Reply via email to