https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80235
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2017-03-29 CC| |pault at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- Confirmed on 6.3.0 and trunk (7.0.1). If I compile the submodule file with an instrumented gfortran I get ../../p_work/gcc/fortran/trans-decl.c:4694:14: runtime error: member access within null pointer of type 'struct module_htab_entry' ASAN:DEADLYSIGNAL ================================================================= ==98134==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000010 (pc 0x00010050e94e bp 0x7fff5fbfd660 sp 0x7fff5fbfd590 T0) ==98134==The signal is caused by a READ memory access. ==98134==Hint: address points to the zero page. #0 0x10050e94d in gfc_module_add_decl(module_htab_entry*, tree_node*) (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x10050e94d) #1 0x100510fe7 in gfc_build_qualified_array(tree_node*, gfc_symbol*) (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x100510fe7) #2 0x100529fe6 in gfc_get_symbol_decl(gfc_symbol*) (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x100529fe6) #3 0x1005a5fb8 in gfc_conv_variable(gfc_se*, gfc_expr*) (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1005a5fb8) #4 0x100585f84 in gfc_conv_expr(gfc_se*, gfc_expr*) (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x100585f84) #5 0x10059e348 in gfc_conv_expr_lhs(gfc_se*, gfc_expr*) (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x10059e348) #6 0x100445d15 in gfc_conv_ss_descriptor(stmtblock_t*, gfc_ss*, int) (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x100445d15) #7 0x100491e42 in gfc_conv_expr_descriptor(gfc_se*, gfc_expr*) (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x100491e42) #8 0x100616c35 in gfc_conv_intrinsic_size(gfc_se*, gfc_expr*) (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x100616c35) #9 0x10069d548 in gfc_conv_intrinsic_function(gfc_se*, gfc_expr*) (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x10069d548) #10 0x1005eb934 in gfc_conv_function_expr(gfc_se*, gfc_expr*) (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1005eb934) #11 0x100585f6a in gfc_conv_expr(gfc_se*, gfc_expr*) (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x100585f6a) #12 0x1005fd683 in gfc_trans_assignment_1(gfc_expr*, gfc_expr*, bool, bool, bool, bool) (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1005fd683) #13 0x10060010e in gfc_trans_assignment(gfc_expr*, gfc_expr*, bool, bool, bool, bool) (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x10060010e) #14 0x100600335 in gfc_trans_assign(gfc_code*) (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x100600335) #15 0x100412e5f in trans_code(gfc_code*, tree_node*) (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x100412e5f) #16 0x100414328 in gfc_trans_code(gfc_code*) (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x100414328) #17 0x1005462de in gfc_generate_function_code(gfc_namespace*) (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1005462de) #18 0x10042076d in gfc_generate_module_code(gfc_namespace*) (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x10042076d) #19 0x100278e07 in translate_all_program_units(gfc_namespace*) (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x100278e07) #20 0x1002933bb in gfc_parse_file() (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1002933bb) #21 0x1003e803c in gfc_be_parse_file() (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1003e803c) #22 0x10433ab18 in compile_file() (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x10433ab18) #23 0x10434360c in do_compile() (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x10434360c) #24 0x1061e7b34 in toplev::main(int, char**) (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1061e7b34) #25 0x1061ece11 in main (/opt/gcc/gcc7gp/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1061ece11) #26 0x7fffb5a49234 in start (/usr/lib/system/libdyld.dylib+0x5234)