https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82367
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-invalid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2017-09-29 CC| |pault at gcc dot gnu.org Blocks| |68241 Ever confirmed|0 |1 --- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- ICE confirmed from 4.8 up to trunk. Compiling the test with my instrumented gfortran gives ../../work/gcc/fortran/dependency.c:321:11: runtime error: member access within null pointer of type 'struct gfc_expr' ASAN:DEADLYSIGNAL ================================================================= ==15952==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x0001003d484b bp 0x7fff5fbfe4b0 sp 0x7fff5fbfe490 T0) ==15952==The signal is caused by a READ memory access. ==15952==Hint: address points to the zero page. #0 0x1003d484a in gfc_dep_compare_expr(gfc_expr*, gfc_expr*) (/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x1003d484a) #1 0x100337829 in resolve_allocate_expr(gfc_expr*, gfc_code*, bool*) (/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x100337829) #2 0x10033f34d in resolve_allocate_deallocate(gfc_code*, char const*) (/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x10033f34d) #3 0x1003535ee in gfc_resolve_code(gfc_code*, gfc_namespace*) (/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x1003535ee) #4 0x100355d83 in resolve_codes(gfc_namespace*) (/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x100355d83) #5 0x100355b2b in resolve_codes(gfc_namespace*) (/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x100355b2b) #6 0x1002f42e1 in gfc_resolve(gfc_namespace*) (/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x1002f42e1) #7 0x10029a2bf in gfc_parse_file() (/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x10029a2bf) #8 0x1003f14f2 in gfc_be_parse_file() (/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x1003f14f2) #9 0x1045a4bac in compile_file() (/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x1045a4bac) #10 0x1045ad7fe in do_compile() (/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x1045ad7fe) #11 0x10651f30d in toplev::main(int, char**) (/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x10651f30d) #12 0x1065249ce in main (/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x1065249ce) #13 0x7fffbcb65234 in start (/usr/lib/system/libdyld.dylib+0x5234) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV (/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.7.0/8.0.0/f951+0x1003d484a) in gfc_dep_compare_expr(gfc_expr*, gfc_expr*) 8820864) False positive error reports may follow For details see https://github.com/google/sanitizers/issues/189 f951: internal compiler error: Abort trap: 6 Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68241 [Bug 68241] [meta-bug] [F03] Deferred-length character