https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65089
--- Comment #12 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- Created attachment 35302 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35302&action=edit Preliminary patch - needs testing This patch resolves the -fsanitize=address issue and also does some memory cleanup on formatted I/O errors. I have regression tested and all is OK, but have not tried all the variations with -m32 or -fsanitize=address on the testsuite.