This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: test_multiprocessing_main_handling fail on buildbot "x86 FreeBSD 6.4 3.x"
Type: Stage:
Components: Tests Versions: Python 3.4, Python 3.5
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: python-dev, vstinner
Priority: normal Keywords: buildbot

Created on 2014-09-03 21:44 by vstinner, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg226329 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2014-09-03 21:44
The test requires SemLock which is not supported on FreeBSD 6.4. The whole test_multiprocessing_main_handling should be skipped on this platform.

FAIL: test_zipfile (test.test_multiprocessing_main_handling.SpawnCmdLineTest)
Traceback (most recent call last):
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/test/", line 213, in test_zipfile
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/test/", line 153, in _check_script
    rc, out, err = assert_python_ok(*run_args, __isolated=False)
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/test/", line 69, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/test/", line 55, in _assert_python
    "stderr follows:\n%s" % (rc, err.decode('ascii', 'ignore')))
AssertionError: Process return code is 1, stderr follows:
Traceback (most recent call last):
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/multiprocessing/", line 29, in <module>
    from _multiprocessing import SemLock, sem_unlink
ImportError: cannot import name 'SemLock'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/", line 85, in _run_code
    exec(code, run_globals)
  File "/tmp/tmpwgjabqgk/", line 16, in <module>
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/multiprocessing/", line 118, in Pool
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/multiprocessing/", line 150, in __init__
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/multiprocessing/", line 243, in _setup_queues
    self._inqueue = self._ctx.SimpleQueue()
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/multiprocessing/", line 111, in SimpleQueue
    return SimpleQueue(ctx=self.get_context())
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/multiprocessing/", line 319, in __init__
    self._rlock = ctx.Lock()
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/multiprocessing/", line 65, in Lock
    from .synchronize import Lock
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/multiprocessing/", line 34, in <module>
    " function, see issue 3770.")
ImportError: This platform lacks a functioning sem_open implementation, therefore, the required synchronization primitives needed will not function, see issue 3770.
msg226330 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-09-03 21:48
New changeset db9eb9cba1ec by Victor Stinner in branch '3.4':
Issue #22332: test_multiprocessing_main_handling is now skipped if sem_open

New changeset 2f21d920d00d by Victor Stinner in branch 'default':
(Merge 3.4) Issue #22332: test_multiprocessing_main_handling is now skipped if
msg228578 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2014-10-05 15:22
The test_multiprocessing_main_handling test is now skipped, as expected, on on the buildbot "x86 FreeBSD 6.4 3.x".
Date User Action Args
2022-04-11 14:58:07adminsetgithub: 66528
2014-10-05 15:22:29vstinnersetmessages: + msg228578
2014-10-05 15:05:40vstinnersetstatus: open -> closed
resolution: fixed
2014-09-03 21:48:54python-devsetnosy: + python-dev
messages: + msg226330
2014-09-03 21:44:43vstinnercreate