Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Aug 2003 16:40:58 -0700
From:      Marcel Moolenaar <marcel@xcllnt.net>
To:        David Xu <davidxu@viatech.com.cn>
Cc:        threads@FreeBSD.org
Subject:   Re: KSE/ia64: NULL thread pointer in _thr_sig_add()
Message-ID:  <20030811234058.GA944@athlon.pn.xcllnt.net>
In-Reply-To: <00a801c35fd2$9139a1b0$f001a8c0@davidwnt>
References:  <20030811001030.GA27859@dhcp42.pn.xcllnt.net> <00a801c35fd2$9139a1b0$f001a8c0@davidwnt>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030811234058.GA944>