X-Spam-Check-By: sourceware.org
Date: Fri, 3 Mar 2006 21:36:49 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: ls.exe hangs on inaccessible directory if ntsec is turned off
Message-ID: <20060303203649.GF3184@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <1FFDId-1bRebI0@fwd35.aul.t-online.de> <20060303202819.GD3184@calimero.vinschen.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20060303202819.GD3184@calimero.vinschen.de>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
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 Mar  3 21:28, Corinna Vinschen wrote:
> At one point in opendir() a file handler is added to the descriptor
> table.  This happened at a point at which it was already clear that
> opendir would succeed.  Due to my changes from end of January this
> wasn't true anymore.  The entry in the descriptor table was filled
> and *then* opendir tries to open the directory with NtOpenFile.
> This in turn leads to opendir deleting the file handler structure.

...if NtOpenFile fails.

> No problem... until the process exits and Cygwin tries to delete
> the file handler entry again in the cleanup code.  Or, with a lot
> less words:  Cygwin called free twice on the same address.


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/

