https://bugs.winehq.org/show_bug.cgi?id=44950
--- Comment #8 from guillaume+winehq@atto.be --- I captured the following callstack using gdb and attaching to the same process producing the error mentioned in my previous comment.
That wine error mentions thread 31, however it doesn't match any thread identifier visible from GDB. So I assume this is an internal thread identifier within Wine that doesn't match thread ids on my host system (ie Linux).
When examining all thread, I noticed only one where "RtlpWaitForCriticalSection" appear :
(gdb) t 5 [Switching to thread 5 (Thread 0xa423b40 (LWP 12918))] #0 0xf7ee3559 in __kernel_vsyscall () (gdb) bt #0 0xf7ee3559 in __kernel_vsyscall () #1 0xf7bf7a07 in syscall () from /lib/i386-linux-gnu/libc.so.6 #2 0x7bc57396 in ?? () from /usr/lib/wine/../i386-linux-gnu/wine/ntdll.dll.so #3 0x7bc57474 in ?? () from /usr/lib/wine/../i386-linux-gnu/wine/ntdll.dll.so #4 0x7bc575b4 in ?? () from /usr/lib/wine/../i386-linux-gnu/wine/ntdll.dll.so #5 0x7bc57a70 in RtlpWaitForCriticalSection () from /usr/lib/wine/../i386-linux-gnu/wine/ntdll.dll.so #6 0x7bc57d5f in RtlEnterCriticalSection () from /usr/lib/wine/../i386-linux-gnu/wine/ntdll.dll.so #7 0x7c44db6c in X11DRV_GetDC () from /usr/lib/wine/../i386-linux-gnu/wine/winex11.drv.so #8 0x7f642874 in ?? () from /usr/lib/wine/../i386-linux-gnu/wine/user32.dll.so #9 0x7f6433fe in GetDCEx () from /usr/lib/wine/../i386-linux-gnu/wine/user32.dll.so #10 0x7f643f86 in GetDC () from /usr/lib/wine/../i386-linux-gnu/wine/user32.dll.so #11 0x7f6060c5 in ?? () from /usr/lib/wine/../i386-linux-gnu/wine/user32.dll.so #12 0x7f607132 in DialogBoxIndirectParamW () from /usr/lib/wine/../i386-linux-gnu/wine/user32.dll.so #13 0x7f63df1f in MessageBoxIndirectW () from /usr/lib/wine/../i386-linux-gnu/wine/user32.dll.so #14 0x7f63e15c in MessageBoxIndirectA () from /usr/lib/wine/../i386-linux-gnu/wine/user32.dll.so #15 0x7f63e339 in MessageBoxA () from /usr/lib/wine/../i386-linux-gnu/wine/user32.dll.so #16 0x100043ff in ?? () #17 0x10003f07 in ?? () #18 0x10003325 in ?? () Backtrace stopped: previous frame inner to this frame (corrupt stack?)