delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/14/14:58:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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" <pierre DOT humblet AT ieee DOT org>
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
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019