help
help copied to clipboard
hi
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.
@bzoz Could it be libuv needs a DllMain() that frees uv__current_thread_key on DLL_PROCESS_DETACH?