Skip to content

test_socket: SendmsgSCTPStreamTest.testSendmsgTimeout() failed on Travis CI with: [Errno 12] Cannot allocate memory #78118

Closed

Description

@vstinner
BPO 33937
Nosy @vstinner, @hugovk, @miss-islington
PRs
  • bpo-33937: Catch ENOMEM error in test_socket #9557
  • [3.7] bpo-33937: Catch ENOMEM error in test_socket (GH-9557) #9565
  • [3.6] bpo-33937: Catch ENOMEM error in test_socket (GH-9557) #9566
  • bpo-46178: Remove/rename redundant Travis CI code #30309
  • 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 = None
    closed_at = <Date 2018-09-25.17:23:40.504>
    created_at = <Date 2018-06-22.07:32:56.065>
    labels = ['tests']
    title = 'test_socket: SendmsgSCTPStreamTest.testSendmsgTimeout() failed on Travis CI with: [Errno 12] Cannot allocate memory'
    updated_at = <Date 2021-12-30.22:31:06.533>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2021-12-30.22:31:06.533>
    actor = 'hugovk'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-09-25.17:23:40.504>
    closer = 'vstinner'
    components = ['Tests']
    creation = <Date 2018-06-22.07:32:56.065>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 33937
    keywords = ['patch']
    message_count = 9.0
    messages = ['320217', '321511', '325759', '326328', '326362', '326366', '326367', '326377', '326378']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'hugovk', 'miss-islington']
    pr_nums = ['9557', '9565', '9566', '30309']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue33937'
    versions = ['Python 3.6']

    Activity

    1. vstinner commented on Jun 22, 2018

      @vstinner
      MemberAuthor

      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
    2. changed the title [-][3.6] test_socket: testSendmsgTimeout() failed on Travis CI[/-] [+][3.6] test_socket: SendmsgSCTPStreamTest.testSendmsgTimeout() failed on Travis CI[/+] on Jun 27, 2018
    3. vstinner commented on Jul 11, 2018

      @vstinner
      MemberAuthor

      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)
    4. changed the title [-][3.6] test_socket: SendmsgSCTPStreamTest.testSendmsgTimeout() failed on Travis CI[/-] [+]test_socket: SendmsgSCTPStreamTest.testSendmsgTimeout() failed on Travis CI with: [Errno 12] Cannot allocate memory[/+] on Jul 11, 2018
    5. vstinner commented on Sep 19, 2018

      @vstinner
      MemberAuthor
    6. vstinner commented on Sep 25, 2018

      @vstinner
      MemberAuthor

      I wrote PR 9557 to fix the issue. test_socket fails frequently on Travis CI, on the three Python 3.x branches.

    7. vstinner commented on Sep 25, 2018

      @vstinner
      MemberAuthor

      New changeset 46f40be by Victor Stinner in branch 'master':
      bpo-33937: Catch ENOMEM error in test_socket (bpo-9557)
      46f40be

    8. miss-islington commented on Sep 25, 2018

      @miss-islington
      Contributor

      New changeset ef1173a by Miss Islington (bot) in branch '3.7':
      bpo-33937: Catch ENOMEM error in test_socket (GH-9557)
      ef1173a

    9. miss-islington commented on Sep 25, 2018

      @miss-islington
      Contributor

      New changeset 857b002 by Miss Islington (bot) in branch '3.6':
      bpo-33937: Catch ENOMEM error in test_socket (GH-9557)
      857b002

    10. vstinner commented on Sep 25, 2018

      @vstinner
      MemberAuthor

      The issue should now be fixed. Reopen it if it is not the case.

    11. vstinner commented on Sep 25, 2018

      @vstinner
      MemberAuthor

      Thanks for the review Pablo.

    12. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      testsTests in the Lib/test dir

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions