delorie.com/archives/browse.cgi | search |
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:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=G4JS8hLaKW0mSzRlU6dpCyCOZLceJy9MP2/AODOLD2QpvMFH6bwOW | |
7iaDlnvofGKUX1fh++AIjhCoXvpohMK75G4WAp5XyD6jrZniT/fnEHGZ7CeQv+EC | |
cXR0ASGIQ8LEJe5APXoOFXTvOXjRetd6/quXmza0GtqyVuQBsxteOQ= | |
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:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=QV3QNWcn6ziPspq+4z/UAUM6pIc=; b=J9XFB1AyMjSksfwdEbEK47Xy/LGP | |
7lMVQ0ymTrDaoE8iqMltqqwL6emc7FPejKFFCRoS954aBiEKImC2RRxUULB/h1mv | |
pYgZEzCjwZGz8T+vgYSg/YWGeeEnm7A4fBILedblGnqJ74ZUNIX/+0YH3htWSM9o | |
R7WeAfDvfkot1h8= | |
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-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-5.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 |
X-HELO: | calimero.vinschen.de |
Date: | Thu, 29 Oct 2015 09:02:18 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: pthread_kill: signals remain pending after target thread exits |
Message-ID: | <20151029080218.GF5319@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <28F5B565B6F6424C87E4AC0DCC84316575D71070 AT S1P5DAG5C DOT EXCHPROD DOT USA DOT NET> <20151021114810 DOT GQ5319 AT calimero DOT vinschen DOT de> <28F5B565B6F6424C87E4AC0DCC84316575D73A86 AT S1P5DAG5C DOT EXCHPROD DOT USA DOT NET> <20151023125540 DOT GI5319 AT calimero DOT vinschen DOT de> <28F5B565B6F6424C87E4AC0DCC84316575D8071E AT S1P5DAG5C DOT EXCHPROD DOT USA DOT NET> <20151028091459 DOT GZ5319 AT calimero DOT vinschen DOT de> |
MIME-Version: | 1.0 |
In-Reply-To: | <20151028091459.GZ5319@calimero.vinschen.de> |
User-Agent: | Mutt/1.5.23 (2014-03-12) |
--1Rp7a2AgasIge6Lv Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Oct 28 10:14, Corinna Vinschen wrote: > On Oct 27 19:06, John Carey wrote: > > Sorry for the delay. > >=20 > > From: Corinna Vinschen [corinna-cygwin AT cygwin DOT com] > > Sent: Friday, October 23, 2015 5:55 AM > > > > I've attached a test case that I *think* gets into the right spot, = at > > > > least for 64-bit Cygwin 2.0.4. That is, it hangs trying to receive > > > > the signal, instead of terminating. (This test passes (terminates)= in > > > > 32-bit Cygwin 1.7.9 and 64-bit Ubuntu 14.04.3 LTS.) > > >=20 > > > Thanks for the testcase. I applied a patch which hopefully works as > > > desired, at least to fix the immediate problem of the remaining pendi= ng > > > signal when a thread exits. I uploaded a new developer snapshot to > > > https://cygwin.com/snapshots. Please give it a try. > >=20 > > Thanks; that was fast! I tried replacing cygwin1.dll with cygwin1-2015= 1023.dll . > >=20 > > The original test case now works. I checked some of my other tests, > > and unfortunately some of them failed, so I extracted out a new test > > case, which is attached. My guess is that something is subtly different > > about the timing on this test. >=20 > Is this a regression? Did it work with 2.2.1? Answering myself here, this didn't work at all in 2.2.1. I can reproduce the problem and I'm going to take a look. Not sure if there's a quick solution, though. This looks like a deadlock situation. The signal definitely got send, I just don't see yet why it's not handled in wait_sig. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --1Rp7a2AgasIge6Lv Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWMdKKAAoJEPU2Bp2uRE+gkbgQAIkWrJxnUPGOlk1o59vD12YL Unr7YscCbNB3NQYSQ6mI22XmwZkK1xyegkUsuxarX6Gjs6Khoyx8vqDCy6gTCkpl 9IYXcI1VPf/3aBtRjJHSePckQ2MgqkqqDwKf9Tjj+wedWScWuYShsiBMGR0xlsEi kasKqIAUZhy407sxdAkoqZwqiDO6Sedwb/TehTIZqYHN3uq0hkU8FCfN6FdnF21l 4xW+5zV3sjYDsDLaSBs6E4iH++Gj6uqX5dm7Xf3MZqPayu/eBrJv0ZwnmWVZ7mK/ Eyis0NUGUDuWYVjX1j+qw8pXW2nSkg1QCxcarNX5nITq6qQaYF4QxTHPkXnKiQKo oHoSeFV4R3C8mkDGWAwQNukNPfDS3XW+kFGM7xtKbvZQfMW6xtldqF7uGiqXqcDD TTS+4UdKeWZp6fF3yZbbsBxkcuztbmZ19u6abcggRkeV9Dbu7vGlJUGrX6bCHu4x /YKFM1CdACDDz/A6GePYhXfutSZQg3W9hAdOM7PQo12E/0QvVgMABO4EssNn7Mbh S9rfGUZyFmoHPfSs+gMvvYd6mOVt2anr0y4kmPw+Niv2iuQBfo2hnriEQUAZYJPT fMXYhkUCByv6WOxo8v3JfkCcoHCj3LeCcdMHYhotnm7y6LMnURxPZTI15edtfA8H S3bU937OMuKKUq8oOIVl =dBAJ -----END PGP SIGNATURE----- --1Rp7a2AgasIge6Lv--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |