You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Random failure of test_TCPServer() of test.test_socketserver.SocketServerTest and test_handle_accept() of test.test_asyncore.TestAPI_UseIPv6Select on FreeBSD buildbots #71971
bpo-30319: Change socket.close() to ignore ECONNRESET
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2016-12-05.17:35:40.044>created_at=<Date2016-08-17.08:23:42.030>labels= ['type-bug', 'tests']
title='Random failure of test_TCPServer() of test.test_socketserver.SocketServerTest and test_handle_accept() of test.test_asyncore.TestAPI_UseIPv6Select on FreeBSD buildbots'updated_at=<Date2017-07-04.14:56:54.571>user='https://github.com/vstinner'
Traceback (most recent call last):
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/test_asyncore.py", line 500, in tearDown
asyncore.close_all()
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/asyncore.py", line 561, in close_all
x.close()
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/asyncore.py", line 397, in closeself.socket.close()
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/socket.py", line 407, in closeself._real_close()
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/socket.py", line 401, in _real_close
_ss.close(self)
ConnectionResetError: [Errno 54] Connection reset by peer
----------------------------------------------------------------------
0:15:27 [319/402/4] test_socketserver failed -- running: test_tokenize (190 sec), test_datetime (279 sec), test_tools (194 sec)
(...)
test_TCPServer (test.test_socketserver.SocketServerTest) ... creating server
ADDR = ('127.0.0.1', 42875)
CLASS = <class 'socketserver.TCPServer'>
server running
test client 0
test client 1
Exception in thread <class 'socketserver.TCPServer'> serving:
Traceback (most recent call last):
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/threading.py", line 916, in _bootstrap_innerself.run()
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/threading.py", line 864, in runself._target(*self._args, **self._kwargs)
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/socketserver.py", line 238, in serve_foreverself._handle_request_noblock()
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/socketserver.py", line 319, in _handle_request_noblockself.handle_error(request, client_address)
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/socketserver.py", line 317, in _handle_request_noblockself.process_request(request, client_address)
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/socketserver.py", line 349, in process_requestself.shutdown_request(request)
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/socketserver.py", line 510, in shutdown_requestself.close_request(request)
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/socketserver.py", line 514, in close_request
request.close()
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/socket.py", line 407, in closeself._real_close()
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/socket.py", line 401, in _real_close
_ss.close(self)
ConnectionResetError: [Errno 54] Connection reset by peer
Traceback (most recent call last):
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/test_socketserver.py", line 175, in test_TCPServerself.stream_examine)
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/support/__init__.py", line 1956, in decoratorreturn func(*args)
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/test_socketserver.py", line 141, in run_server
testfunc(svrcls.address_family, addr)
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/test_socketserver.py", line 153, in stream_examine
buf = data = receive(s, 100)
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/test_socketserver.py", line 46, in receiveraiseRuntimeError("timed out on %r"% (sock,))
RuntimeError: timed out on <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 42877), raddr=('127.0.0.1', 42875)>
I think I have seen these kind of errors pop up randomly on various tests on Free BSD buildbots (at least in the last few months or so).
Are the buildbots so overloaded that they drop localhost connections? Or are localhost TCP connections generally just that unreliable on Free BSD? Or is something else going on? I’m not faimilar with the OS.
This only seems to affect 3.6, not the equivalent 3.5 buildbot.
Traceback (most recent call last):
File "/usr/home/buildbot/python/3.x.koobs-freebsd9/build/Lib/test/test_asyncore.py", line 500, in tearDown
asyncore.close_all()
File "/usr/home/buildbot/python/3.x.koobs-freebsd9/build/Lib/asyncore.py", line 561, in close_all
x.close()
File "/usr/home/buildbot/python/3.x.koobs-freebsd9/build/Lib/asyncore.py", line 397, in closeself.socket.close()
File "/usr/home/buildbot/python/3.x.koobs-freebsd9/build/Lib/socket.py", line 407, in closeself._real_close()
File "/usr/home/buildbot/python/3.x.koobs-freebsd9/build/Lib/socket.py", line 401, in _real_close
_ss.close(self)
ConnectionResetError: [Errno 54] Connection reset by peer
Activity
vstinner commentedon Aug 17, 2016
http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%203.x/builds/4760/steps/test/logs/stdio
test_handle_accept (test.test_asyncore.TestAPI_UseIPv6Select) ... ERROR
======================================================================
ERROR: test_handle_accept (test.test_asyncore.TestAPI_UseIPv6Select)
----------------------------------------------------------------------
ERROR
/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/unittest/case.py:628: ResourceWarning: unclosed <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 42877), raddr=('127.0.0.1', 42875)>
outcome.errors.clear()
/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/unittest/case.py:628: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 42875)>
outcome.errors.clear()
(...)
======================================================================
ERROR: test_TCPServer (test.test_socketserver.SocketServerTest)
----------------------------------------------------------------------
Ran 25 tests in 25.825s
vadmium commentedon Aug 17, 2016
I think I have seen these kind of errors pop up randomly on various tests on Free BSD buildbots (at least in the last few months or so).
Are the buildbots so overloaded that they drop localhost connections? Or are localhost TCP connections generally just that unreliable on Free BSD? Or is something else going on? I’m not faimilar with the OS.
This only seems to affect 3.6, not the equivalent 3.5 buildbot.
berkerpeksag commentedon Aug 22, 2016
Here is another one on koobs-freebsd10: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%203.x/builds/4809/steps/test/logs/stdio test_handle_accept was fine this time.
And this one is from koobs-freebsd9:
======================================================================
ERROR: test_handle_accept (test.test_asyncore.TestAPI_UseIPv6Select)
----------------------------------------------------------------------
http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%203.x/builds/4705/steps/test/logs/stdio
vstinner commentedon Dec 5, 2016
I didn't look at buildbots recently, and I don't have access to FreeBSD, so I just close the issue :-/
vstinner commentedon Jul 4, 2017
Duplicate of bpo-30319.