X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=ixQW0Qd6rfXtmrnIrEXgvED2HQMhVLZ4eWSKM31yVTY
	IfwF2Jm5vhMBsRJzKguvfPwLRTcl0XFKReQdfB9ZEKS5K/4pyuGGFvmkndar6nf4
	Orwa4KfxhkDEj5xyk/uINPV3qN2we29BTBqod6MRnytsgH4h6oWdJXQbT+HnqVEo
	=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 s=default; bh=/m41W2X0f8wNLWsYIoCv0UlbEN4=; b=ChFlWrPd/x2ctJr2Q
	jTS/Mt24BDfpcErHamgclwVkZ14OrW2+R/XOtQ5RO8paJrK1g4CSIXAQwC0I21jz
	jp1BFsUKH7VM4CU+NzZFalk41IFKjNEASKryOZCjPFQZM24Vox5oseraBoQsF8Ng
	FDkWc8dSwRjdnNThYAfwXu2Jz4=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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
X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_NO,RDNS_NONE,SPF_PASS autolearn=no version=3.3.1
X-CornellRouted: This message has been Routed already.
Message-ID: <51EE7F43.30503@cornell.edu>
Date: Tue, 23 Jul 2013 09:04:03 -0400
From: Ken Brown <kbrown@cornell.edu>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Win32 error in C program using openmp and fork()
References: <57302C57257EF2428CCAAF9BA83EC0448222C0EA@mbx08.adf.bham.ac.uk> <20130722080657.GD2661@calimero.vinschen.de> <51EE7700.50803@star.sr.bham.ac.uk>
In-Reply-To: <51EE7700.50803@star.sr.bham.ac.uk>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

On 7/23/2013 8:28 AM, Daniel Brown wrote:
> I've wiped my old version of Cygwin and installed it fresh on my computer
> and 1.7.21 doesn't work for me, either 32 or 64 bit. I have tried a Win
> 7 x86
> virtual machine and it worked, on a Win 8 x86 virtual machine though I see
> the same error. Therefore I guess it is a Windows 8 issue

No, I can reproduce it consistently on my Windows 7 system, running 
1.7.22, on both 32-bit and 64-bit.  It also just happened to me while 
running emacs.  This is not reproducible, but it was previously reported 
by another user:

   http://cygwin.com/ml/cygwin/2013-07/msg00198.html

On 64-bit, the output is

$ ./openmp-test.exe
I'm an openmp thread...
I'm an openmp thread...
I'm an openmp thread...
I'm an openmp thread...
Parent fork
       0 [main] openmp-test 6640 
C:\cygwin64\home\kbrown\openmp-test.exe: *** fatal error in forked 
process - failed to create new win32 semaphore, currentvalue 4294967294, 
Win32 error 87

Ken

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

