classification
Title: test_socket: SendmsgSCTPStreamTest.testSendmsgTimeout() failed on Travis CI with: [Errno 12] Cannot allocate memory
Type: Stage:
Components: Tests Versions: Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: vstinner
Priority: normal Keywords:

Created on 2018-06-22 07:32 by vstinner, last changed 2018-07-11 22:28 by vstinner.

Messages (2)
msg320217 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-06-22 07:32
https://travis-ci.org/python/cpython/jobs/395349473

======================================================================
ERROR: testSendmsgTimeout (test.test_socket.SendmsgSCTPStreamTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/python/cpython/Lib/test/test_socket.py", line 281, in _tearDown
    raise exc
  File "/home/travis/build/python/cpython/Lib/test/test_socket.py", line 299, in clientRun
    test_func()
  File "/home/travis/build/python/cpython/Lib/test/test_socket.py", line 2319, in _testSendmsgTimeout
    self.sendmsgToServer([b"a"*512])
  File "/home/travis/build/python/cpython/Lib/test/test_socket.py", line 2008, in sendmsgToServer
    *(args + self.sendmsg_to_server_defaults[len(args):]))
OSError: [Errno 12] Cannot allocate memory
======================================================================
FAIL: testSendmsgDontWait (test.test_socket.SendmsgSCTPStreamTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/python/cpython/Lib/test/test_socket.py", line 281, in _tearDown
    raise exc
  File "/home/travis/build/python/cpython/Lib/test/test_socket.py", line 299, in clientRun
    test_func()
  File "/home/travis/build/python/cpython/Lib/test/test_socket.py", line 2343, in _testSendmsgDontWait
    (errno.EAGAIN, errno.EWOULDBLOCK))
AssertionError: 12 not found in (11, 11)

test_socket failed when run in parallel, but also when the test has been re-run sequentially in verbose mode.

== Tests result: FAILURE then FAILURE ==
393 tests OK.
10 slowest tests:
- test_multiprocessing_spawn: 2 min 36 sec
- test_multiprocessing_forkserver: 1 min 41 sec
- test_multiprocessing_fork: 1 min 26 sec
- test_asyncio: 1 min 8 sec
- test_concurrent_futures: 1 min 7 sec
- test_subprocess: 59 sec
- test_zipfile: 47 sec
- test_io: 42 sec
- test_lib2to3: 33 sec
- test_lzma: 29 sec
1 test failed:
    test_socket
13 tests skipped:
    test_devpoll test_gdb test_kqueue test_msilib test_ossaudiodev
    test_startfile test_tix test_tk test_ttk_guionly test_winconsoleio
    test_winreg test_winsound test_zipfile64
1 re-run test:
    test_socket
msg321511 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-07-11 22:26
Recent failure (17 days ago) on the master branch:

https://travis-ci.org/python/cpython/jobs/396258134

======================================================================
ERROR: testSendmsgTimeout (test.test_socket.SendmsgSCTPStreamTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/python/cpython/Lib/test/test_socket.py", line 314, in _tearDown
    raise exc
  File "/home/travis/build/python/cpython/Lib/test/test_socket.py", line 332, in clientRun
    test_func()
  File "/home/travis/build/python/cpython/Lib/test/test_socket.py", line 2648, in _testSendmsgTimeout
    self.sendmsgToServer([b"a"*512])
  File "/home/travis/build/python/cpython/Lib/test/test_socket.py", line 2337, in sendmsgToServer
    *(args + self.sendmsg_to_server_defaults[len(args):]))
OSError: [Errno 12] Cannot allocate memory
======================================================================
FAIL: testSendmsgDontWait (test.test_socket.SendmsgSCTPStreamTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/python/cpython/Lib/test/test_socket.py", line 314, in _tearDown
    raise exc
  File "/home/travis/build/python/cpython/Lib/test/test_socket.py", line 332, in clientRun
    test_func()
  File "/home/travis/build/python/cpython/Lib/test/test_socket.py", line 2672, in _testSendmsgDontWait
    (errno.EAGAIN, errno.EWOULDBLOCK))
AssertionError: 12 not found in (11, 11)
History
Date User Action Args
2018-07-11 22:28:57vstinnersettitle: [3.6] test_socket: SendmsgSCTPStreamTest.testSendmsgTimeout() failed on Travis CI -> test_socket: SendmsgSCTPStreamTest.testSendmsgTimeout() failed on Travis CI with: [Errno 12] Cannot allocate memory
2018-07-11 22:26:00vstinnersetmessages: + msg321511
2018-06-27 21:11:51vstinnersettitle: [3.6] test_socket: testSendmsgTimeout() failed on Travis CI -> [3.6] test_socket: SendmsgSCTPStreamTest.testSendmsgTimeout() failed on Travis CI
2018-06-22 07:32:56vstinnercreate