https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89323

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
> 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.

Reply via email to