https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67747
--- Comment #7 from Christophe Lyon <clyon at gcc dot gnu.org> --- I've just tried the patch in comment #6, but it does not fix the problem I'm seeing on armv5t: *** Error in `./directory_iterator.exe': malloc(): memory corruption: 0x40b787f7 ***^M Maybe I should file another bug report, since it's probably a different problem.