X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Fri, 10 Apr 2009 10:46:02 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: [1.7] deleting in-use directories
Message-ID: <20090410084602.GM15443@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <loom.20090409T154314-64@post.gmane.org> <20090409170228.GA5231@calimero.vinschen.de> <49DEBFEA.8030503@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <49DEBFEA.8030503@gmail.com>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Apr 10 04:41, Dave Korn wrote:
> Corinna Vinschen wrote:
> > On Apr  9 16:13, Eric Blake wrote:
> >> The Autoconf testsuite is failing several tests on cygwin 1.7 that used to pass 
> >> on cygwin 1.5.  I've traced it to the fact that 1.7 is trying to be smarter 
> >> about deleting in-use files and directories, but doesn't quite get things right.
> > 
> > Incredible but true.  It was an alignment problem with a local buffer
> > in the function which moves the directory to the bin when a sharing
> > violation occurs.  This seems to be a new problem with gcc-4.  As long
> > as I built Cygwin with gcc-3, I never had this problem.
> 
>   -vvvv?  What alignment does the buffer require?  What did it end up getting
> with gcc-4?

Don't worry.  It was my own little bug and gcc-4 just uncovered it.  I
created a temp buffer on the stack as an array of type BYTE, even though
the data stored in the buffer requires a ULONG alignment.  With gcc-3
this worked because the buffer was for some reason correcty aligned.
gcc-4 apparently organizes the local vars differently so the buffer
ended up on an unaligned address and the NT function returned status
0x8000002, STATUS_DATATYPE_MISALIGNMENT.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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/

