https://bugs.winehq.org/show_bug.cgi?id=37962
--- Comment #9 from Sebastian Lackner sebastian@fds-team.de --- --- snip --- trace:winsock:DllMain 0x7da30000 0x0 (nil) wine: Unhandled page fault on read access to 0x7da338c5 at address 0x7da338c5 (thread 0025), starting debugger... trace:winsock:DllMain 0x7da30000 0x1 (nil) trace:winsock:WSAStartup verReq=101 --- snip ---
ws2_32 is unloaded while there is still an async callback pending. I assume we have to hold a reference to the library while callbacks are still active (if it doesn't crash on Windows).