Created attachment 32382 reduced testcase
Here's a reduced testcase that segfaults also on x86_64.
markus@x4 tmp % g++ -std=c++11 -c -O2 -c test.ii ASAN:SIGSEGV ================================================================= ==17160==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000010 (pc 0x000000d9b9b7 sp 0x7fff7ac203c0 bp 0x0fffef5840a0 T0) #0 0xd9b9b6 in cgraph_function_node(cgraph_node*, availability*) ../../gcc/gcc/cgraph.c:2966 #1 0x25e6923 in propagate_pure_const ../../gcc/gcc/ipa-pure-const.c:1185 #2 0x25e6923 in propagate ../../gcc/gcc/ipa-pure-const.c:1483 #3 0x25e6923 in execute ../../gcc/gcc/ipa-pure-const.c:1536 #4 0x14b93cd in execute_one_pass(opt_pass*) ../../gcc/gcc/passes.c:2229 #5 0x14badd0 in execute_ipa_pass_list(opt_pass*) ../../gcc/gcc/passes.c:2607 #6 0xdb2bb1 in ipa_passes ../../gcc/gcc/cgraphunit.c:2084 #7 0xdb2bb1 in compile() ../../gcc/gcc/cgraphunit.c:2174 #8 0xdb484a in finalize_compilation_unit() ../../gcc/gcc/cgraphunit.c:2329 #9 0x84561a in cp_write_global_declarations() ../../gcc/gcc/cp/decl2.c:4610 #10 0x16aa252 in compile_file ../../gcc/gcc/toplev.c:562 #11 0x16af0db in do_compile ../../gcc/gcc/toplev.c:1914 #12 0x16af0db in toplev_main(int, char**) ../../gcc/gcc/toplev.c:1990 #13 0x7ff8fae69faf in __libc_start_main (/lib/libc.so.6+0x1ffaf) #14 0x5d9460 (/var/tmp/gcc_sani/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/cc1plus+0x5d9460)
Created attachment 32382
reduced testcase
Here's a reduced testcase that segfaults also on x86_64.
markus@x4 tmp % g++ -std=c++11 -c -O2 -c test.ii ======= ======= ======= ======= ======= ======= ======= ======= == function_ node(cgraph_ node*, availability*) ../../gcc/ gcc/cgraph. c:2966 pure_const ../../gcc/ gcc/ipa- pure-const. c:1185 gcc/ipa- pure-const. c:1483 gcc/ipa- pure-const. c:1536 one_pass( opt_pass* ) ../../gcc/ gcc/passes. c:2229 ipa_pass_ list(opt_ pass*) ../../gcc/ gcc/passes. c:2607 gcc/cgraphunit. c:2084 gcc/cgraphunit. c:2174 compilation_ unit() ../../gcc/ gcc/cgraphunit. c:2329 global_ declarations( ) ../../gcc/ gcc/cp/ decl2.c: 4610 gcc/toplev. c:562 gcc/toplev. c:1914 gcc/toplev. c:1990 so.6+0x1ffaf) gcc_sani/ usr/local/ libexec/ gcc/x86_ 64-unknown- linux-gnu/ 4.9.0/cc1plus+ 0x5d9460)
ASAN:SIGSEGV
=======
==17160==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000010 (pc 0x000000d9b9b7 sp 0x7fff7ac203c0 bp 0x0fffef5840a0 T0)
#0 0xd9b9b6 in cgraph_
#1 0x25e6923 in propagate_
#2 0x25e6923 in propagate ../../gcc/
#3 0x25e6923 in execute ../../gcc/
#4 0x14b93cd in execute_
#5 0x14badd0 in execute_
#6 0xdb2bb1 in ipa_passes ../../gcc/
#7 0xdb2bb1 in compile() ../../gcc/
#8 0xdb484a in finalize_
#9 0x84561a in cp_write_
#10 0x16aa252 in compile_file ../../gcc/
#11 0x16af0db in do_compile ../../gcc/
#12 0x16af0db in toplev_main(int, char**) ../../gcc/
#13 0x7ff8fae69faf in __libc_start_main (/lib/libc.
#14 0x5d9460 (/var/tmp/