From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89856 invoked by alias); 30 Jan 2019 21:23:13 -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 89845 invoked by uid 89); 30 Jan 2019 21:23:13 -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= X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.187) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 30 Jan 2019 21:23:11 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MScHp-1gik413xlp-00StMa; Wed, 30 Jan 2019 22:23:05 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 1873AA825F3; Wed, 30 Jan 2019 22:23:03 +0100 (CET) Date: Wed, 30 Jan 2019 21:23:00 -0000 From: Corinna Vinschen To: Dan Bonachea Cc: "E. Madison Bray" , cygwin@cygwin.com, gasnet-devel@lbl.gov Subject: Re: Bug: Incorrect signal behavior in multi-threaded processes Message-ID: <20190130212303.GQ3912@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: Dan Bonachea , "E. Madison Bray" , cygwin@cygwin.com, gasnet-devel@lbl.gov References: <20190130104421.GC3912@calimero.vinschen.de> <20190130154804.GJ3912@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="0VNbQffo0Gc48lc+" Content-Disposition: inline In-Reply-To: <20190130154804.GJ3912@calimero.vinschen.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-SW-Source: 2019-01/txt/msg00303.txt.bz2 --0VNbQffo0Gc48lc+ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1417 On Jan 30 16:48, Corinna Vinschen wrote: > On Jan 30 11:44, Corinna Vinschen wrote: > > On Jan 29 18:21, Dan Bonachea wrote: > > > > A minimal test program is copied below and also available here: > > > > https://upc-bugs.lbl.gov/bugzilla/attachment.cgi?id=3D589 > > >=20 > > > > It's worth noting POSIX 1003.1-2016 sec XRAT.B.2.4.1 (p.3577) > > > > specifically requires that any given signal should be delivered to > > > > exactly one thread. Also the spec for abort (p.565) requires the > > > > signal to be delivered as if by `raise(SIGABRT)` (p.1765) aka. > > > > `pthread_kill(pthread_self(),SIGABRT)` (p.1657), which implies > > > > any registered SIGABRT handler should run only on the thread > > > > which called abort(). > > >=20 > > > Poking around further, I find that replacing the signal generation > > > code in the test program for all cases with : > > >=20 > > > pthread_kill(pthread_self(),sigid) > > >=20 > > > generates compliant signal delivery behavior! > >=20 > > Thanks, I fixed that in Cygwin. It will be part of the 3.0 release. >=20 > I think I have a solution for the SISEGV misbehaviour. I have to > test it a bit but this may make it into Cygwin 3.0 if all is well. Please try the latest developer snapshot from https://cygwin.com/snapshots/ or the new 3.0.0-0.3 test release. I hope this fixes the problem sufficiently. Thanks, Corinna --=20 Corinna Vinschen Cygwin Maintainer --0VNbQffo0Gc48lc+ Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlxSFbYACgkQ9TYGna5E T6CPHA//Whqn+DH8dIsnsCY63YopK5UsMFyJsKyCtqIQlToFcQoiM1FKmTVBtwoS +0OYyZn8qlCQK2WxDkMDf5js7Ab1g92mMn4FcR5b37wDDQosnQ5eh+CSddy7InmM VGPZVFOGhv/p6DpEO6SiAASXx5jwsUVFnPo/jItezes/AMlOas/vYNiZ8azOlNEd u+arsOwWMVDmHcGGiYeMfnJSj55fC0gZtmsWfkPupB9mBW97Z7csVRuIUzwrKPQo EPIq7l36yWxcvuDIgPEWmKIUqYff6Z5rG26yDL7V0Nghx78ySegdThEKKth7zVuz EBO3UTniC20uAIAMYMF+KLTCo7mv96HS2Yy25pZfSQyxXg/tJhbRrN+kx7zCf544 +cr7s5ff02oWFnlUg/YsXhC7vT6SbGV4/Oz7sc5O9aWa2tfelAj62tqAT7wotUWP NW7lLsV6P618UcuWHnplOXvARZKRpwmMLrR5RJmSPAXXSjkI6QI5hsokcNTZvW+M QbmfovLTKqBx/ZjFTp5bIvsgeDz+M30+5+uluVl21Pg9z1TmiIcx48kraimluP9/ QXLtHIQK06/jHVJ8eNnfxtjDy4A5s4mZQn0AcTj6eu2cTZKAYePW7n1oRITE4Apv zXELWCzVINGB1jJjqrwHTzS8SZerGn/jusbNyYh2asKcXd4LONk= =SM7I -----END PGP SIGNATURE----- --0VNbQffo0Gc48lc+--