https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121690
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This sounds like some kernel buffering issue dealing with expect. What exactly version of the xnu kernel are you seeing this with? I remember hearing about some issue in this area before too.