From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 119134 invoked by alias); 10 Jun 2015 13:44:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 119096 invoked by uid 48); 10 Jun 2015 13:44:49 -0000 From: "sthalik at misaki dot pl" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/66488] New: -fipa-pta -flto segfault Date: Wed, 10 Jun 2015 13:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 5.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sthalik at misaki dot pl X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-06/txt/msg00939.txt.bz2 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=) at ../../gcc/ggc-page.c:1645 bit_offset = 4160749604 word = 4290772993 bit = 4 order = 5 size = 32 #1 0x000000000079b1c1 in release (v=@0x20a89418: 0x10afa498) at ../../gcc/vec.h:361 No locals. #2 vec_free (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=, fun=) at ../../gcc/cfgexpand.c:6141 bb = init_block = 0x0 blocks = ei = e = 0x0 var_ret_seq = 0x0 i = __FUNCTION__ = "execute" #5 0x00000000006cc8a4 in execute_one_pass (pass=pass@entry=0xc3b4160) at ../../gcc/passes.c:2330 todo_after = 0 gate_status = __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 = i = order = 0x20ffa100 expanded_func_count = 526 profiled_func_count = 2 new_order_pos = #10 symbol_table::compile (this=0xc38c000) at ../../gcc/cgraphunit.c:2384 No locals. #11 0x000000000048e41e in symbol_table::compile (this=) 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