http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56773
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-03-28 21:14:28 UTC --- open is the name of the standard C function open. --coverage uses a library which calls the open function; this causes the crash. I think you are exposing undefined behavior.