https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89323
--- Comment #5 from Ganesh Babu <ganeshemb at gmail dot com> --- (In reply to Martin Liška from comment #3) > > works for current clang: > > > > clang-6.0 -g -fsanitize=address -fno-omit-frame-pointer -m32 asantest.c && > > ./a.out > > > > AddressSanitizer:DEADLYSIGNAL > > ================================================================= > > ==6318==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000 (pc > > 0xf74f2a66 bp 0xfff26cb8 sp 0xfff26854 T0) > > > > > > No, you forgot to provide ./a.out argument. That's why you see a SEGV. > Please try latest clang release (7) and test it. If it's failing, please > report upstream bug https://github.com/google/sanitizers/issues. i have raised a request at https://github.com/google/sanitizers/issues/1049