From owner-freebsd-threads@FreeBSD.ORG Wed Jun 4 09:59:15 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 252CB37B401 for ; Wed, 4 Jun 2003 09:59:15 -0700 (PDT) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 582EC43F3F for ; Wed, 4 Jun 2003 09:59:14 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by attbi.com (sccrmhc01) with ESMTP id <2003060416591200100hqmlte>; Wed, 4 Jun 2003 16:59:13 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id JAA02294; Wed, 4 Jun 2003 09:59:12 -0700 (PDT) Date: Wed, 4 Jun 2003 09:59:10 -0700 (PDT) From: Julian Elischer To: Kern Sibbald In-Reply-To: <1054745115.13630.517.camel@rufus> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Daniel Eischen cc: freebsd-threads@freebsd.org Subject: Re: FreeBSD pthread_equal "bug" X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jun 2003 16:59:15 -0000 On 4 Jun 2003, Kern Sibbald wrote: > > that's a bonus ;-) > > This bug does not highlight bad applications because most > programmers will reasonably expect that pthread_equal() will > not be the same for two different threads. It took me > a long time to find this problem because I just could not > imagine that pthread_equal() was not "working". > This problem is extremely subtle and is likely to cause > unsuspecting applications long months of bizarre > behavior. If IDs are recycled after a LONG time then there is still a chance that the test could go the wrong way if something held up the tester for a long enough time, so the behaviour is not "perfect", > > Fix it or not, that is your choice. Now that I know > that you don't handle it as I would suspect I can code > around it. best for now.. it is now on our radar anyhow.. thanks... > > _______________________________________________ > freebsd-threads@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org" >