https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78719
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2016-12-15 Ever confirmed|0 |1 --- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- Confirmed. An instrumented gfortran gives ../../work/gcc/fortran/trans-decl.c:1472:29: runtime error: member access within null pointer of type 'struct gfc_symbol' ASAN:DEADLYSIGNAL ================================================================= ==74738==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000110 (pc 0x000100561635 bp 0x7fff5fbfe0a0 sp 0x7fff5fbfdf40 T0) ==74738==The signal is caused by a READ memory access. ==74738==Hint: address points to the zero page. #0 0x100561634 in gfc_get_symbol_decl(gfc_symbol*) (/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x100561634) #1 0x1005f0fc7 in gfc_conv_variable(gfc_se*, gfc_expr*) (/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x1005f0fc7) #2 0x1005ce99c in gfc_conv_expr(gfc_se*, gfc_expr*) (/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x1005ce99c) #3 0x100642a40 in gfc_trans_pointer_assignment(gfc_expr*, gfc_expr*) (/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x100642a40) #4 0x100648154 in gfc_trans_pointer_assign(gfc_code*) (/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x100648154) #5 0x100438fc6 in trans_code(gfc_code*, tree_node*) (/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x100438fc6) #6 0x10043a9af in gfc_trans_code(gfc_code*) (/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x10043a9af) #7 0x100586645 in gfc_generate_function_code(gfc_namespace*) (/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x100586645) #8 0x10043aa36 in gfc_generate_code(gfc_namespace*) (/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x10043aa36) #9 0x10028d66e in translate_all_program_units(gfc_namespace*) (/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x10028d66e) #10 0x1002a8776 in gfc_parse_file() (/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x1002a8776) #11 0x100405913 in gfc_be_parse_file() (/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x100405913) #12 0x104b49754 in compile_file() (/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x104b49754) #13 0x104b521ed in do_compile() (/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x104b521ed) #14 0x106c37bfe in toplev::main(int, char**) (/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x106c37bfe) #15 0x106c3cf17 in main (/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x106c3cf17) #16 0x7fffcfa5a254 in start (/usr/lib/system/libdyld.dylib+0x5254) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV (/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.1.0/7.0.0/f951+0x100561634) in gfc_get_symbol_decl(gfc_symbol*) ==74738==ABORTING ==74738==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7fff5fc00000; bottom 0x000154e90000; size: 0x7ffe0ad70000 (140729080283136) False positive error reports may follow For details see https://github.com/google/sanitizers/issues/189 pr78719.f90:13:0: s => g internal compiler error: Abort trap: 6