On Fri, 7 Feb 2025, Pali Rohár wrote:

This will report runtime error if _CRT_INIT(DLL_PROCESS_DETACH) is called
by the current thread from some atexit_table hook.

Btw, I forgot to ask; how would one practically do in order to trigger this case? I know it's a kinda pathological case that one ideally wouldn't ever hit, but I wonder if you even know of a theoretical case. I guess one case is an atexit function which explicitly references the _CRT_INIT symbol? Or if an atexit function tries to FreeLibrary() on the same DLL that it belongs to, or something like that? Something else?

// Martin

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to