[Bug gcov-profile/56773] Programs crash if compiled with --coverage, although they run correctly without --coverage

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 28 21:14:00 GMT 2013


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.



More information about the Gcc-bugs mailing list