https://bugs.winehq.org/show_bug.cgi?id=49092
Bernhard Übelacker bernhardu@mailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bernhardu@mailbox.org
--- Comment #1 from Bernhard Übelacker bernhardu@mailbox.org --- Created attachment 67109 --> https://bugs.winehq.org/attachment.cgi?id=67109 Revert-allocation-from-stack-in-36371075f8faebcb0ae2738982a877900.patch
Tried if I can get some more details and found following:
After the "ad nauseam" winedbg shows these frames: ... #16242 0x00a99394 in ?? () from .../BW.exe #16243 0x00a99394 in ?? () from .../BW.exe #16244 0x00b0417a in ?? () from .../BW.exe #16245 0x005f9edb in ?? () from .../BW.exe #16246 0x005f9b1f in ?? () from .../BW.exe #16247 0x005f9ad0 in ?? () from .../BW.exe #16248 0x0060452d in ?? () from .../BW.exe #16249 0x00b3881a in ?? () from .../BW.exe #16250 0x7b44fb6a in call_process_entry () at /home/bernhard/data/entwicklung/2020/wine/wine-git/wine-git/include/wine/debug.h:508 #16251 0x7b44fd0f in start_process (entry=0xb38770, peb=0x7ffdf000) at /home/bernhard/data/entwicklung/2020/wine/wine-git/wine-git/dlls/kernel32/process.c:153 #16252 0x7b44fb76 in __wine_start_process () at /home/bernhard/data/entwicklung/2020/wine/wine-git/wine-git/include/wine/debug.h:508 #16253 0x00000000 in ?? ()
A git bisect led to commit 36371075f8faebcb0ae2738982a877900ba870fb. Reduced that to just the *set* part, but could not find an "obvious" problem.
Attached patch (against wine-5.8) does just allocate the variable server_context from the heap instead of the stack and then it seems to work.
Could that be part of some protection which is checking no one messed around with the stack?
And third, this seems to be a one-time problem. Once I saw a program window this overflow issue was not triggered again on following runs.
Could you observe these points too?