https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66488
Bug ID: 66488 Summary: -fipa-pta -flto segfault Product: gcc Version: 5.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: sthalik at misaki dot pl Target Milestone: --- GCC from today's 5-branch segfaults on -fipa-pta -flto with the following backtrace: (gdb) bt full #0 0x0000000000432e87 in ggc_free (p=<optimized out>) at ../../gcc/ggc-page.c:1645 bit_offset = 4160749604 word = 4290772993 bit = 4 order = 5 size = 32 #1 0x000000000079b1c1 in release<basic_block_def*, va_gc> (v=@0x20a89418: 0x10afa498) at ../../gcc/vec.h:361 No locals. #2 vec_free<basic_block_def*, va_gc> (v=@0x20a89418: 0x10afa498) at ../../gcc/vec.h:608 No locals. #3 delete_tree_cfg_annotations () at ../../gcc/tree-cfg.c:2577 No locals. #4 0x000000000046ad5b in (anonymous namespace)::pass_expand::execute (this=<optimized out>, fun=<optimized out>) at ../../gcc/cfgexpand.c:6141 bb = <optimized out> init_block = 0x0 blocks = <optimized out> ei = <optimized out> e = 0x0 var_ret_seq = 0x0 i = <optimized out> __FUNCTION__ = "execute" #5 0x00000000006cc8a4 in execute_one_pass (pass=pass@entry=0xc3b4160) at ../../gcc/passes.c:2330 todo_after = 0 gate_status = <optimized out> __FUNCTION__ = "execute_one_pass" #6 0x00000000006cccde in execute_pass_list_1 (pass=0xc3b4160, pass@entry=0xc3b0720) at ../../gcc/passes.c:2382 No locals. #7 0x00000000006ccd39 in execute_pass_list (fn=0x1052de70, pass=0xc3b0720) at ../../gcc/passes.c:2393 No locals. #8 0x000000000048cf47 in cgraph_node::expand (this=this@entry=0xf041000) at ../../gcc/cgraphunit.c:1895 saved_loc = 0 __FUNCTION__ = "expand" #9 0x000000000048e212 in expand_all_functions () at ../../gcc/cgraphunit.c:2031 node = 0xf041000 order_pos = <optimized out> i = <optimized out> order = 0x20ffa100 expanded_func_count = 526 profiled_func_count = 2 new_order_pos = <optimized out> #10 symbol_table::compile (this=0xc38c000) at ../../gcc/cgraphunit.c:2384 No locals. #11 0x000000000048e41e in symbol_table::compile (this=<optimized out>) at ../../gcc/cgraphunit.c:2417 No locals. #12 0x000000000042b329 in lto_main () at ../../gcc/lto/lto.c:3496 No locals. #13 0x0000000000773680 in compile_file () at ../../gcc/toplev.c:594 No locals. #14 0x0000000000ffc87c in do_compile () at ../../gcc/toplev.c:2076 i = 1 #15 toplev::main (this=this@entry=0xad6fe30, argc=147, argc@entry=40, argv=0xaf49740, argv@entry=0xaf46e50) at ../../gcc/toplev.c:2174 No locals. #16 0x000000000102c4b6 in main (argc=40, argv=0xaf46e50) at ../../gcc/main.c:39 toplev = {m_use_TV_TOTAL = true, m_init_signals = true} All CFLAGS passed are: -flto -fuse-linker-plugin -flto-partition=none -fno-fat-lto-objects -ftree-vectorize -ffast-math -mfpmath=both -fipa-pta -march=i686 -mtune=corei7-avx -msse -msse2 -mno-sse3 -mno-avx