Date: Thu, 8 Apr 2004 16:25:41 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Daniel Eischen <eischen@vigrid.com> Cc: freebsd-threads@freebsd.org Subject: Re: missing error-checking in libpthread? Message-ID: <20040408212541.GE8182@dan.emsphone.com> In-Reply-To: <Pine.GSO.4.10.10404081154380.27251-100000@pcnet5.pcnet.com> References: <20040408150553.GA8182@dan.emsphone.com> <Pine.GSO.4.10.10404081154380.27251-100000@pcnet5.pcnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040408212541.GE8182>