homepage

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 fails --without-threads
Type: behavior Stage: resolved
Components: Library (Lib), Tests Versions: Python 3.4, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: berker.peksag, christian.heimes, python-dev, skrah, terry.reedy
Priority: normal Keywords: buildbot

Created on 2013年12月21日 14:28 by skrah, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Messages (6)
msg206747 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2013年12月21日 14:28
http://buildbot.python.org/all/builders/AMD64%20Fedora%20without%20threads%203.x/builds/5874/steps/test/logs/stdio
test test_multiprocessing_main_handling crashed -- Traceback (most recent call last):
 File "/home/buildbot/buildarea/3.x.krah-fedora/build/Lib/test/regrtest.py", line 1271, in runtest_inner
 the_module = importlib.import_module(abstest)
 File "/home/buildbot/buildarea/3.x.krah-fedora/build/Lib/importlib/__init__.py", line 129, in import_module
 return _bootstrap._gcd_import(name[level:], package, level)
 File "<frozen importlib._bootstrap>", line 2172, in _gcd_import
 File "<frozen importlib._bootstrap>", line 2155, in _find_and_load
 File "<frozen importlib._bootstrap>", line 2144, in _find_and_load_unlocked
 File "<frozen importlib._bootstrap>", line 1209, in _load_unlocked
 File "<frozen importlib._bootstrap>", line 1133, in _exec
 File "<frozen importlib._bootstrap>", line 1436, in exec_module
 File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
 File "/home/buildbot/buildarea/3.x.krah-fedora/build/Lib/test/test_multiprocessing_main_handling.py", line 19, in <module>
 import multiprocessing
 File "/home/buildbot/buildarea/3.x.krah-fedora/build/Lib/multiprocessing/__init__.py", line 16, in <module>
 from . import context
 File "/home/buildbot/buildarea/3.x.krah-fedora/build/Lib/multiprocessing/context.py", line 3, in <module>
 import threading
 File "/home/buildbot/buildarea/3.x.krah-fedora/build/Lib/threading.py", line 4, in <module>
 import _thread
ImportError: No module named '_thread'
msg206757 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2013年12月21日 15:38
This is fixed by changeset http://hg.python.org/cpython/rev/239faf6b6e8d:
http://buildbot.python.org/all/builders/AMD64%20Fedora%20without%20threads%203.x/builds/5875/steps/test/logs/stdio 
msg206758 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2013年12月21日 15:43
Thanks! I wasn't aware of this issue.
msg220340 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2014年06月12日 11:16
This test is still failing on AMD64 Fedora without threads 3.x.
http://buildbot.python.org/all/builders/AMD64%20Fedora%20without%20threads%203.x/builds/6743/steps/test/logs/stdio
test test_multiprocessing_main_handling crashed -- Traceback (most recent call last):
 File "/home/buildbot/buildarea/3.x.krah-fedora/build/Lib/test/regrtest.py", line 1271, in runtest_inner
 the_module = importlib.import_module(abstest)
 File "/home/buildbot/buildarea/3.x.krah-fedora/build/Lib/importlib/__init__.py", line 109, in import_module
 return _bootstrap._gcd_import(name[level:], package, level)
 File "<frozen importlib._bootstrap>", line 2203, in _gcd_import
 File "<frozen importlib._bootstrap>", line 2186, in _find_and_load
 File "<frozen importlib._bootstrap>", line 2175, in _find_and_load_unlocked
 File "<frozen importlib._bootstrap>", line 1149, in _load_unlocked
 File "<frozen importlib._bootstrap>", line 1420, in exec_module
 File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
 File "/home/buildbot/buildarea/3.x.krah-fedora/build/Lib/test/test_multiprocessing_main_handling.py", line 21, in <module>
 import multiprocessing
 File "/home/buildbot/buildarea/3.x.krah-fedora/build/Lib/multiprocessing/__init__.py", line 16, in <module>
 from . import context
 File "/home/buildbot/buildarea/3.x.krah-fedora/build/Lib/multiprocessing/context.py", line 3, in <module>
 import threading
 File "/home/buildbot/buildarea/3.x.krah-fedora/build/Lib/threading.py", line 4, in <module>
 import _thread
ImportError: No module named '_thread'
But I couldn't reproduce it on Ubuntu 12.04 (built Python --without-threads):
[1/1] test_multiprocessing_main_handling
test_multiprocessing_main_handling skipped -- /home/berker/projects/cpython-default/build/lib.linux-x86_64-3.5-pydebug/_multiprocessing.cpython-35dm.so: undefined symbol: PyThread_get_thread_ident
1 test skipped:
 test_multiprocessing_main_handling
msg220475 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014年06月13日 18:24
New changeset ef491d76ac70 by Terry Jan Reedy in branch '3.4':
Issue #20043: Add direct test for _thread.
http://hg.python.org/cpython/rev/ef491d76ac70 
msg220476 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2014年06月13日 18:28
I added a direct test import of _thread. Since test_multiprocessing is one file on 2.7 and AMD Fedora without threads is green for 2.7, in spite of the import of threading, I left 2.7 alone. If that changes, this can be reopened and marked for 2.7.
History
Date User Action Args
2022年04月11日 14:57:55adminsetgithub: 64242
2014年06月13日 18:28:40terry.reedysetstatus: open -> closed
resolution: fixed
messages: + msg220476

stage: needs patch -> resolved
2014年06月13日 18:24:22python-devsetnosy: + python-dev
messages: + msg220475
2014年06月13日 18:11:12terry.reedysetassignee: terry.reedy

nosy: + terry.reedy
2014年06月12日 11:16:59berker.peksagsetstatus: closed -> open
versions: + Python 3.5
messages: + msg220340

resolution: fixed -> (no value)
stage: resolved -> needs patch
2013年12月21日 15:43:58christian.heimessetnosy: + christian.heimes
messages: + msg206758
2013年12月21日 15:38:33berker.peksagsetstatus: open -> closed

components: + Library (Lib), Tests, - 2to3 (2.x to 3.x conversion tool)

nosy: + berker.peksag
messages: + msg206757
resolution: fixed
stage: needs patch -> resolved
2013年12月21日 14:28:45skrahcreate

AltStyle によって変換されたページ (->オリジナル) /