I'm having the wineserver sparodically return a failure STATUS_NO_SUCH_FILE I think this is possibly because wineserver didn't get compiled with a threadsafe errno but I'd welcome other ideas
Heres the context (WINEDEBUG=+server) 0014: new_thread() = 0 { tid=003a, handle=12c } 003b: terminate_thread( handle=fffffffe, exit_code=207 ) 003b: terminate_thread() = 0 { self=1, last=0 } 003b: get_window_children( parent=0, atom=0000, tid=0000 ) 003b: get_window_children() = ERROR_INVALID_WINDOW_HANDLE { count=0, children={} } 003b: close_handle( handle=0 ) 003b: close_handle() = INVALID_HANDLE 003b: *killed* exit_code=207 003a: *fd* 53 <- 66 003a: *fd* 55 <- 67 003a: init_thread( unix_pid=21133, unix_tid=-1, debug_level=1, teb=7e090000, peb=7ffd0000, entry=40edf7, ldt_copy=d1f90cc0, reply_fd=53, wait_fd=55 ) 003a: init_thread() = NO_SUCH_FILE { pid=0008, tid=003a, info_size=0, server_start=1c786d460b0ba38 (-11.5351480), version=298 } wine client error:3a: init_thread failed with status c000000f
Robert Lunnon bobl@optusnet.com.au writes:
I'm having the wineserver sparodically return a failure STATUS_NO_SUCH_FILE I think this is possibly because wineserver didn't get compiled with a threadsafe errno but I'd welcome other ideas
No, the wineserver doesn't use threads. The bug is that the unix_tid field in init_thread() is -1 instead of the lwpid, so opening the /proc file fails. My guess is that you are using wine-kthread instead of wine-pthread.