https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122512
Bug ID: 122512
Summary: Testsuite failures with -fdump-ipa-inline-details
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: testsuite
Assignee: unassigned at gcc dot gnu.org
Reporter: anlauf at gcc dot gnu.org
Target Milestone: ---
Recently I am seeing failures (ICEs) in the gfortran testsuite, e.g.:
% gfc-16 pr79966.f90 -fdump-ipa-inline-details
during IPA pass: inline
pr79966.f90:105:6:
105 | use TensorProducts
| ^
internal compiler error: Segmentation fault
0x3886319 internal_error(char const*, ...)
../../gcc-trunk/gcc/diagnostic-global-context.cc:787
0x1a994f0 crash_signal
../../gcc-trunk/gcc/toplev.cc:323
0x12fde8c symtab_node::dump_base(_IO_FILE*)
../../gcc-trunk/gcc/symtab.cc:907
0x1fae76e varpool_node::dump(_IO_FILE*)
../../gcc-trunk/gcc/varpool.cc:212
0x12fe9b7 symtab_node::dump(_IO_FILE*)
../../gcc-trunk/gcc/symtab.cc:1029
0x12fea4c symbol_table::dump(_IO_FILE*)
../../gcc-trunk/gcc/symtab.cc:1045
0x190e033 execute_todo
../../gcc-trunk/gcc/passes.cc:2169
Running under valgrind, I see an invalid read:
==13220== Invalid read of size 1
==13220== at 0x5425BF2: strlen (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==13220== by 0x650F7C0: __printf_buffer (in /lib64/libc.so.6)
==13220== by 0x650FF60: __vfprintf_internal (in /lib64/libc.so.6)
==13220== by 0x65047E5: fprintf (in /lib64/libc.so.6)
==13220== by 0x12FDE8C: symtab_node::dump_base(_IO_FILE*) (symtab.cc:907)
==13220== by 0x1FAE76E: varpool_node::dump(_IO_FILE*) (varpool.cc:212)
==13220== by 0x12FE9B7: symtab_node::dump(_IO_FILE*) (symtab.cc:1029)
==13220== by 0x12FEA4C: symbol_table::dump(_IO_FILE*) (symtab.cc:1045)
==13220== by 0x190E033: execute_todo(unsigned int) (passes.cc:2169)
==13220== by 0x190F144: execute_one_pass(opt_pass*) (passes.cc:2694)
==13220== by 0x191000F: execute_ipa_pass_list(opt_pass*) (passes.cc:3101)
==13220== by 0x132A52C: ipa_passes() (cgraphunit.cc:2295)
==13220== Address 0x65746365746f7270 is not stack'd, malloc'd or (recently)
free'd