From owner-freebsd-threads@FreeBSD.ORG Mon Aug 11 16:41: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 2D02C37B401 for ; Mon, 11 Aug 2003 16:41:11 -0700 (PDT) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 548D543FA3 for ; Mon, 11 Aug 2003 16:41:10 -0700 (PDT) (envelope-from marcel@xcllnt.net) Received: from athlon.pn.xcllnt.net (athlon.pn.xcllnt.net [192.168.4.3]) by ns1.xcllnt.net (8.12.9/8.12.9) with ESMTP id h7BNfAwO076515; Mon, 11 Aug 2003 16:41:10 -0700 (PDT) (envelope-from marcel@piii.pn.xcllnt.net) Received: from athlon.pn.xcllnt.net (localhost [127.0.0.1]) by athlon.pn.xcllnt.net (8.12.9/8.12.9) with ESMTP id h7BNf9F1001161; Mon, 11 Aug 2003 16:41:09 -0700 (PDT) (envelope-from marcel@athlon.pn.xcllnt.net) Received: (from marcel@localhost) by athlon.pn.xcllnt.net (8.12.9/8.12.9/Submit) id h7BNewkm001160; Mon, 11 Aug 2003 16:40:58 -0700 (PDT) (envelope-from marcel) Date: Mon, 11 Aug 2003 16:40:58 -0700 From: Marcel Moolenaar To: David Xu Message-ID: <20030811234058.GA944@athlon.pn.xcllnt.net> References: <20030811001030.GA27859@dhcp42.pn.xcllnt.net> <00a801c35fd2$9139a1b0$f001a8c0@davidwnt> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00a801c35fd2$9139a1b0$f001a8c0@davidwnt> User-Agent: Mutt/1.5.4i 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 List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Aug 2003 23:41:11 -0000 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. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net