https://bugs.winehq.org/show_bug.cgi?id=37669
--- Comment #28 from Dmitry Timoshkov dmitry@baikal.ru --- (In reply to Sebastian Lackner from comment #27)
Created attachment 50695 [details] ntdll: Try to handle write-watches while we're on the signal stack.
Does the attached patch help (in addition to all the previous stuff, I hope it still applies ^^)? It should theoretically solve the problem, but I am not really glad yet about the way it is implemented. We can handle write-watches, but we still can't properly use __TRY/__EXCEPT blocks in APCs. Implementing all this properly would be much more complicated... :/
Patch applies but unfortunately I still get an exception at the same place http://source.winehq.org/git/wine.git/blob/HEAD:/dlls/ws2_32/socket.c#l2009