X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0	tests=AWL,BAYES_00,KHOP_THREADED
X-Spam-Check-By: sourceware.org
Message-ID: <4FBE0F0C.2020206@sister-shadow.de>
Date: Thu, 24 May 2012 12:35:56 +0200
From: Otto Meta <otto.meta@sister-shadow.de>
Reply-To: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: 1.7.15-1: pthread_cancel and pthread_kill not working as expected
References: <4FBA1846.6020005@sister-shadow.de> <20120521104717.GC7763@calimero.vinschen.de> <4FBA38A5.5030408@sister-shadow.de> <20120522110238.GC15843@calimero.vinschen.de> <4FBB93D6.90408@sister-shadow.de> <20120523085215.GG9200@calimero.vinschen.de> <20120523160625.GL9200@calimero.vinschen.de> <20120523171834.GM9200@calimero.vinschen.de> <4FBD217B.8000803@acm.org> <20120523175403.GN9200@calimero.vinschen.de> <20120523201041.GP9200@calimero.vinschen.de> <4FBE0730.6020103@sister-shadow.de>
In-Reply-To: <4FBE0730.6020103@sister-shadow.de>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

> My testcases for asynchronous and deferred cancel work on threads
> blocked in sem_wait() but still fail mostly on threads blocked in
> read(STDIN_FILENO, ...), same as before. Sorry about that.

I spoke too soon. There seems to be some kind of runtime decay and a
dependency on semaphore.h.

Running the same test or the two tests alternating works for about three
times just as expected but further runs fail as before. A reboot fixes
that and gives me another few chances. This only applies to read().
sem_wait() always works.

If the test code includes semaphore.h but doesn’t even use any of its
functions it fails right away, just like before. A reboot doesn’t help.

It’s getting weirder by the day...

Otto

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

