https://bugs.winehq.org/show_bug.cgi?id=42470
--- Comment #7 from Austin English austinenglish@gmail.com --- (In reply to Dmitry Timoshkov from comment #6)
Created attachment 57444 [details] hack
Something like the attached hack may help.
A little bit of a background: from the attached backtrace it looks like the deadlock happens during process exit when one of the threads that held the process heap lock has been killed, and the msvcrt's PROCESS_DETACH handler calls RtlDeleteCriticalSection() which hangs when it calls RtlFreeHeap() for the critical section's DebugInfo.
Hi Dmitry,
Sorry for the delay. I made a note to test this and promptly forgot about it for several months :(.
In any case, it doesn't seem to help. I was able to get a crash on my first attempt with this patch. Later attempts ran further, so it doesn't seem to make it any worse either..
This was without native msvcrt. I'll try that next.