https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88768
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2019-01-11 Ever confirmed|0 |1 --- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- Confirmed from 7.4.1 up to trunk (9.0). My instrumented fortran gives at run time ==50613==ERROR: AddressSanitizer: attempting double-free on 0x6020000002d0 in thread T0: #0 0x10a361a7f in wrap_free.part.0 sanitizer_malloc_mac.inc:121 #1 0x10788a1ac in __mod_MOD_recurse (a.out:x86_64+0x1000011ac) #2 0x10788aad6 in MAIN__ (a.out:x86_64+0x100001ad6) #3 0x10788ad08 in main (a.out:x86_64+0x100001d08) #4 0x7fff67115ed8 in start (libdyld.dylib:x86_64+0x16ed8) 0x6020000002d0 is located 0 bytes inside of 8-byte region [0x6020000002d0,0x6020000002d8) freed by thread T0 here: #0 0x10a361a7f in wrap_free.part.0 sanitizer_malloc_mac.inc:121 #1 0x107889e4f in __mod_MOD___final_mod_T (a.out:x86_64+0x100000e4f) #2 0x10788a2fd in __mod_MOD_set (a.out:x86_64+0x1000012fd) #3 0x10788a193 in __mod_MOD_recurse (a.out:x86_64+0x100001193) #4 0x10788aad6 in MAIN__ (a.out:x86_64+0x100001ad6) #5 0x10788ad08 in main (a.out:x86_64+0x100001d08) #6 0x7fff67115ed8 in start (libdyld.dylib:x86_64+0x16ed8) previously allocated by thread T0 here: #0 0x10a360a0f in wrap_malloc sanitizer_malloc_mac.inc:114 #1 0x10788a710 in __mod_MOD_set (a.out:x86_64+0x100001710) #2 0x10788a1e4 in __mod_MOD_recurse (a.out:x86_64+0x1000011e4) #3 0x10788a117 in __mod_MOD_recurse (a.out:x86_64+0x100001117) #4 0x10788aad6 in MAIN__ (a.out:x86_64+0x100001ad6) #5 0x10788ad08 in main (a.out:x86_64+0x100001d08) #6 0x7fff67115ed8 in start (libdyld.dylib:x86_64+0x16ed8)