X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 27 Nov 2012 08:13:02 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Possible race in SYSV IPC (semaphores)
Message-ID: <20121127071302.GA13311@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20121123113605.GN17347@calimero.vinschen.de> <20121123131020.GR17347@calimero.vinschen.de> <20121123133332.GU17347@calimero.vinschen.de> <20121123164404.GX17347@calimero.vinschen.de> <5F8AAC04F9616747BC4CC0E803D5907D0162C6@MLBXv04.nih.gov> <20121123172937.GA12624@calimero.vinschen.de> <5F8AAC04F9616747BC4CC0E803D5907D0162E7@MLBXv04.nih.gov> <20121123175903.GA11546@calimero.vinschen.de> <20121126125342.GA3800@calimero.vinschen.de> <5F8AAC04F9616747BC4CC0E803D5907D016FEA@MLBXv04.nih.gov>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <5F8AAC04F9616747BC4CC0E803D5907D016FEA@MLBXv04.nih.gov>
User-Agent: Mutt/1.5.21 (2010-09-15)
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 Nov 26 18:09, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote:
> > I just checked in the change.
> 
> Thank you.  I will test it as soon as it's available in a snapshot.
> 
> > ...especially since I can't reproduce this.  I tried with cygserver
> > before and after my patch and in both cases your semaphore testcase
> > worked as expected with -d -l 7.
> 
> I see.  Maybe this will help.  My sequence of actions:
> 
> In an elevated cmd.exe, from Cygwin's /bin:
> 
> cygrunsrv.exe -I cygserver -x /usr/sbin/cygserver.exe -a "-d -l 7"
> cygrunsrv.exe -S cygserver
> 
> In a regular cmd.exe:
> 
> a.exe
> 
> (this is my testcase that locks/unlocks the semaphores).
> It never gets past iteration 1000.

Nope, no luck.  WJFFM.

You don't have space (or quota) issues on your hard disk by any chance?
The stderr output will go to /var/log/cygserver.log.  The file has a
size of about 60 Megs after 20K iterations and every run of the cygserver
service will append to the file.


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

