From owner-freebsd-hackers Wed Aug 7 14:46:54 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A054A37B400 for ; Wed, 7 Aug 2002 14:46:51 -0700 (PDT) Received: from wall.polstra.com (wall-gw.polstra.com [206.213.73.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEE2143E70 for ; Wed, 7 Aug 2002 14:46:50 -0700 (PDT) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.11.3/8.11.3) with ESMTP id g77Lklf14783; Wed, 7 Aug 2002 14:46:47 -0700 (PDT) (envelope-from jdp@vashon.polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.12.4/8.12.4/Submit) id g77Lkke8058706; Wed, 7 Aug 2002 14:46:46 -0700 (PDT) (envelope-from jdp) Date: Wed, 7 Aug 2002 14:46:46 -0700 (PDT) Message-Id: <200208072146.g77Lkke8058706@vashon.polstra.com> To: hackers@freebsd.org From: John Polstra Cc: dillon@apollo.backplane.com Subject: Re: Help needed. Deadlock in rtld makes openoffice build hang ag In-Reply-To: <200208072140.g77LeL2b000769@apollo.backplane.com> References: <20020807231439.F58571-100000@levais.imp.ch> <200208072132.g77LWOBD058671@vashon.polstra.com> <200208072140.g77LeL2b000769@apollo.backplane.com> Organization: Polstra & Co., Seattle, WA Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In article <200208072140.g77LeL2b000769@apollo.backplane.com>, Matthew Dillon wrote: > > If it's a matter of one thread hogging the cpu and the other (which > holds the lock) not being able to run to completion, maybe putting > the sleep back in would work. Yes, that was the original idea behind the sleeps. But in practice it doesn't work, because the rtld isn't really linked with the rest of the application. When the rtld calls nanosleep(), it's getting the real system call rather than the threads package's version. John -- John Polstra John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message