help icon indicating copy to clipboard operation
help copied to clipboard

hi

Open huangchouchou opened this issue 6 years ago • 1 comments

hi im come here, This is similar to the previous problem. test uv_default_loop have pipe handle leak? https://github.com/libuv/help/issues/52 when the process keep doing load and unload some times, may be a few hours. this function 'uv_thread_create' will not be done.

we lookup. uv_thread_create -> uv__thread_start -> uv_once -> uv__once_inner -> uv__init_current_thread_key -> uv_key_create -> __abort。 IS TlsAlloc error

TlsFree in uv_key_delete

i search all core, but not find uv_key_delete to be called when library unloaded i fix it and i still test.

huangchouchou avatar Nov 09 '18 01:11 huangchouchou

@bzoz Could it be libuv needs a DllMain() that frees uv__current_thread_key on DLL_PROCESS_DETACH?

bnoordhuis avatar Nov 09 '18 09:11 bnoordhuis