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? Pierre #! /bin/sh pwd=`pwd` tmp=race.$$ 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: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/