From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29084 invoked by alias); 29 Aug 2011 13:55:25 -0000 Received: (qmail 28772 invoked by uid 22791); 29 Aug 2011 13:54:56 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Mon, 29 Aug 2011 13:54:38 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 91F7B2C00F3; Mon, 29 Aug 2011 15:54:35 +0200 (CEST) Date: Mon, 29 Aug 2011 13:55:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: STC for libapr1 failure Message-ID: <20110829135435.GA31869@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <4E56EB24.5000505@acm.org> <20110826111509.GH10490@calimero.vinschen.de> <20110827203706.GA15411@calimero.vinschen.de> <4E596F50.3050205@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4E596F50.3050205@acm.org> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-08/txt/msg00503.txt.bz2 On Aug 27 15:27, David Rothenberger wrote: > On 8/27/2011 1:37 PM, Corinna Vinschen wrote: > > On Aug 26 13:15, Corinna Vinschen wrote: > >> On Aug 25 17:39, David Rothenberger wrote: > >>> For a while now, the test cases that come with libapr1 have been > >>> bombing with this message: > >>> > >>> *** fatal error - NtCreateEvent(lock): 0xC0000035 > >>> > >>> I finally took some time to investigate and have extracted a STC > >>> that demonstrates the problem. > >> > >> Thanks a lot for the testcase. In theory, the NtCreateEvent call should > >> not have happened at all, since it's called under lock, and the code > >> around that should have made sure that the object doesn't exist at the > >> time. > >> > >> After a few hours of extrem puzzlement, I now finally know what happens. > >> It's kinda hard to explain. > >> > [... very good description of flock problem ...] > > > > Please test the latest snapshot. It should fix this problem, as well as > > a starvation problem with signals (and, fwiw, thread cancel events) in > > flock, lockf, and POSIX fcntl locks. > > The new snapshot runs the flock STC. Thanks! > > I've been building libapr1 without F_SETLK support for a while since > it was also triggering the "NtCreateEvent(lock): 0xC0000035" > error. Since you mentioned fcntl, I tried re-enabling the fcntl > mutexes. They still trigger the error. > > I've attached a similar STC that uses fcntl instead of flock. I made a couple more changes to the file locking code to accommodate POSIX locks as well. Please test the today's developer snapshot, which I'm just creating. Thanks, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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