Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_multiprocessing fails on AMD64 FreeBSD CURRENT Shared 2.7 #81566

Closed
vstinner opened this issue Jun 24, 2019 · 3 comments
Closed

test_multiprocessing fails on AMD64 FreeBSD CURRENT Shared 2.7 #81566

vstinner opened this issue Jun 24, 2019 · 3 comments
Labels
tests Tests in the Lib/test dir

Comments

@vstinner
Copy link
Member

BPO 37385
Nosy @vstinner, @pablogsal, @nanjekyejoannah
Superseder
  • bpo-28724: Add method send_io, recv_io to the socket module.
  • 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 2019-08-28.23:46:16.332>
    created_at = <Date 2019-06-24.11:28:39.176>
    labels = ['tests']
    title = 'test_multiprocessing fails on AMD64 FreeBSD CURRENT Shared 2.7'
    updated_at = <Date 2019-08-28.23:46:16.331>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2019-08-28.23:46:16.331>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-08-28.23:46:16.332>
    closer = 'vstinner'
    components = ['Tests']
    creation = <Date 2019-06-24.11:28:39.176>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 37385
    keywords = []
    message_count = 3.0
    messages = ['346378', '346380', '350696']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'pablogsal', 'nanjekyejoannah']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '28724'
    type = None
    url = 'https://bugs.python.org/issue37385'
    versions = ['Python 2.7']

    @vstinner
    Copy link
    Member Author

    AMD64 FreeBSD CURRENT Shared 2.7:
    https://buildbot.python.org/all/#/builders/169/builds/146

    0:02:22 load avg: 3.64 [119/404/1] test_multiprocessing failed
    Process Process-16:
    Traceback (most recent call last):
      File "/usr/home/buildbot/python/2.7.koobs-freebsd-current/build/Lib/multiprocessing/process.py", line 267, in _bootstrap
        self.run()
      File "/usr/home/buildbot/python/2.7.koobs-freebsd-current/build/Lib/multiprocessing/process.py", line 114, in run
        self._target(*self._args, **self._kwargs)
      File "/usr/home/buildbot/python/2.7.koobs-freebsd-current/build/Lib/test/test_multiprocessing.py", line 1797, in _writefd
        fd = reduction.recv_handle(conn)
      File "/usr/home/buildbot/python/2.7.koobs-freebsd-current/build/Lib/multiprocessing/reduction.py", line 83, in recv_handle
        return _multiprocessing.recvfd(conn.fileno())
    RuntimeError: No file descriptor received
    Process Process-17:
    Traceback (most recent call last):
      File "/usr/home/buildbot/python/2.7.koobs-freebsd-current/build/Lib/multiprocessing/process.py", line 267, in _bootstrap
        self.run()
      File "/usr/home/buildbot/python/2.7.koobs-freebsd-current/build/Lib/multiprocessing/process.py", line 114, in run
        self._target(*self._args, **self._kwargs)
      File "/usr/home/buildbot/python/2.7.koobs-freebsd-current/build/Lib/test/test_multiprocessing.py", line 1797, in _writefd
        fd = reduction.recv_handle(conn)
      File "/usr/home/buildbot/python/2.7.koobs-freebsd-current/build/Lib/multiprocessing/reduction.py", line 83, in recv_handle
        return _multiprocessing.recvfd(conn.fileno())
    RuntimeError: No file descriptor received
    test test_multiprocessing failed -- multiple errors occurred; run in verbose mode for details

    ...

    test_duplex_false (test.test_multiprocessing.WithProcessesTestConnection) ... ok
    Process Process-16:
    Traceback (most recent call last):
      File "/usr/home/buildbot/python/2.7.koobs-freebsd-current/build/Lib/multiprocessing/process.py", line 267, in _bootstrap
        self.run()
      File "/usr/home/buildbot/python/2.7.koobs-freebsd-current/build/Lib/multiprocessing/process.py", line 114, in run
        self._target(*self._args, **self._kwargs)
      File "/usr/home/buildbot/python/2.7.koobs-freebsd-current/build/Lib/test/test_multiprocessing.py", line 1797, in _writefd
        fd = reduction.recv_handle(conn)
      File "/usr/home/buildbot/python/2.7.koobs-freebsd-current/build/Lib/multiprocessing/reduction.py", line 83, in recv_handle
        return _multiprocessing.recvfd(conn.fileno())
    RuntimeError: No file descriptor received
    test_fd_transfer (test.test_multiprocessing.WithProcessesTestConnection) ... FAIL
    Process Process-17:
    Traceback (most recent call last):
      File "/usr/home/buildbot/python/2.7.koobs-freebsd-current/build/Lib/multiprocessing/process.py", line 267, in _bootstrap
        self.run()
      File "/usr/home/buildbot/python/2.7.koobs-freebsd-current/build/Lib/multiprocessing/process.py", line 114, in run
        self._target(*self._args, **self._kwargs)
      File "/usr/home/buildbot/python/2.7.koobs-freebsd-current/build/Lib/test/test_multiprocessing.py", line 1797, in _writefd
        fd = reduction.recv_handle(conn)
      File "/usr/home/buildbot/python/2.7.koobs-freebsd-current/build/Lib/multiprocessing/reduction.py", line 83, in recv_handle
        return _multiprocessing.recvfd(conn.fileno())
    RuntimeError: No file descriptor received
    test_large_fd_transfer (test.test_multiprocessing.WithProcessesTestConnection) ... FAIL

    ======================================================================
    FAIL: test_fd_transfer (test.test_multiprocessing.WithProcessesTestConnection)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "/usr/home/buildbot/python/2.7.koobs-freebsd-current/build/Lib/test/test_multiprocessing.py", line 1819, in test_fd_transfer
        self.assertEqual(f.read(), b"foo")
    AssertionError: '' != 'foo'

    ======================================================================
    FAIL: test_large_fd_transfer (test.test_multiprocessing.WithProcessesTestConnection)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "/usr/home/buildbot/python/2.7.koobs-freebsd-current/build/Lib/test/test_multiprocessing.py", line 1851, in test_large_fd_transfer
        self.assertEqual(f.read(), b"bar")
    AssertionError: '' != 'bar'

    @vstinner vstinner added the tests Tests in the Lib/test dir label Jun 24, 2019
    @vstinner
    Copy link
    Member Author

    See also bpo-28724: Add method send_io, recv_io to the socket module.

    @vstinner
    Copy link
    Member Author

    AMD64 FreeBSD CURRENT Shared 2.7 is back to green: this issue is a duplicate of bpo-28724 that I fixed recently.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    tests Tests in the Lib/test dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant