http://bugs.winehq.org/show_bug.cgi?id=29262
Bug #: 29262 Summary: Creating windows in threads may deadlock Product: Wine Version: 1.3.34 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: kgbricola@web.de Classification: Unclassified
Created attachment 37846 --> http://bugs.winehq.org/attachment.cgi?id=37846 testcase (source + binary - w32)
Creating windows in threads may deadlock at gdi_section and X11DRV_CritSection. This doesn't seem to happen on win xp. Though I'd expect that it should be possible to create windows from a thread. Attached is a small test case.
Howto: - run graphics.exe - hit the button "start" a couple of times and the deadlock may appear (sometimes it takes ages to trigger it, sometimes the first hit will make it happen)
Log: err:ntdll:RtlpWaitForCriticalSection section 0x688ef580 "../../../git/dlls/winex11.drv/x11drv_main.c: X11DRV_CritSection" wait timed out in thread 0009, blocked by 002f, retrying (60 sec) err:ntdll:RtlpWaitForCriticalSection section 0x68e2d960 "../../../git/dlls/gdi32/gdiobj.c: gdi_section" wait timed out in thread 002f, blocked by 0009, retrying (60 sec)