From owner-freebsd-threads@FreeBSD.ORG Mon Apr 28 19:35:11 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 E672837B401; Mon, 28 Apr 2003 19:35:11 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CE3243F93; Mon, 28 Apr 2003 19:35:11 -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 h3T2ZABg002841; Mon, 28 Apr 2003 22:35:10 -0400 (EDT) Received: from localhost (eischen@localhost)h3T2ZA3O002837; Mon, 28 Apr 2003 22:35:10 -0400 (EDT) Date: Mon, 28 Apr 2003 22:35:10 -0400 (EDT) From: Daniel Eischen To: David Xu In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-threads@freebsd.org Subject: Re: SMPing libpthread 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: Tue, 29 Apr 2003 02:35:12 -0000 On Mon, 28 Apr 2003, Daniel Eischen wrote: > On Tue, 29 Apr 2003, David Xu wrote: > > > > > ----- Original Message ----- > > From: "Daniel Eischen" > > To: "David Xu" > > Cc: > > Sent: Tuesday, April 29, 2003 7:59 AM > > Subject: Re: SMPing libpthread > > > > > > > On Mon, 28 Apr 2003, David Xu wrote: > > > > > > > I have updated the libpthread SMP patch. > > > > http://people.freebsd.org/~davidxu/libpthread_smp.diff > > > > default is SMP enabled in the patch. the patch past all ACE tests, > > > > also crew program was tested. > > > > > > Committed. I also made spinlock/spinunlock critical regions. > > > Take a look at it and see if you think it'll work OK. All > > > my tests pass with this. > > > > > > > I found some DNS routines are using spinlock! so they > > may be blocked in network transaction, it would lock out > > our scheduler. I think we still need to rescure PS_SPINBLOCK > > code from libc_r. > > No, let's replace them with mutexes. They shouldn't have > crept in. Is this with the new NSS code that was just added? > > > > We still have a problem with mozilla. When I first got > > > libkse working, mozilla worked for me but now it hangs > > > upon startup (no window ever gets displayed). > > > > > Can you use gdb and press ctrl+c to see where it is dead loop? > > No, only SIGKILL works. See my other post about rtld :-) BTW David, you can debug mozilla with: $ /usr/X11R6/lib/mozilla-devel-gtk2/mozilla -g It's a shell script that will automatically start it up under the debugger. -- Dan Eischen