[PATCH] [BZ #18433] Check file access/existence before forking.

Rich Felker dalias@libc.org
Fri Sep 11 16:59:00 GMT 2015


On Fri, Sep 11, 2015 at 06:23:07PM +0200, Andreas Schwab wrote:
> Rich Felker <dalias@libc.org> writes:
> 
> > I've found CLONE_VFORK unreliable on Linux: under some conditions,
> > when running under ptrace, I observed the parent returning before the
> > child execs/exits, and of course horrible memory corruption resulted.
> 
> Did you report it?

At the time I was too busy to try to track down exactly why it was
happening, and it was unclear to me whether this was the kernel's
fault or the tracing process's fault (strace).

Rich



More information about the Libc-alpha mailing list