delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/01/22/04:13:47

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=qQAdasHILjYNOmhnXalnbb3f70QDZrI9OaCXF7N2cHhQaTevNrIsF
f14Rqolz1+Bn5AqXDD9WUkvIQ6L6fleKFMJ5d1gCzNouWCSSs1sJ3ADkuKUULjdw
qpoGNknU/OOzPfnePrMynv35kk7VRwP4ZtVcG8B/td093jRoj9vFTQ=
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=osyaCo746ZJRZ+2gsvFoXBZQJ3k=; b=PT/0c/SLZMhJB6BVNZIPvCtdcY9W
eUewy6NwtqJJeQ4+Q1/65dHI0QcXFkv70Z7sYD0Qf7zllPv+RkCdfzXBBrQEu9rG
58gmJojhuzRkXMNz2aSK5poqfH8l2JJ+G7o+YclTvdhIogKRLvA5TD14dnnqIjcl
U54hEXzyQm4PNO4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=dan, H*Ad:D*gov, extensively, nutshell
X-HELO: mout.kundenserver.de
Date: Tue, 22 Jan 2019 10:13:24 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Cc: Dan Bonachea <dobonachea AT lbl DOT gov>, gasnet-devel AT lbl DOT gov
Subject: Re: Bug: Incorrect signal behavior in multi-threaded processes
Message-ID: <20190122091324.GM2802@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com, Dan Bonachea <dobonachea AT lbl DOT gov>, gasnet-devel AT lbl DOT gov
References: <CAJTO8-bD0jPR3Vyr84Z_4BUdh3pPiZ-9ekeMBFUOFJRn5e0wQQ AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CAJTO8-bD0jPR3Vyr84Z_4BUdh3pPiZ-9ekeMBFUOFJRn5e0wQQ@mail.gmail.com>
User-Agent: Mutt/1.10.1 (2018-07-13)

--p8PhoBjPxaQXD0vg
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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"

-----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--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019