Sebastian Lackner sebastian@fds-team.de writes:
This was one of my initial approaches, but first of all its very hacky, and moreover that alone is not sufficient. The 64-bit version of MSYS2 will try to reuse the existing stack at one point, and memset()s a specific amount of memory at the top for its internal use as thread local storage. Depending on the exact memory layout, this might corrupt pthread or wine internal structures like debug_info... ;)
Couldn't we ask them to stop doing such things?