https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118987
Bug ID: 118987 Summary: ICE: error reporting routines re-entered. (SIGSEGV in calculate_dominance_info (dominance.cc:724)) with -fdump-passes -fgnu-tm Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Compiler output: $ echo > testcase.c $ x86_64-pc-linux-gnu-gcc -fdump-passes -fgnu-tm testcase.c -wrapper valgrind,-q ... ==23614== Invalid read of size 4 ==23614== at 0x114ECAC: calculate_dominance_info(cdi_direction, bool) (dominance.cc:724) ==23614== by 0x1693D4F: gate_tm_init() (trans-mem.cc:2100) ==23614== by 0x15353EA: dump_one_pass (passes.cc:970) ==23614== by 0x15353EA: dump_pass_list(opt_pass*, int) (passes.cc:992) ==23614== by 0x1536658: gcc::pass_manager::dump_passes() const (passes.cc:1020) ==23614== by 0x111401C: symbol_table::finalize_compilation_unit() (cgraphunit.cc:2570) ==23614== by 0x168D0E1: compile_file() (toplev.cc:479) ==23614== by 0xF0137D: do_compile (toplev.cc:2208) ==23614== by 0xF0137D: toplev::main(int, char**) (toplev.cc:2370) ==23614== by 0xF02BCD: main (main.cc:39) ==23614== Address 0x34 is not stack'd, malloc'd or (recently) free'd ==23614== internal compiler error: error reporting routines re-entered. 0x2ded761 internal_error(char const*, ...) /repo/gcc-trunk/gcc/diagnostic-global-context.cc:517 ... $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-20250220185347-r15-7656-g25fa8d6dc30ace-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/15.0.1/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 --enable-libsanitizer --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-20250220185347-r15-7656-g25fa8d6dc30ace-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.1 20250220 (experimental) (GCC)