https://bugs.winehq.org/show_bug.cgi?id=44950
--- Comment #9 from guillaume+winehq@atto.be --- I put a breakpoint on write to catch the debug output, and can confirm the thread callstack if the one that trigger the error.
Here's the callstack where write is reached:
#0 0xf7cf3fb0 in write () from /lib/i386-linux-gnu/libpthread.so.0 #1 0x7bc5cb7c in __wine_dbg_output () from /usr/lib/wine/../i386-linux-gnu/wine/ntdll.dll.so #2 0x7bc56dcc in ?? () from /usr/lib/wine/../i386-linux-gnu/wine/ntdll.dll.so #3 0x7bc57a61 in RtlpWaitForCriticalSection () from /usr/lib/wine/../i386-linux-gnu/wine/ntdll.dll.so #4 0x7bc57d5f in RtlEnterCriticalSection () from /usr/lib/wine/../i386-linux-gnu/wine/ntdll.dll.so #5 0x7c44db6c in X11DRV_GetDC () from /usr/lib/wine/../i386-linux-gnu/wine/winex11.drv.so #6 0x7f642874 in ?? () from /usr/lib/wine/../i386-linux-gnu/wine/user32.dll.so #7 0x7f6433fe in GetDCEx () from /usr/lib/wine/../i386-linux-gnu/wine/user32.dll.so #8 0x7f643f86 in GetDC () from /usr/lib/wine/../i386-linux-gnu/wine/user32.dll.so #9 0x7f6060c5 in ?? () from /usr/lib/wine/../i386-linux-gnu/wine/user32.dll.so #10 0x7f607132 in DialogBoxIndirectParamW () from /usr/lib/wine/../i386-linux-gnu/wine/user32.dll.so #11 0x7f63df1f in MessageBoxIndirectW () from /usr/lib/wine/../i386-linux-gnu/wine/user32.dll.so #12 0x7f63e15c in MessageBoxIndirectA () from /usr/lib/wine/../i386-linux-gnu/wine/user32.dll.so #13 0x7f63e339 in MessageBoxA () from /usr/lib/wine/../i386-linux-gnu/wine/user32.dll.so #14 0x100043ff in ?? () #15 0x10003f07 in ?? () #16 0x10003325 in ?? () Backtrace stopped: previous frame inner to this frame (corrupt stack?)