This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: snapshot 20050114 race

On Fri, Jan 14, 2005 at 11:42:53AM -0800, Yitzchak Scott-Thoennes wrote:
> On Fri, Jan 14, 2005 at 07:26:58PM +0100, Corinna Vinschen wrote:
> > On Jan 14 11:04, Eric Blake wrote:
> > > Something between the stock 1.5.12-1 and the 20050114 snapshot introduced
> > > a data race on removing a directory shortly after being in it.  I couldn't
> > > narrow it down to a repeatable testcase, but notice the difference between
> > > these two runs of a subset of the coreutils-5.3.0 testsuite:
> > > [...]
> > > Adding a delay between the cd and rm of the trap makes the rm work all the
> > > time, and reverting to the 1.5.12 release no longer has the problem.  I
> > > wonder if the new code in chown() is causing this race.
> > 
> > What about the 2005-01-11 snapshot?
> FWIW, I see in my perl test logs one instance of this on the 20050103
> snapshot.

Does the following script also exhibit the problem?


#! /bin/sh
trap 'cd $pwd; rm -rf $tmp' 0
mkdir $tmp
mkdir $tmp/d
touch $tmp/f $tmp/f2 $tmp/d/f3
cd $tmp
#do tests on chgrp $tmp
exit 0

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]