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.

classification
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
process
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.

http://buildbot.python.org/all/builders/x86%20FreeBSD%206.4%203.x/builds/5010/steps/test/logs/stdio

======================================================================
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/test_multiprocessing_main_handling.py", line 213, in test_zipfile
    self._check_script(zip_name)
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/test/test_multiprocessing_main_handling.py", 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/script_helper.py", 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/script_helper.py", 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/synchronize.py", 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/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmp/tmpwgjabqgk/test_zip.zip/__main__.py", line 16, in <module>
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/multiprocessing/context.py", line 118, in Pool
    context=self.get_context())
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/multiprocessing/pool.py", line 150, in __init__
    self._setup_queues()
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/multiprocessing/pool.py", line 243, in _setup_queues
    self._inqueue = self._ctx.SimpleQueue()
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/multiprocessing/context.py", line 111, in SimpleQueue
    return SimpleQueue(ctx=self.get_context())
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/multiprocessing/queues.py", line 319, in __init__
    self._rlock = ctx.Lock()
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/multiprocessing/context.py", line 65, in Lock
    from .synchronize import Lock
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/multiprocessing/synchronize.py", 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
http://hg.python.org/cpython/rev/db9eb9cba1ec

New changeset 2f21d920d00d by Victor Stinner in branch 'default':
(Merge 3.4) Issue #22332: test_multiprocessing_main_handling is now skipped if
http://hg.python.org/cpython/rev/2f21d920d00d
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".
History
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