http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54735
Bug #: 54735
Summary: [4.8 Regression] Segmentation fault in
walk_aliased_vdefs_1
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: [email protected]
ReportedBy: [email protected]
The testcase from Bug 54146 segfaults on trunk (r191824):
% gdb g++
Reading symbols from /usr/bin/g++...(no debugging symbols found)...done.
(gdb) run slow.cc -c -w -O2
Starting program: /usr/bin/g++ slow.cc -frounding-math -c -w -O2
warning: no loadable sections found in added symbol-file system-supplied DSO at
0x7ffff7ffa000
process 2999 is executing new program:
/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.0/g++
[New process 3002]
process 3002 is executing new program:
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.0/cc1plus
Program received signal SIGSEGV, Segmentation fault.
[Switching to process 3002]
0x00000000008c3b58 in walk_aliased_vdefs_1(ao_ref_s*, tree_node*, bool
(*)(ao_ref_s*, tree_node*, void*), void*, bitmap_head_def**, unsigned int)
[clone .constprop.15] ()
(gdb) bt
#0 0x00000000008c3b58 in walk_aliased_vdefs_1(ao_ref_s*, tree_node*, bool
(*)(ao_ref_s*, tree_node*, void*), void*, bitmap_head_def**, unsigned int)
[clone .constprop.15] ()
#1 0x00000000008c459e in walk_aliased_vdefs(ao_ref_s*, tree_node*, bool
(*)(ao_ref_s*, tree_node*, void*), void*, bitmap_head_def**) ()
#2 0x00000000008d0dee in propagate_necessity(edge_list*) () at
/home/markus/gcc/gcc/tree-ssa-dce.c:909
#3 0x00000000008d1da2 in perform_tree_ssa_dce(bool) () at
/home/markus/gcc/gcc/tree-ssa-dce.c:1584
#4 0x00000000007c86b2 in execute_one_pass(opt_pass*) () at
/home/markus/gcc/gcc/passes.c:2199
#5 0x00000000007c8a15 in execute_pass_list(opt_pass*) () at
/home/markus/gcc/gcc/passes.c:2254
#6 0x00000000007c8a27 in execute_pass_list(opt_pass*) () at
/home/markus/gcc/gcc/passes.c:2255
#7 0x000000000064f204 in expand_function(cgraph_node*) ()
#8 0x00000000006506ba in compile() ()
#9 0x0000000000650c25 in finalize_compilation_unit() ()
#10 0x00000000005290b7 in cp_write_global_declarations() () at
/home/markus/gcc/gcc/cp/decl2.c:4024
#11 0x0000000000858a05 in compile_file() ()
#12 0x000000000085a20a in toplev_main(int, char**) ()