https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119314
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- See https://gcc.gnu.org/bugs/#need Also try using -fsanitize=address,undefined and fixing all of the issues that it reports if any.