From owner-freebsd-threads@FreeBSD.ORG Mon May 5 04:12:58 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 73CDB37B401 for ; Mon, 5 May 2003 04:12:58 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id B904943F85 for ; Mon, 5 May 2003 04:12:57 -0700 (PDT) (envelope-from eischen@pcnet1.pcnet.com) Received: from pcnet1.pcnet.com (localhost [127.0.0.1]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h45BCuBg015760; Mon, 5 May 2003 07:12:56 -0400 (EDT) Received: from localhost (eischen@localhost)h45BCmoV015747; Mon, 5 May 2003 07:12:48 -0400 (EDT) Date: Mon, 5 May 2003 07:12:48 -0400 (EDT) From: Daniel Eischen To: Terry Lambert In-Reply-To: <3EB60924.A595C548@mindspring.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: David Xu cc: threads@freebsd.org Subject: Re: Patch for running Java2D demo (jdk-1.4.1p3_3) 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: Mon, 05 May 2003 11:12:58 -0000 On Sun, 4 May 2003, Terry Lambert wrote: > David Xu wrote: > > From: "Daniel Eischen" > > > Yes, I think so. You can try the patch I posted in: > > > > > > http://docs.freebsd.org/cgi/getmsg.cgi?fetch=179964+0+archive/2003/freebsd-threads/20030504.freebsd-threads > > > > > > to see if that fixes the problem with rtld-elf. I don't want to commit it > > > because it would break round-robin scheduling. > > > > Is there anyone working on rtld-elf problem? > > Dan is; Alexander Kabaev is. > > Personally, I don't think this is justifiable, and that the > problem is actually a coding error in the threaded program, > with failure to comply with the POSIX and Single UNIX > Specification when writing your threaded program. The pthreads > documentation seems to back me up (Chapter 12 of "Go Solo 2", > as well as Corrigenda). It *is* an rtld-elf problem. I've protected dlfoo() all with the same mutex and it still hangs. rtld-elf uses spinlocks in areas that aren't called by dlfoo(). -- Dan Eischen