Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 14 Jan 2005 15:02:26 -0500 From: "Pierre A. Humblet" To: cygwin AT cygwin DOT com Subject: Re: snapshot 20050114 race Message-ID: <20050114200226.GA580781@Worldnet> References: <41E809AD DOT 8000709 AT byu DOT net> <20050114182658 DOT GD3113 AT cygbert DOT vinschen DOT de> <20050114194253 DOT GA1680 AT efn DOT org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050114194253.GA1680@efn.org> User-Agent: Mutt/1.4.1i 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/