cygthread::cygthread() hang

Christopher Faylor
Wed Apr 9 15:50:00 GMT 2003

On Wed, Apr 09, 2003 at 11:46:13AM -0400, Joe Buehler wrote:
>Christopher Faylor wrote:
>>There shouldn't be that many thread handles.
>Indeed, looking at it further, it doesn't look like it's leaking threads.
>The "handle" utility shows only 2 or 3 open thread handles, as should be
>the case.
>The Windows documentation says that TerminateThread() can cause
>leaks in various ways.

Yep.  I guess it's possible that there are more leaks than just the
stack one.

>It appears that Cygwin takes care of freeing the stack when it calls
>What about dll attach cleanup?  There are a good dozen or two
>dlls being used by emacs -- could this be a problem?

It's possible that dll attach might cause memory usage that would
limit future threads from being created.


More information about the Cygwin-developers mailing list