From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 39970 invoked by alias); 22 Jan 2019 09:13:35 -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 39962 invoked by uid 89); 22 Jan 2019 09:13:35 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-100.9 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=dan, H*Ad:D*gov, extensively, nutshell X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (217.72.192.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 22 Jan 2019 09:13:33 +0000 Received: from calimero.vinschen.de ([217.91.18.234]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MLA6m-1gTeVx0rh4-00IDDA; Tue, 22 Jan 2019 10:13:27 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id F08EDA80699; Tue, 22 Jan 2019 10:13:24 +0100 (CET) Date: Tue, 22 Jan 2019 09:13:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Cc: Dan Bonachea , gasnet-devel@lbl.gov Subject: Re: Bug: Incorrect signal behavior in multi-threaded processes Message-ID: <20190122091324.GM2802@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com, Dan Bonachea , gasnet-devel@lbl.gov References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="p8PhoBjPxaQXD0vg" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-SW-Source: 2019-01/txt/msg00169.txt.bz2 --p8PhoBjPxaQXD0vg Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1151 On Jan 20 15:33, Dan Bonachea wrote: > I'm writing to report some POSIX compliance problems with Cygwin > signal handling in the presence of multiple pthreads that our group > has encountered in our parallel scientific computing codes. >=20 > A minimal test program is copied below and also available here: > https://upc-bugs.lbl.gov/bugzilla/attachment.cgi?id=3D589 >=20 > I believe the test program is fully compliant with ISO C 99 and POSIX > 1003.1-2016. In a nutshell, it registers one signal handler, spawns a > number of pthreads, and then synchronously generates a signal from > exactly one thread while others sit in a pthread_barrier_wait. The > "throwing" thread and signal number can be varied from the command > line, and diagnostic output indicates what happened. > [...] > Is there any hope of this situation ever improving? Signal handling is a real beast and phread_barriers probably haven't been tested as extensively yet as your testcase. No guarantees for a patch, but I'll look into that as time permits. Patches to fix bugs are very welcome: https://cygwin.com/contrib.html Corinna --=20 Corinna Vinschen Cygwin Maintainer --p8PhoBjPxaQXD0vg Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlxG3rQACgkQ9TYGna5E T6CAJA//Yr5Rdscy77DJeaCL9DEdn6JRssKyLpW8mtG5HwoGmhisUB5j0yyFHmN5 p7/Hcgkf2ms4HcBBgUZ0kxREEUS+WhwXfRueDkz5BJyGIyUBP99XAOEjrpDVJhA3 uYxm6eaMOOY3AcbKn8zmHgT37Zsm9/jAolnfi0p4abSNkXqMQfKPsIAyLZE+jC69 BoHh/IUPJ5Vi/as+KcM9Pj0YdJ3YQ+i9E7wyHknsqDPRXbCkf1lG3ERy7NY2oOvV 98eY/Rc0737JZPM4PqOTOFXqiOakhSvgcp58T7eSDBx8HB0NvcCK0hiE3URbhU3U ycqaODVk0DoUqEfG3oaudB2IlizB4vdg8S3JFSRfnYCy4G//MwJ1fhE3fI6L05Jh bu16ilLjksKPGZbflW8mAo3GoktcKmNYWGhwdYqFqMD9OR0XdMptCtcVPIV0mrww h/KK2BaI5c66OURxpZLT3fKvMaMaBe2S7TqSxJo36+qU9P6zmYNDYvEgXg6d0VSM yMYR506qNs/ScYmCHQrFDMUjOC47lMdTUcbDb8JzYZlExZsQuXM6y/xSME7zsaDf M9FuM/hKbLs/3o4o/6dPMIuDVuk5djVGUJZ09B3h4Fxxlse8hKr0sQHRLv1veIcH 8UozjSvKuPs9+kOqzxUDHh01A8EiNlV14jmiaopJ3oAYEOpIBmA= =Srf2 -----END PGP SIGNATURE----- --p8PhoBjPxaQXD0vg--