From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25516 invoked by alias); 22 May 2012 11:03:26 -0000 Received: (qmail 25401 invoked by uid 22791); 22 May 2012 11:02:55 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Tue, 22 May 2012 11:02:41 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 8B3112C18F5; Tue, 22 May 2012 13:02:38 +0200 (CEST) Date: Tue, 22 May 2012 11:03:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: 1.7.15-1: pthread_cancel and pthread_kill not working as expected Message-ID: <20120522110238.GC15843@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <4FAAAE25.40204@sister-shadow.de> <4FB62304.2000100@sister-shadow.de> <4FBA1846.6020005@sister-shadow.de> <20120521104717.GC7763@calimero.vinschen.de> <4FBA38A5.5030408@sister-shadow.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4FBA38A5.5030408@sister-shadow.de> User-Agent: Mutt/1.5.21 (2010-09-15) 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 X-SW-Source: 2012-05/txt/msg00472.txt.bz2 Hi Otto, On May 21 14:44, Otto Meta wrote: > > Would you mind to provide *simple* testcases to allow easy debugging > > of your observations? > > I reduced the various tests to three rather simple individual testcases > because those show possibly different bugs. Thanks! > Testcase cancel deferred: > Works with 1.7.9 and 20120517 snapshot, fails (hangs) with 1.7.12-1 > and 1.7.15-1. If that works in the snapshot anyway, I'm not going to look into that one. > Testcase cancel asynchronous: > Async cancel seems to have no effect with any tested version. I think I found a solution for this problem. See the comment in the patch at http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/thread.cc.diff?cvsroot=src&r1=1.258&r2=1.259 Please test the today's developer snapshot. > Testcase signal/kill: > Signals may or may not reach the correct thread with 1.7.12-1 and newer. Confirmed. I think the reason is that we only have a single event to signal that a POSIX signal arrived instead of a per-thread event, but I'm not sure. This is cgf's domain so I leave it at that for now. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple