From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30239 invoked by alias); 30 Jan 2019 10:44:33 -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 30232 invoked by uid 89); 30 Jan 2019 10:44:32 -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 10:44:31 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MVv4X-1ggvgY1WKL-00RoC8; Wed, 30 Jan 2019 11:44:23 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id C8F62A825E5; Wed, 30 Jan 2019 11:44:21 +0100 (CET) Date: Wed, 30 Jan 2019 10:44: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: <20190130104421.GC3912@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: Dan Bonachea , "E. Madison Bray" , cygwin@cygwin.com, gasnet-devel@lbl.gov References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wnBGVoaGQwxWUIo6" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-SW-Source: 2019-01/txt/msg00282.txt.bz2 --wnBGVoaGQwxWUIo6 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 944 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! Thanks, I fixed that in Cygwin. It will be part of the 3.0 release. Corinna --=20 Corinna Vinschen Cygwin Maintainer --wnBGVoaGQwxWUIo6 Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlxRgAUACgkQ9TYGna5E T6C5lg//UIpNck37nYNNn0by+LQdVbwixlS8/Vy4krkEM3WEmfigr6z+3afxNgUF whXTbjusGjYWOhR1o5qM7Bz46GQWFkD8w6/GIfgnDUHtY9M4ILaZc8MW+W1fECTZ SDwruIHiY9dkmz+othw4XsHSz3LFmzvonpcoK3+C8IBbOlWuKCsADDoxWpS+qUMC F15ijfpx/XHUdbUzjXDNgFTYYVkao1Vjyip42VlplD/XxXCGkAlxBp7pN7n7x27t 44UI0bXtyAwbdAG3ghesNDekWm97ygU4pzVfJ8GPALoY9rK7RfWk38J4teKEGF0F 8MNUsx0y1rent5N218nnSCLi9wlr6zonQ1BuTCf5YvlHuUarwtCBhb9fH3ZnRxb3 Ao74L9JfSn8z22XrwLSj7xVyJ2qFvujUd8osFx+zvUG5muWItfmOP16iAHdtenY6 03DrcUNGJOEWYo9mlkZDr0Hq2CmhiJwL0SM0IohdyWlPgMOv6pQ/GPrtn4ah1LGp TtOjurr4SDlyRCR/lxHl61W7So4ulP17qKQe6qu0YWc8grM53J3nl0cHD3QkQj54 chAu1LkMuejgasxQLWqvbo8Xkbg8toeaVSfAomqGp8Uu5x8jD5hKvDyJEAeSt3T6 FkK1W16Vwd3aE02wj1hhgMeXh+d5TtTEOazc8PDIji6BwM3r7dM= =nFrt -----END PGP SIGNATURE----- --wnBGVoaGQwxWUIo6--