https://bugs.winehq.org/show_bug.cgi?id=40528
--- Comment #7 from Nikolay Sivov bunglehead@gmail.com --- (In reply to Angus Gratton from comment #6)
I think the current crash may happen when Cygwin calls RtlEnterCriticalSection (peb.FastPebLock);, as wine doesn't set this field and calls RtlAcquirePebLock() instead (which uses a static variable). I don't know if that's the only thing that's different, though...
Please retest with wine 2.16, looks like commit b31583770f074ca343e00f6c2be19b831d6ad90e is relevant.