https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96723
Bug ID: 96723 Summary: [11 Regression] ICE: SIGSEGV: infinite recursion in ana::region::get_subregions_for_binding with -Og -fanalyzer Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Created attachment 49086 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49086&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-g++ -Og -fanalyzer testcase.C x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault signal terminated program cc1plus Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. (gdb) bt #0 0x00007ffff772a0b6 in _int_malloc () from /lib64/libc.so.6 #1 0x00007ffff772b9e4 in malloc () from /lib64/libc.so.6 #2 0x0000000001fec7f5 in operator new(unsigned long) () #3 0x00000000016c75e3 in ana::region_model_manager::get_field_region (this=this@entry=0x7fffffffcc10, parent=parent@entry=0x10336890, field=field@entry=0x7ffff75e8f00) at /repo/gcc-trunk/gcc/analyzer/region-model.h:2352 #4 0x00000000016ac2f6 in ana::region::get_subregions_for_binding (this=0x10336890, mgr=0x7fffffffcc10, relative_bit_offset=..., size_in_bits=..., type=0x7ffff74ad000, out=0x7fffffffbec8) at /repo/gcc-trunk/gcc/analyzer/region.cc:314 #5 0x00000000016ac33f in ana::region::get_subregions_for_binding (this=0x10336510, mgr=0x7fffffffcc10, relative_bit_offset=..., size_in_bits=..., type=0x7ffff74ad000, out=0x7fffffffbec8) at /repo/gcc-trunk/gcc/analyzer/region.cc:315 #6 0x00000000016ac33f in ana::region::get_subregions_for_binding (this=0x10336190, mgr=0x7fffffffcc10, relative_bit_offset=..., size_in_bits=..., type=0x7ffff74ad000, out=0x7fffffffbec8) at /repo/gcc-trunk/gcc/analyzer/region.cc:315 #7 0x00000000016ac33f in ana::region::get_subregions_for_binding (this=0x10335e10, mgr=0x7fffffffcc10, relative_bit_offset=..., size_in_bits=..., type=0x7ffff74ad000, out=0x7fffffffbec8) ... $ x86_64-pc-linux-gnu-g++ -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest/bin/x86_64-pc-linux-gnu-g++ COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r11-2779-20200820091258-g1763ec9b20c-checking-yes-rtl-df-extra-nobootstrap-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 --disable-bootstrap --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-2779-20200820091258-g1763ec9b20c-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 11.0.0 20200820 (experimental) (GCC)