https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80498
--- Comment #12 from Martin Liška <marxin at gcc dot gnu.org> --- I'm sorry I cannot help more as I don't have a handy Mac operating system. I would also try to use clang with the sanitizer and test it. Moreover, you can test following: $ gcc /tmp/main.c -fsanitize=address && ASAN_OPTIONS="verbosity=111" ./a.out It can hopefully help.