From owner-freebsd-hackers Wed Aug 7 14:43:36 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 4990337B401; Wed, 7 Aug 2002 14:43:33 -0700 (PDT) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3FDD43E42; Wed, 7 Aug 2002 14:43:32 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.5/8.12.4) with ESMTP id g77LhWdc000806; Wed, 7 Aug 2002 14:43:32 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.5/8.12.4/Submit) id g77LhWxd000805; Wed, 7 Aug 2002 14:43:32 -0700 (PDT) (envelope-from dillon) Date: Wed, 7 Aug 2002 14:43:32 -0700 (PDT) From: Matthew Dillon Message-Id: <200208072143.g77LhWxd000805@apollo.backplane.com> To: Martin Blapp Cc: Daniel Eischen , , , Subject: Re: Help needed. Deadlock in rtld makes openoffice build hang ag References: <20020807204231.R58571-100000@levais.imp.ch> 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 :hi, : :> It must have got interrupted while in a critical section. :> Something may have grabbed a spinlock that the thread needs :> inside a critical section. : :How can I debug that ? And is this a libc_r problem or a rtld :problem (which uses spinlocks) ? In rtld-elf/i386/lockdflt.c, put some code in the wlock_acquire() loop to fault out or print an error message when lock contention is detected. If you know what threading package OpenOffice is using you could also setup a callback vector for rtld to call inside its lock acquisition loop to force a context switch. A hack, I know, but it may be the only real solution. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message