From owner-freebsd-threads@FreeBSD.ORG Mon Aug 11 16:53:37 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 14BD137B401; Mon, 11 Aug 2003 16:53:37 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA3FF43FA3; Mon, 11 Aug 2003 16:53:36 -0700 (PDT) (envelope-from davidxu@FreeBSD.org) Received: from localhost (davidxu@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h7BNrYUp039009; Mon, 11 Aug 2003 16:53:35 -0700 (PDT) (envelope-from davidxu@FreeBSD.org) From: David Xu To: Marcel Moolenaar Date: Tue, 12 Aug 2003 07:56:36 +0800 User-Agent: KMail/1.5.2 References: <20030811001030.GA27859@dhcp42.pn.xcllnt.net> <00a801c35fd2$9139a1b0$f001a8c0@davidwnt> <20030811234058.GA944@athlon.pn.xcllnt.net> In-Reply-To: <20030811234058.GA944@athlon.pn.xcllnt.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308120756.36583.davidxu@FreeBSD.org> cc: threads@FreeBSD.org Subject: Re: KSE/ia64: NULL thread pointer in _thr_sig_add() X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: davidxu@FreeBSD.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Aug 2003 23:53:37 -0000 On Tuesday 12 August 2003 07:40, Marcel Moolenaar wrote: > On Mon, Aug 11, 2003 at 02:34:08PM +0800, David Xu wrote: > > I have a patch trying to fix the problem, I haven't tested it, > > http://people.freebsd.org/~davidxu/kse/thr_kern.c.diff > > I think some calls of kse_set_curthread is bogus, Dan might need to > > rethink it. > > I think this is it. I now get sig 11, but it looks like a faulty > use of random(). It appears random() is not thread safe and this > particular test program uses random. > > I'll continue to run tests, but so far it looks like the patch is > fixing KSE/ia64. It would be nice if you can run tests under directory libpthread/test, mutex_d is useful test when I am modifying libkse. David Xu