https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79034
Bug ID: 79034
Summary: ICE segfault in gcc 6.x
Product: gcc
Version: 6.3.1
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: sisnkemp at gmail dot com
Target Milestone: ---
Created attachment 40482
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40482&action=edit
code example
The attachment crashes on GNU/Linux x86_64 and OpenBSD/amd64 with gcc 6.1
through gcc 6.3.
Compile it with gcc -c -O2
gcc 7 for GNU/Linux x86_84, as well as gcc 4.9.3 do not crash.
My gdb backtraces is incomplete for some reason, but it seems to be in an SSA
pass:
With gdb 6.3:
Program received signal SIGSEGV, Segmentation fault.
0x0000121591e37b96 in hash_table<ssa_name_var_hash,
xcallocator>::find_slot_with_hash () from cc1plus
(gdb) where
#0 0x0000121591e37b96 in hash_table<ssa_name_var_hash,
xcallocator>::find_slot_with_hash () from cc1plus
#1 0x0000121591e9fe61 in hash_table<expr_pred_trans_d,
xcallocator>::find_slot_with_hash () from cc1plus
#2 0x0000121823f7e5c0 in ?? ()
#3 0x0000000000000000 in ?? ()
With gdb 7.12
Program received signal SIGSEGV, Segmentation fault.
0x00001d13b9337b96 in ?? ()
(gdb) where
#0 0x00001d13b9337b96 in ?? ()
#1 0x00001d13b939fe61 in ?? ()
#2 0x00001d13b93a0d08 in ssa_propagate(ssa_prop_result (*)(gimple*,
edge_def**, tree_node**), ssa_prop_result (*)(gphi*)) ()
#3 0x00001d13b93371cd in ?? ()
#4 0x00001d13b91a5bcf in execute_one_pass(opt_pass*) ()
#5 0x00001d13b91a6148 in ?? ()
#6 0x00001d13b91a615a in ?? ()
#7 0x00001d13b91a61ad in execute_pass_list(function*, opt_pass*) ()
#8 0x00001d13b8f18e95 in cgraph_node::expand() ()
#9 0x00001d13b8f1a35e in ?? ()
#10 0x00001d13b8f1bf9e in symbol_table::finalize_compilation_unit() ()
#11 0x00001d13b9260b96 in ?? ()
#12 0x00001d13b9262645 in toplev::main(int, char**) ()
#13 0x00001d13b9911217 in main ()