https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68419
Bug ID: 68419 Summary: ICE segfault in determine_locally_known_aggregate_parts / ipa_compute_jump_functions_for_edge Product: gcc Version: 5.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: cand at gmx dot com Target Milestone: --- Created attachment 36766 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36766&action=edit Preprocessed source Trying to build GCC 5.2 for m68k segfaults in bootstrap. Preprocessed source attached. Configure line: ../gcc-5.2.0/configure --prefix=/tmp/tmpgcc --target=m68k-elf --enable-languages=c --disable-libssp --disable-tls --enable-threads=single ../../../../gcc-5.2.0/libgcc/unwind-dw2.c: In function 'uw_init_context_1': ../../../../gcc-5.2.0/libgcc/unwind-dw2.c:1695:0: internal compiler error: Segmentation fault Valgrind output: ==27154== ==27155== Memcheck, a memory error detector ==27155== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al. ==27155== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info ==27155== Command: /tmp/gccbuild/./gcc/cc1 -quiet -I . -I . -I ../../.././gcc -I ../../../../gcc-5.2.0/libgcc -I ../../../../gcc-5.2.0/libgcc/. -I ../../../../gcc-5.2.0/libgcc/../gcc -I ../../../../gcc-5.2.0/libgcc/../include -imultilib m68000 -iprefix /tmp/gccbuild/gcc/../lib/gcc/m68k-elf/5.2.0/ -isystem /tmp/gccbuild/./gcc/include -isystem /tmp/gccbuild/./gcc/include-fixed -MD unwind-dw2.d -MF unwind-dw2.dep -MP -MT unwind-dw2.o -D IN_GCC -D CROSS_DIRECTORY_STRUCTURE -D IN_LIBGCC2 -D inhibit_libc -D HIDE_EXPORTS -isystem /tmp/tmpgcc/m68k-elf/include -isystem /tmp/tmpgcc/m68k-elf/sys-include -isystem ./include ../../../../gcc-5.2.0/libgcc/unwind-dw2.c -quiet -dumpbase unwind-dw2.c -mcpu=68000 -auxbase-strip unwind-dw2.o -g -g -g -O2 -O2 -O2 -Wextra -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -fbuilding-libgcc -fno-stack-protector -fexceptions -fvisibility=hidden -o /tmp/ccQM5a7W.s ==27155== ==27155== Conditional jump or move depends on uninitialised value(s) ==27155== at 0x7CF980: determine_locally_known_aggregate_parts(gcall*, tree_node*, tree_node*, ipa_jump_func*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x7D3D1E: ipa_compute_jump_functions_for_edge(func_body_info*, cgraph_edge*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x7D4B0C: analysis_dom_walker::before_dom_children(basic_block_def*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0xC91083: dom_walker::walk(basic_block_def*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x7D93DD: ipa_analyze_node(cgraph_node*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0xCCF973: ipcp_generate_summary() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x8AE13E: execute_ipa_summary_passes(ipa_opt_pass_d*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x5EDFFF: symbol_table::compile() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x5EF15C: symbol_table::finalize_compilation_unit() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x4CF6B6: c_write_global_declarations() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x97DB6B: compile_file() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x97EBDF: do_compile() (in /tmp/gccbuild/gcc/cc1) ==27155== ==27155== Use of uninitialised value of size 8 ==27155== at 0x7CF982: determine_locally_known_aggregate_parts(gcall*, tree_node*, tree_node*, ipa_jump_func*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x7D3D1E: ipa_compute_jump_functions_for_edge(func_body_info*, cgraph_edge*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x7D4B0C: analysis_dom_walker::before_dom_children(basic_block_def*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0xC91083: dom_walker::walk(basic_block_def*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x7D93DD: ipa_analyze_node(cgraph_node*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0xCCF973: ipcp_generate_summary() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x8AE13E: execute_ipa_summary_passes(ipa_opt_pass_d*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x5EDFFF: symbol_table::compile() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x5EF15C: symbol_table::finalize_compilation_unit() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x4CF6B6: c_write_global_declarations() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x97DB6B: compile_file() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x97EBDF: do_compile() (in /tmp/gccbuild/gcc/cc1) ==27155== ==27155== Use of uninitialised value of size 8 ==27155== at 0x7CF991: determine_locally_known_aggregate_parts(gcall*, tree_node*, tree_node*, ipa_jump_func*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x7D3D1E: ipa_compute_jump_functions_for_edge(func_body_info*, cgraph_edge*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x7D4B0C: analysis_dom_walker::before_dom_children(basic_block_def*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0xC91083: dom_walker::walk(basic_block_def*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x7D93DD: ipa_analyze_node(cgraph_node*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0xCCF973: ipcp_generate_summary() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x8AE13E: execute_ipa_summary_passes(ipa_opt_pass_d*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x5EDFFF: symbol_table::compile() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x5EF15C: symbol_table::finalize_compilation_unit() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x4CF6B6: c_write_global_declarations() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x97DB6B: compile_file() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x97EBDF: do_compile() (in /tmp/gccbuild/gcc/cc1) ==27155== ==27155== Conditional jump or move depends on uninitialised value(s) ==27155== at 0x7CF998: determine_locally_known_aggregate_parts(gcall*, tree_node*, tree_node*, ipa_jump_func*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x7D3D1E: ipa_compute_jump_functions_for_edge(func_body_info*, cgraph_edge*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x7D4B0C: analysis_dom_walker::before_dom_children(basic_block_def*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0xC91083: dom_walker::walk(basic_block_def*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x7D93DD: ipa_analyze_node(cgraph_node*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0xCCF973: ipcp_generate_summary() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x8AE13E: execute_ipa_summary_passes(ipa_opt_pass_d*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x5EDFFF: symbol_table::compile() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x5EF15C: symbol_table::finalize_compilation_unit() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x4CF6B6: c_write_global_declarations() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x97DB6B: compile_file() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x97EBDF: do_compile() (in /tmp/gccbuild/gcc/cc1) ==27155== ==27155== Invalid read of size 8 ==27155== at 0x7CF982: determine_locally_known_aggregate_parts(gcall*, tree_node*, tree_node*, ipa_jump_func*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x7D3D1E: ipa_compute_jump_functions_for_edge(func_body_info*, cgraph_edge*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x7D4B0C: analysis_dom_walker::before_dom_children(basic_block_def*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0xC91083: dom_walker::walk(basic_block_def*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x7D93DD: ipa_analyze_node(cgraph_node*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0xCCF973: ipcp_generate_summary() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x8AE13E: execute_ipa_summary_passes(ipa_opt_pass_d*) (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x5EDFFF: symbol_table::compile() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x5EF15C: symbol_table::finalize_compilation_unit() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x4CF6B6: c_write_global_declarations() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x97DB6B: compile_file() (in /tmp/gccbuild/gcc/cc1) ==27155== by 0x97EBDF: do_compile() (in /tmp/gccbuild/gcc/cc1) ==27155== Address 0x1 is not stack'd, malloc'd or (recently) free'd ==27155== ../../../../gcc-5.2.0/libgcc/unwind-dw2.c: In function 'uw_init_context_1': ../../../../gcc-5.2.0/libgcc/unwind-dw2.c:1695:0: internal compiler error: Muistialueen ylitys ^ Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions.