http://bugs.winehq.org/show_bug.cgi?id=27311
David aim_here2002@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |aim_here2002@yahoo.co.uk
--- Comment #2 from David aim_here2002@yahoo.co.uk 2011-05-28 05:43:58 CDT --- Hi, after discussion with the submitter and someone called 'kevlarman' in the #winehq IRC channel, the problem seems to be related to a comment with a fixme in dlls/ws2_32/socket.c, (circa line 4037 or so in 1.3.20), which asks what should happen if some pointer optval is NULL.
I managed to fix/workaround this bug by inserting the line
if (((LINGER*)optval)==NULL) return 0;
as line 4037, immediately after the case statement and before the line(s) that cause the page fault. I've absolutely no idea if that's what should happen, but it makes this particular problem go away.