https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63520
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Markus Trippelsdorf from comment #6) > I gave the patch a quick try. Unfortunately I get stack overflows in stage2. > > ../../gcc/gcc/coverage.c:208:1: internal compiler error: Segmentation fault > read_counts_file (void) > ^ > xg++: internal compiler error: Segmentation fault (program cc1plus) > 0x100079e7 execute > ../../gcc/gcc/gcc.c:2912 > 0x1000dc23 do_spec_1 > ../../gcc/gcc/gcc.c:4837 > 0x10012503 process_brace_body > ../../gcc/gcc/gcc.c:6120 > 0x10012203 handle_braces > ../../gcc/gcc/gcc.c:6034 > 0x100105d3 do_spec_1 > ../../gcc/gcc/gcc.c:5491 > 0x10012503 process_brace_body > ../../gcc/gcc/gcc.c:6120 > 0x10012203 handle_braces > ../../gcc/gcc/gcc.c:6034 > 0x100105d3 do_spec_1 > ../../gcc/gcc/gcc.c:5491 > 0x10010b0b do_spec_1 > ../../gcc/gcc/gcc.c:5606 > 0x10012503 process_brace_body > ../../gcc/gcc/gcc.c:6120 > 0x10012203 handle_braces > ../../gcc/gcc/gcc.c:6034 > 0x100105d3 do_spec_1 > ../../gcc/gcc/gcc.c:5491 > 0x10012503 process_brace_body > ../../gcc/gcc/gcc.c:6120 > 0x10012203 handle_braces > ../../gcc/gcc/gcc.c:6034 > 0x100105d3 do_spec_1 > ../../gcc/gcc/gcc.c:5491 > 0x10012503 process_brace_body > ../../gcc/gcc/gcc.c:6120 > 0x10012203 handle_braces > ../../gcc/gcc/gcc.c:6034 > 0x100105d3 do_spec_1 > ../../gcc/gcc/gcc.c:5491 > 0x10012503 process_brace_body > ../../gcc/gcc/gcc.c:6120 > 0x10012203 handle_braces > ../../gcc/gcc/gcc.c:6034 > Please submit a full bug report, > > This might be related to PR63289. That backtrace is not related to what happened at all, the thing is just that cc1plus ICEd and the gcc driver decided (incorrectly) to emit backtrace for where it caught the signal. You really need to attach debugger to the segfaulting cc1plus to see where it crashed.