On Sat Jun 3 06:42:02 2023 +0000, Rémi Bernon wrote:
It's a known mingw bug and not the first instance of it. It only happens with some old mingw, but the gitlab image apparently has it. I don't actually know the details but the stack pointer gets off by one and the calls return to an invalid address.
The following bugs are related to the DECLSPEC_HOTPATCH. The bug gets triggered for small functions.
https://bugs.winehq.org/show_bug.cgi?id=47633
https://bugs.winehq.org/show_bug.cgi?id=47649
https://source.winehq.org/git/wine.git/commitdiff/de6554a312a731db7d85440ce4...
The corresponding mingw bug is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91489. Supposedly it should be fixed in the new versions.