X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=nf6rQHZh35MM7M346HL++qOt5w440yYjp2Orbmmz81FLFCGXnpxYN kYVahsp4s4hUhmS0iIGE420ei4/LP7QaznzvaaqZQ4zS55gSWUWINcwRhAmdkjVq Ut/3vPuS7RTrcW1H34/lRCgl/5v950SS7dO5GgAOwPiMzqEui8vvkY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=9GSzcLqv8jnUOqpkxMi9a2Xc2xg=; b=U6Or5Z9ZNCvRmQN2aiISrdEB6lRe 2Eenve7YfwAGlRxp9sJzQHCmeFXGPY6kkOtvdhBJr8/wQSawHa+glDztQYKNploy 7lKJwrKXm73M8oyzmZ1XwOjSaLm8J1bGagjQtYu/obrlL6A+/awTb3WC7a3Xtn0b yg4gpukxh8IUZ8c= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 Date: Wed, 30 Jan 2019 11:44:21 +0100 From: Corinna Vinschen To: Dan Bonachea Cc: "E. Madison Bray" , cygwin AT cygwin DOT com, gasnet-devel AT lbl DOT gov Subject: Re: Bug: Incorrect signal behavior in multi-threaded processes Message-ID: <20190130104421.GC3912@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: Dan Bonachea , "E. Madison Bray" , cygwin AT cygwin DOT com, gasnet-devel AT lbl DOT 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) --wnBGVoaGQwxWUIo6 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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" -----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--