missing error-checking in libpthread?

Dan Nelson dnelson at allantgroup.com
Thu Apr 8 14:25:43 PDT 2004


In the last episode (Apr 08), Daniel Eischen said:
> On Thu, 8 Apr 2004, Dan Nelson wrote:
> > I'm seeing the following stack trace in a testsuite for a threaded
> > program.  At the time I generated the coredump, the process was in
> > a loop calling kse_release({0,1000000}) about 1.5 million
> > times/sec, every call returning EINVAL.
> 
> Can you try this patch?
> 
> Index: thr_kern.c
> ===================================================================
> RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_kern.c,v

That seems to fix my problem!  I think it'd be nice if those
kse_releases() were error-checked though, just to keep something
similar from happening again.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-threads mailing list