https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71880
--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- When compiled with '-m64 -fsanitize=address' the test give at run time ================================================================= ==81688==ERROR: AddressSanitizer: negative-size-param: (size=-1) #0 0x10f4d9b3b in wrap_memmove (/opt/gcc/gcc7a/lib/libasan.4.dylib+0x41b3b) #1 0x10f3e0032 in list_formatted_write_scalar (/opt/gcc/gcc7a/lib/libgfortran.4.dylib+0x142032) 0x602000000150 is located 0 bytes inside of 10-byte region [0x602000000150,0x60200000015a) allocated by thread T0 here: #0 0x10f4fa96d in wrap_malloc (/opt/gcc/gcc7a/lib/libasan.4.dylib+0x6296d) #1 0x10f29b10d in MAIN__ (/Users/dominiq/Documents/Fortran/g95bench/win/f90/bug/a.out+0x10000110d) #2 0x10f29b956 in main (/Users/dominiq/Documents/Fortran/g95bench/win/f90/bug/a.out+0x100001956) #3 0x7fff94598254 in start (/usr/lib/system/libdyld.dylib+0x5254) SUMMARY: AddressSanitizer: negative-size-param (/opt/gcc/gcc7a/lib/libasan.4.dylib+0x41b3b) in wrap_memmove ==81688==ABORTING Program received signal SIGABRT: Process abort signal. Backtrace for this error: #0 0x10f2a0979 #1 0x10f29fd13 #2 0x7fff947a5bb9 Abort When compiled with '-m32 -fsanitize=address' they give ASAN:DEADLYSIGNAL ================================================================= ==75073==ERROR: AddressSanitizer: SEGV on unknown address 0x24000000 (pc 0x00357260 bp 0x00000002 sp 0xbfffba20 T0) #0 0x35725f in __sanitizer::mem_is_zero(char const*, unsigned long) (/opt/gcc/gcc7a/lib/i386/libasan.4.dylib+0x8425f) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV (/opt/gcc/gcc7a/lib/i386/libasan.4.dylib+0x8425f) in __sanitizer::mem_is_zero(char const*, unsigned long) ==75073==ABORTING Program received signal SIGABRT: Process abort signal. Backtrace for this error: #0 0xf124f #1 0xf05be #2 0x9f98beba Abort