https://bugs.winehq.org/show_bug.cgi?id=53032
Bernhard Übelacker bernhardu@mailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bernhardu@mailbox.org
--- Comment #16 from Bernhard Übelacker bernhardu@mailbox.org --- Created attachment 72435 --> https://bugs.winehq.org/attachment.cgi?id=72435 debugging-with-rr.txt
I tried if I could reproduce it inside a qemu VM. And I guess I succeeded in getting at least the "stack overlow" variant.
This combined with rr-debugger and an old but modified version of gdbinit.py I reached in winedevice.exe a segfault.
(rr) bt #0 0x7e154db0 in SetupCloseLog () #1 0x7bc54b16 in call_dll_entry_point () #2 0x7bc59381 in MODULE_InitDLL () ...
Some notes, the backtrace and singlestepping through SetupCloseLog showing the esp register are in attached file.
It is a build without mingw compilers and from flags without much debug information, but function SetupCloseLog is quite short with just a few function calls.
As far as I see the esp register has "just" the wrong value when the ret instruction is reached. Unfortunately I cannot point exactly to a single instruction which might be wrong. Maybe someone with better assembly knowledge can have a look?