https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116642
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #4) > >either modifies any data other than a variable > of type pid_t used to store the return value from vfork() > > Is the case here. That is you are modifying argv after the vfork which is undefined.