From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27148 invoked by alias); 14 Nov 2013 09:20:01 -0000 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 Received: (qmail 27136 invoked by uid 89); 14 Nov 2013 09:20:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.2 required=5.0 tests=AWL,BAYES_50,RDNS_NONE autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Received: from Unknown (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 14 Nov 2013 09:19:59 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 9D65C1A0C29; Thu, 14 Nov 2013 10:19:50 +0100 (CET) Date: Thu, 14 Nov 2013 09:20:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Intermittent failures retrieving process exit codes Message-ID: <20131114091950.GC526@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <50C2498C.2000003@coverity.com> <50C276AC.9090301@mailme.ath.cx> <50D401EF.9040705@coverity.com> <52844B2E.5050902@coverity.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pZs/OQEoSSbxGlYw" Content-Disposition: inline In-Reply-To: <52844B2E.5050902@coverity.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-11/txt/msg00261.txt.bz2 --pZs/OQEoSSbxGlYw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1714 Hi Tom, On Nov 13 23:01, Tom Honermann wrote: > On 12/21/2012 01:30 AM, Tom Honermann wrote: > >[...] > >When the race condition results in the undesirable outcome, the exit > >code for the process is set to the exit code for the secondary thread's > >call to ExitThread(). I can only speculate at this point, but my guess > >is that the TerminateProcess() code disassociates the calling thread > >from the process before other threads are stopped such that > >ExitThread(), concurrently running in another thread, may determine that > >the calling thread is the last thread of the process and overwrite the > >process exit code. > >[...] >=20 > Time passes... >=20 > I worked with some former colleagues to report this issue to > Microsoft. Windows 8.1 and Windows Server 2012 R2 contain a fix > that addresses the test case above. A hotfix has been made > available for Windows 7 SP1 and Windows Server 2008 R2. Should > anyone desire a hotfix for other versions of Windows, it will be > necessary to open a case with Microsoft to request it. >=20 > http://support.microsoft.com/kb/2875501 >=20 > Tom. thanks for letting us know! I'm very glad to read that this is an OS bug and a fix is available. At least partially. I'm a bit confused. As far as I understand it this is the situation now: Vista/2008 and earlier: no fix available. W7/2008R2: only hotfix for manual installation W8/2012: no fix available. W8.1/2012R2: fixed. Did I get that right? That sounds a bit weird... Thanks again, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --pZs/OQEoSSbxGlYw Content-Type: application/pgp-signature Content-length: 836 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) iQIcBAEBAgAGBQJShJW2AAoJEPU2Bp2uRE+gFoQP/2KM0ZM1vVGzP7qanb9P2K1Z OGzjQSPaSyX+e0g+VFkMByqgmcqN2S2fC4EZM41h6PFhGqIe4KGBlrtstnY6/AGc fhu4p94sDnLs86Cnyn9p1VUwZMwqyi4JKXcz9tSUezi1RUczioP1jBZHOZjWBJdv DkAPvGsFtFb2DujoXMSmujUnGwgQxwr1a9InpJzu9dcAKdW/pBuFeoQgOXSOqW0I bSkUelCoOR3QNKnjoxwHzxgg0zLERi+IDKkIj0BHaFv9s2Gj9iVFue6VHIIQMDKp XiOrAUZ16pcyswG6qDYwhZew/XwPyTWzSvpXyj153zOXPLgIXAzvM0FQK9v5XVYJ 57rDhgFTKvak21I13yNOiw5nyAfP4/K3DiqCKJIU/1huBDDSxgFbPe1/xTLqW22G 5UsXejisLhB6+oKwLzHPgn6eLWzpoCRtdTFxfAD/L+stYjF1sjDXKMlKuPauRVzJ o+qeIOGGp1O52GESzXATcO485d+RRdA70Q6LgFpHVZpiakL8wjujCZ8eUEdGqXz9 d0m2wiEewIZU45K74jwkdYyBPleXMU+z2+B2+B8R9aoXnUvxN0atC50FwTx3hK2j SC4FxCJkbNskdu+qsuoF6CFmoGQNqGq9Fpw3MIERkkRAIRdKejKYt7r/A0W+G0Me HwgnNylR3fAJ2UiYAbrB =ZD3g -----END PGP SIGNATURE----- --pZs/OQEoSSbxGlYw--