https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89188
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> --- One probably related: $ valgrind --trace-children=yes /home/marxin/BIG/bin/s390x/dev/shm/buildbot/install/gcc/bin/s390x-linux-gnu-gcc ice.ii -fnon-call-exceptions -O2 -c ==22733== Memcheck, a memory error detector ==22733== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==22733== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info ==22733== Command: /home/marxin/BIG/bin/s390x/dev/shm/buildbot/install/gcc/bin/s390x-linux-gnu-gcc ice.ii -fnon-call-exceptions -O2 -c ==22733== ==22734== Memcheck, a memory error detector ==22734== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==22734== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info ==22734== Command: /home/marxin/BIG/bin/s390x/dev/shm/buildbot/install/gcc/bin/../lib/gcc/s390x-linux-gnu/9.0.1/cc1plus -fpreprocessed ice.ii -quiet -dumpbase ice.ii -m64 -mzarch -march=z900 -auxbase ice -O2 -fnon-call-exceptions -o /tmp/ccvedZHY.s ==22734== ==22734== Invalid write of size 4 ==22734== at 0x79870F: quick_push (vec.h:978) ==22734== by 0x79870F: quick_push (vec.h:1722) ==22734== by 0x79870F: inverted_post_order_compute(vec<int, va_heap, vl_ptr>*, simple_bitmap_def**) (cfganal.c:875) ==22734== by 0x9D71F6: compute_available(simple_bitmap_def**, simple_bitmap_def**, simple_bitmap_def**, simple_bitmap_def**) (lcm.c:515) ==22734== by 0x10846C0: compute_cprop_data (cprop.c:644) ==22734== by 0x10846C0: one_cprop_pass (cprop.c:1820) ==22734== by 0x10846C0: execute_rtl_cprop (cprop.c:1932) ==22734== by 0x10846C0: (anonymous namespace)::pass_rtl_cprop::execute(function*) (cprop.c:1970) ==22734== by 0xA7EAD4: execute_one_pass(opt_pass*) (passes.c:2483) ==22734== by 0xA7F217: execute_pass_list_1(opt_pass*) (passes.c:2569) ==22734== by 0xA7F229: execute_pass_list_1(opt_pass*) (passes.c:2570) ==22734== by 0xA7F268: execute_pass_list(function*, opt_pass*) (passes.c:2580) ==22734== by 0x7D8DBC: cgraph_node::expand() (cgraphunit.c:2195) ==22734== by 0x7D9C5B: expand_all_functions (cgraphunit.c:2333) ==22734== by 0x7D9C5B: symbol_table::compile() [clone .part.71] (cgraphunit.c:2684) ==22734== by 0x7DBC7C: compile (cgraphunit.c:2596) ==22734== by 0x7DBC7C: symbol_table::finalize_compilation_unit() (cgraphunit.c:2862) ==22734== by 0xB3690A: compile_file() (toplev.c:481) ==22734== by 0x5AB2D3: do_compile (toplev.c:2176) ==22734== by 0x5AB2D3: toplev::main(int, char**) (toplev.c:2311) ==22734== Address 0x62a9a34 is 0 bytes after a block of size 100 alloc'd ==22734== at 0x403077F: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==22734== by 0x121257F: xrealloc (xmalloc.c:177) ==22734== by 0x798755: reserve<int> (vec.h:290) ==22734== by 0x798755: reserve (vec.h:1625) ==22734== by 0x798755: reserve_exact (vec.h:1645) ==22734== by 0x798755: inverted_post_order_compute(vec<int, va_heap, vl_ptr>*, simple_bitmap_def**) (cfganal.c:801) ==22734== by 0x9D71F6: compute_available(simple_bitmap_def**, simple_bitmap_def**, simple_bitmap_def**, simple_bitmap_def**) (lcm.c:515) ==22734== by 0x10846C0: compute_cprop_data (cprop.c:644) ==22734== by 0x10846C0: one_cprop_pass (cprop.c:1820) ==22734== by 0x10846C0: execute_rtl_cprop (cprop.c:1932) ==22734== by 0x10846C0: (anonymous namespace)::pass_rtl_cprop::execute(function*) (cprop.c:1970) ==22734== by 0xA7EAD4: execute_one_pass(opt_pass*) (passes.c:2483) ==22734== by 0xA7F217: execute_pass_list_1(opt_pass*) (passes.c:2569) ==22734== by 0xA7F229: execute_pass_list_1(opt_pass*) (passes.c:2570) ==22734== by 0xA7F268: execute_pass_list(function*, opt_pass*) (passes.c:2580) ==22734== by 0x7D8DBC: cgraph_node::expand() (cgraphunit.c:2195) ==22734== by 0x7D9C5B: expand_all_functions (cgraphunit.c:2333) ==22734== by 0x7D9C5B: symbol_table::compile() [clone .part.71] (cgraphunit.c:2684) ==22734== by 0x7DBC7C: compile (cgraphunit.c:2596) ==22734== by 0x7DBC7C: symbol_table::finalize_compilation_unit() (cgraphunit.c:2862) ==22734== ==22734== Use of uninitialised value of size 8 ==22734== at 0x79832B: ei_container (basic-block.h:382) ==22734== by 0x79832B: ei_edge (basic-block.h:448) ==22734== by 0x79832B: inverted_post_order_compute(vec<int, va_heap, vl_ptr>*, simple_bitmap_def**) (cfganal.c:855) ==22734== by 0x9D71F6: compute_available(simple_bitmap_def**, simple_bitmap_def**, simple_bitmap_def**, simple_bitmap_def**) (lcm.c:515) ==22734== by 0x10846C0: compute_cprop_data (cprop.c:644) ==22734== by 0x10846C0: one_cprop_pass (cprop.c:1820) ==22734== by 0x10846C0: execute_rtl_cprop (cprop.c:1932) ==22734== by 0x10846C0: (anonymous namespace)::pass_rtl_cprop::execute(function*) (cprop.c:1970) ==22734== by 0xA7EAD4: execute_one_pass(opt_pass*) (passes.c:2483) ==22734== by 0xA7F217: execute_pass_list_1(opt_pass*) (passes.c:2569) ==22734== by 0xA7F229: execute_pass_list_1(opt_pass*) (passes.c:2570) ==22734== by 0xA7F268: execute_pass_list(function*, opt_pass*) (passes.c:2580) ==22734== by 0x7D8DBC: cgraph_node::expand() (cgraphunit.c:2195) ==22734== by 0x7D9C5B: expand_all_functions (cgraphunit.c:2333) ==22734== by 0x7D9C5B: symbol_table::compile() [clone .part.71] (cgraphunit.c:2684) ==22734== by 0x7DBC7C: compile (cgraphunit.c:2596) ==22734== by 0x7DBC7C: symbol_table::finalize_compilation_unit() (cgraphunit.c:2862) ==22734== by 0xB3690A: compile_file() (toplev.c:481) ==22734== by 0x5AB2D3: do_compile (toplev.c:2176) ==22734== by 0x5AB2D3: toplev::main(int, char**) (toplev.c:2311) ==22734== ==22734== Invalid read of size 8 ==22734== at 0x79832B: ei_container (basic-block.h:382) ==22734== by 0x79832B: ei_edge (basic-block.h:448) ==22734== by 0x79832B: inverted_post_order_compute(vec<int, va_heap, vl_ptr>*, simple_bitmap_def**) (cfganal.c:855) ==22734== by 0x9D71F6: compute_available(simple_bitmap_def**, simple_bitmap_def**, simple_bitmap_def**, simple_bitmap_def**) (lcm.c:515) ==22734== by 0x10846C0: compute_cprop_data (cprop.c:644) ==22734== by 0x10846C0: one_cprop_pass (cprop.c:1820) ==22734== by 0x10846C0: execute_rtl_cprop (cprop.c:1932) ==22734== by 0x10846C0: (anonymous namespace)::pass_rtl_cprop::execute(function*) (cprop.c:1970) ==22734== by 0xA7EAD4: execute_one_pass(opt_pass*) (passes.c:2483) ==22734== by 0xA7F217: execute_pass_list_1(opt_pass*) (passes.c:2569) ==22734== by 0xA7F229: execute_pass_list_1(opt_pass*) (passes.c:2570) ==22734== by 0xA7F268: execute_pass_list(function*, opt_pass*) (passes.c:2580) ==22734== by 0x7D8DBC: cgraph_node::expand() (cgraphunit.c:2195) ==22734== by 0x7D9C5B: expand_all_functions (cgraphunit.c:2333) ==22734== by 0x7D9C5B: symbol_table::compile() [clone .part.71] (cgraphunit.c:2684) ==22734== by 0x7DBC7C: compile (cgraphunit.c:2596) ==22734== by 0x7DBC7C: symbol_table::finalize_compilation_unit() (cgraphunit.c:2862) ==22734== by 0xB3690A: compile_file() (toplev.c:481) ==22734== by 0x5AB2D3: do_compile (toplev.c:2176) ==22734== by 0x5AB2D3: toplev::main(int, char**) (toplev.c:2311) ==22734== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==22734== during RTL pass: cprop ice.ii: In function ‘int main()’: ice.ii:8:5: internal compiler error: Segmentation fault 8 | } | ^