X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0	tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
X-Mail-Handler: MailHop Outbound by DynDNS
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX18tUsdEf4K1wJ3BIzYP5oj9
Date: Sun, 22 Jan 2012 14:33:06 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: YA call for snapshot testing
Message-ID: <20120122193306.GA12886@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20120119195244.GA763@ednor.casa.cgf.cx> <CAGHJv4c2=5Gc-K_jTfbrjDUeE=uZumEFhCASU=ZHH3Q=AyCXmg@mail.gmail.com> <jfeq4q$las$1@dough.gmane.org> <20120121181804.GA26978@ednor.casa.cgf.cx> <4F1B6F71.8070407@shaddybaddah.name> <20120122054719.GB28773@ednor.casa.cgf.cx> <20120122055300.GB657@ednor.casa.cgf.cx> <4F1BBB0F.2020009@gmail.com> <20120122165705.GA10996@ednor.casa.cgf.cx> <4F1C5F56.8070208@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4F1C5F56.8070208@gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
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 Sun, Jan 22, 2012 at 08:11:18PM +0100, marco atzeri wrote:
>On 1/22/2012 5:57 PM, Christopher Faylor wrote:
>> On Sun, Jan 22, 2012 at 08:30:23AM +0100, marco atzeri wrote:
>
>>> I saw the problem in erratic way also before running updatedb.
>>> But it is very evanescent and usually linked on how find is called.
>>
>> Could you try the latest snapshot?
>
>snapshots 20120122 07:28:45 seems to have solved the issue

Looks like my guess was correct.  I added refence counting to Cygwin's
inaptly-named fhandler structures recently to work around a problem
where a signal handler closed an fd while it was in the middle of a
read.  This caused the memory associated with an fd to be deleted only
when the last thing referencing it was done with it.

The very odd thing was that my implementation seemed to work right from
the beginning.  That has made me wonder what I got wrong.  What I got
wrong was the dup*() family of functions.  If you dup a fd its reference
counter was not reset so the memory associated with it was not deleted.
Duh.

Thanks for confirming.

cgf

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

