http://bugs.winehq.org/show_bug.cgi?id=28102
Summary: ws2_32: sock.ok fails intermittently Product: Wine Version: 1.3.26 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: winsock AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
I'm seeing several failure modes:
Here's one:
../../../tools/runtest -q -P wine -M ws2_32.dll -T ../../.. -p ws2_32_test.exe.so sock.c && touch sock.ok wine: Unhandled page fault on execute access to 0x00777777 at address 0x777777 (thread 0052), starting debugger... server.c:564: server_get_unix_fd: Assertion `wine_server_ptr_handle(fd_handle) == handle' failed. err:seh:raise_exception Unhandled exception code 80000101 flags 1 addr 0x68000832 Command exited with non-zero status 1 make[1]: *** [sock.ok] Error 1
Here's another:
../../../tools/runtest -q -P wine -M ws2_32.dll -T ../../.. -p ws2_32_test.exe.so sock.c && touch sock.ok *** stack smashing detected ***: ws2_32_test.exe.so terminated ======= Backtrace: ========= /lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x50)[0x68273df0] /lib/i386-linux-gnu/libc.so.6(+0xe5d9a)[0x68273d9a] /home/dank/tmp/buildbot/sandbox/slave/runtests/build/dlls/ntdll/ntdll.dll.so[0x7bc962a4] /home/dank/tmp/buildbot/sandbox/slave/runtests/build/dlls/ntdll/ntdll.dll.so[0x7bc77c97]
http://bugs.winehq.org/show_bug.cgi?id=28102
--- Comment #1 from Dan Kegel dank@kegel.com 2011-08-16 19:45:08 CDT --- Here's another failure mode:
../../../tools/runtest -q -P wine -M ws2_32.dll -T ../../.. -p ws2_32_test.exe.so sock.c && touch sock.ok wine client error:64: read: Bad address
I guess I'll try to get a more detailed log of some failures.
http://bugs.winehq.org/show_bug.cgi?id=28102
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, testcase CC| |austinenglish@gmail.com Severity|normal |minor
http://bugs.winehq.org/show_bug.cgi?id=28102
Sylvain Petreolle spetreolle@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |spetreolle@yahoo.fr
http://bugs.winehq.org/show_bug.cgi?id=28102
--- Comment #2 from Dan Kegel dank@kegel.com 2011-08-27 16:11:02 CDT --- Hey, sometimes I even get a backtrace:
wine: Unhandled page fault on write access to 0x00000000 at address 0x32f664 (thread 0138), starting debugger... Backtrace: =>0 0x0032f664 (0x0032f728) 1 server_get_unix_fd+0xff(handle=0x98, wanted_access=<?>, unix_fd=0x32f928, needs_close=0x32f8cc, type=(nil), options=0x0(nil)) [dlls/ntdll/server.c:557] in ntdll (0x0032f898) 2 wine_server_handle_to_fd+0x48(handle=0x98, access=0x1, unix_fd=0x32f928, options=0x0(nil)) [dlls/ntdll/server.c:636] 3 WS_connect+0x46(s=0x98, name=0x32f9ac, namelen=0x10) [dlls/ws2_32/socket.c:751] 4 tcp_socketpair+0x179(src=0x32fa4c, dst=0x32fa48) [dlls/ws2_32/tests/sock.c:186] 5 test_send+0x56() [dlls/ws2_32/tests/sock.c:3007] 6 func_sock+0x37d4() [dlls/ws2_32/tests/sock.c:5028] 7 run_test+0x143(name="sock.c") [dlls/ws2_32/tests/../../../include/wine/test.h:556] 0x0032f664: insb %dx,%es:(%edi)
http://bugs.winehq.org/show_bug.cgi?id=28102
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com
--- Comment #3 from Bruno Jesus 00cpxxx@gmail.com 2012-06-06 17:51:25 CDT --- Hi, Dan. How many attempts do you need to reproduce this?
http://bugs.winehq.org/show_bug.cgi?id=28102
--- Comment #4 from Dan Kegel dank@kegel.com 2012-06-07 10:56:50 CDT --- I just ran it 880 times without failure. It could be that failure is caused by bad internet weather, and I had good weather last night.
http://bugs.winehq.org/show_bug.cgi?id=28102
--- Comment #5 from Dan Kegel dank@kegel.com 2012-06-07 13:24:04 CDT --- I take that back. My overnight run yielded 14 failures in 800 tries:
1 failures at 79 Wed Jun 6 23:07:52 PDT 2012 2 failures at 179 Thu Jun 7 00:22:12 PDT 2012 3 failures at 200 Thu Jun 7 00:37:47 PDT 2012 4 failures at 217 Thu Jun 7 00:50:26 PDT 2012 5 failures at 282 Thu Jun 7 01:38:52 PDT 2012 6 failures at 310 Thu Jun 7 01:59:38 PDT 2012 7 failures at 352 Thu Jun 7 02:30:53 PDT 2012 8 failures at 490 Thu Jun 7 04:13:26 PDT 2012 9 failures at 512 Thu Jun 7 04:29:50 PDT 2012 10 failures at 548 Thu Jun 7 04:56:42 PDT 2012 11 failures at 563 Thu Jun 7 05:07:48 PDT 2012 12 failures at 678 Thu Jun 7 06:33:09 PDT 2012 13 failures at 738 Thu Jun 7 07:10:19 PDT 2012 14 failures at 740
I'll run it again... and this time save the console output.
http://bugs.winehq.org/show_bug.cgi?id=28102
--- Comment #6 from Austin English austinenglish@gmail.com 2012-06-07 13:25:09 CDT --- Have you tried it on windows from your network?
http://bugs.winehq.org/show_bug.cgi?id=28102
--- Comment #7 from Dan Kegel dank@kegel.com 2012-06-07 15:12:06 CDT --- On 11th run this time, I got
sock.c:5385: Test succeeded inside todo block: GetQueuedCompletionStatus returned 0 sock.c:5386: Test succeeded inside todo block: Last error was 64
http://bugs.winehq.org/show_bug.cgi?id=28102
--- Comment #8 from Dan Kegel dank@kegel.com 2012-06-07 22:50:46 CDT --- OK, here it looks like it averages one failure every 70 runs.
Saw this one four times: sock.c:5385: Test succeeded inside todo block: GetQueuedCompletionStatus returned 0 sock.c:5386: Test succeeded inside todo block: Last error was 64
And this one three times (with two variants), here they are:
sock.c:959: Test failed: simple_client (40): received less data than expected: 20288 of 32768 sock.c:962: Test failed: event_client (40): test pattern error: 1856
sock.c:959: Test failed: simple_client (42): received less data than expected: 32704 of 32768 sock.c:962: Test failed: event_client (42): test pattern error: 1984
sock.c:959: Test failed: simple_client (32): received less data than expected: 32576 of 32768 sock.c:962: Test failed: event_client (32): test pattern error: 1856
And this one twice: sock.c:5866: Test failed: failed to get completion status 0 sock.c:5867: Test failed: Last error was 6 sock.c:5869: Test failed: Number of bytes transferred is 0 sock.c:5871: Test failed: Internal status is c0000024
And this one once: sock.c:4148: Test succeeded inside todo block: Did not get disconnect event: 0, error 64
http://bugs.winehq.org/show_bug.cgi?id=28102
--- Comment #9 from Erich Hoover ehoover@mines.edu 2012-10-05 10:15:15 CDT --- Created attachment 41978 --> http://bugs.winehq.org/attachment.cgi?id=41978 Potential fix for intermittent ws2_32 failures
Hey Dan, could you give this a try and see if it fixes your issues?
http://bugs.winehq.org/show_bug.cgi?id=28102
--- Comment #10 from Austin English austinenglish@gmail.com 2012-10-05 15:28:11 CDT --- Running in a loop for about 15 minutes, I got: sock.c:5385: Test succeeded inside todo block: GetQueuedCompletionStatus returned 0 sock.c:5386: Test succeeded inside todo block: Last error was 64 make: *** [sock.ok] Error 2
with the patch, it failed after 40 minutes, same problem.
That may be a separate problem from Dan's issue, however..
http://bugs.winehq.org/show_bug.cgi?id=28102
--- Comment #11 from Dan Kegel dank@kegel.com 2012-10-07 01:10:26 CDT --- I just ran it 570 times in a row without failure. I'll let it run overnight.
Oh, and no, I don't think I've ever run the test on windows.
http://bugs.winehq.org/show_bug.cgi?id=28102
--- Comment #12 from Dan Kegel dank@kegel.com 2012-10-07 01:35:20 CDT --- Wait, I lied, it failed on iteration 533:
/home/dank/wine-git/tools/runtest -q -P wine -M ws2_32.dll -T ../../.. -p ws2_32_test.exe.so /home/dank/wine-git/dlls/ws2_32/tests/sock.c && touch sock.ok sock.c:4148: Test succeeded inside todo block: Did not get disconnect event: 0, error 64 fixme:winsock:WS_getsockopt WS_SO_CONNECT_TIME - faking results make: *** [sock.ok] Error 1
This is without the patch. That's probably not what you were looking for, so I'll still let it run overnight.
http://bugs.winehq.org/show_bug.cgi?id=28102
--- Comment #13 from Dan Kegel dank@kegel.com 2012-10-07 10:07:39 CDT --- Got the same 'sock.c:4148: Test succeeded inside todo block' at iterations 533 and 1065 out of 1352 runs. This is git from oct 1 on my i7 with ubuntu 12.04.1.
Looks like I can't reproduce the failures from the original post. I'll try again on another machine and then mark the bug WORKSFORME. The "succeeded inside todo block" failures would be a different bug.
http://bugs.winehq.org/show_bug.cgi?id=28102
--- Comment #14 from Austin English austinenglish@gmail.com 2012-10-09 13:43:10 CDT --- (In reply to comment #13)
Got the same 'sock.c:4148: Test succeeded inside todo block' at iterations 533 and 1065 out of 1352 runs. This is git from oct 1 on my i7 with ubuntu 12.04.1.
Looks like I can't reproduce the failures from the original post. I'll try again on another machine and then mark the bug WORKSFORME. The "succeeded inside todo block" failures would be a different bug.
See bug 31927.
https://bugs.winehq.org/show_bug.cgi?id=28102
--- Comment #15 from Ken Sharp imwellcushtymelike@gmail.com --- Is this still an issue in Wine 1.7.45 or later?
https://bugs.winehq.org/show_bug.cgi?id=28102
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source
https://bugs.winehq.org/show_bug.cgi?id=28102
--- Comment #16 from Austin English austinenglish@gmail.com --- (In reply to Ken Sharp from comment #15)
Is this still an issue in Wine 1.7.45 or later?
Yes:
../../../tools/runtest -q -P wine -T ../../.. -M ws2_32.dll -p ws2_32_test.exe.so sock && touch sock.ok fixme:ole:RemUnknown_QueryInterface No interface for iid {00000019-0000-0000-c000-000000000046} sock.c:1069: Test failed: simple_client (2b): received less data than expected: 32512 of 32768 sock.c:1072: Test failed: event_client (2b): test pattern error: 1792 fixme:winsock:convert_socktype_w2u unhandled Windows socket type 0
https://bugs.winehq.org/show_bug.cgi?id=28102
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|ws2_32: sock.ok fails |ws2_32:sock fails |intermittently |intermittently CC| |fgouget@codeweavers.com
https://bugs.winehq.org/show_bug.cgi?id=28102
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|NEW |RESOLVED
--- Comment #17 from François Gouget fgouget@codeweavers.com --- Comments 7 and 10 are duplicates of bug 31927. The other comments mention various unrelated failures.
We need bugs about specific failure modes otherwise there will always be a new failure and it will never be possible to close this bug. So I'm closing it now and new bugs should be opened for specific failures.
https://bugs.winehq.org/show_bug.cgi?id=28102
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #18 from Gijs Vermeulen gijsvrm@gmail.com --- Closing INVALID.