http://bugs.winehq.org/show_bug.cgi?id=5789
Summary: Thread safety bug in winex11.drv on exit Product: Wine Version: CVS Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: wine-x11driver AssignedTo: wine-bugs@winehq.org ReportedBy: tkho@ucla.edu
The following program crashes with wine-cvs but executes fine in Windows:
int main(int argc, char* argv[]) { HMODULE hkernel32 = GetModuleHandle("kernel32.dll"); FARPROC exit_process = GetProcAddress(hkernel32, "ExitProcess"); CreateWindow("STATIC", 0, WS_VISIBLE, 100, 100, 300, 100, NULL, 0, NULL, 0); CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) exit_process, 0, 0, 0); while(1) Sleep(5000); return 0; }
exe and backtrace attached.
I noticed bug 5346 and believe this is a different bug because gdi_display is already initialized in this crash.