This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] [BZ #18433] Check file access/existence before forking.
- From: Rich Felker <dalias at libc dot org>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: Alexander Monakov <amonakov at ispras dot ru>, Florian Weimer <fweimer at redhat dot com>, Zack Weinberg <zackw at panix dot com>, navid Rahimi <rahimi dot nv at gmail dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 11 Sep 2015 12:59:37 -0400
- Subject: Re: [PATCH] [BZ #18433] Check file access/existence before forking.
- Authentication-results: sourceware.org; auth=none
- References: <55F19819 dot 3010601 at gmail dot com> <ACDB9D4B-30B6-46C1-9286-5F03594CEACC at panix dot com> <CAOUBrm3oeUVDM-q4VFP08gjEkD2UFaz0Xfq1oGBW+m76rDRu+A at mail dot gmail dot com> <CAKCAbMiYkywWeSiJ5jkH7r8eYMSOWFmYDsjEN3k5ZaTPEeJGXw at mail dot gmail dot com> <55F29C54 dot 5010809 at redhat dot com> <alpine dot LNX dot 2 dot 20 dot 1509111226160 dot 17199 at monopod dot intra dot ispras dot ru> <20150911155503 dot GU17773 at brightrain dot aerifal dot cx> <87k2rx53is dot fsf at igel dot home>
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