From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23792 invoked by alias); 30 Jan 2019 15:48:32 -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 11874 invoked by uid 89); 30 Jan 2019 15:48:24 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy= X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.134) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 30 Jan 2019 15:48:14 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MRTEr-1gTdoJ31cr-00NOyJ; Wed, 30 Jan 2019 16:48:06 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 54A76A825EB; Wed, 30 Jan 2019 16:48:04 +0100 (CET) Date: Wed, 30 Jan 2019 15:48: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: <20190130154804.GJ3912@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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wwU9tsYnHnYeRAKj" Content-Disposition: inline In-Reply-To: <20190130104421.GC3912@calimero.vinschen.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-SW-Source: 2019-01/txt/msg00289.txt.bz2 --wwU9tsYnHnYeRAKj Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1161 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. 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. Corinna --=20 Corinna Vinschen Cygwin Maintainer --wwU9tsYnHnYeRAKj Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlxRxzQACgkQ9TYGna5E T6DAmg//VKo6j/PDpVef57DHbrefwxE7G2zHi3F8HTmzxwSpjaTGZpYhcO+S0Yu7 QCuppX7viFBC1bom1TB1rrlsUGLDfsZFEKnT0aFZ3dkRpAiE76UU1Fsrm+2BauUY wX1+TwsAHKxb/VV8bK4AABqpbQYmcWhyqCEfVtoSLn0E08tKsZOq1rCRvSahWa14 eJkFDZbCOxtBK31hY+1oy7ESimUrwmhPJErIjIU5GSIMB7xCYoKoRcoAfjNHY/vM HyUoS+K5UYhIqZV355vFGy4hFT7a0PfYsSr2Y/0nv4QRhbDUMfzryoNW9m2P4vJQ UFTy6bFV+SeeW8t3Rsl6EraW7zL6/TDGhxS92PK9ls8mfF8Ehxqphfq9FBxPqvzC q6tjpMqJs2yMpPruTcuHeL2TF+jW4aNqZpXZVOKx8i4gjP6llcrkcJKCvtXLyi5f 6qOGRVKYHKh9oLLNjTH0kMqZ9vAM2t+63bbVIfevdsAvDB4SYHEWECOyllTo3zzT MLcEJOf0hwGKIkEAaP9ssFuPLcHTas5es+9ef14QV2MURyPNcbVAyVJaoa2HuwhA +ywmRFVNFE8Bh9RBqo48M0469WjuUHo16i4RzvebZCg0YINfmGhElvw6ka9mCa20 Spz4uYEexlI9sVEckBlXpdBbHxbpMMi5tuO5Q3ML5RSRqMfpqv8= =MImh -----END PGP SIGNATURE----- --wwU9tsYnHnYeRAKj--