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.

In which way will it report a runtime error? Do you mean the call to _amsg_exit(31), which gets called if (__native_startup_state != __initialized)?

We only set __native_startup_state = __uninitialized; after calling _execute_onexit_table(&atexit_table);, so while executing atexit_table, we still have __native_startup_state as it was originally.

// 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