classification
Title: test_multiprocessing_main_handling: "RuntimeError: Timed out waiting for results" on x86 Windows7 3.x
Type: Stage:
Components: Tests, Windows Versions: Python 3.7, Python 3.6, Python 3.5
process
Status: open Resolution:
Dependencies: 30317 Superseder:
Assigned To: Nosy List: davin, haypo, jkloth, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2017-05-11 00:48 by haypo, last changed 2017-05-22 18:10 by davin.

Pull Requests
URL Status Linked Edit
PR 1593 merged haypo, 2017-05-15 15:53
Messages (5)
msg293470 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-05-11 00:48
http://buildbot.python.org/all/builders/x86%20Windows7%203.x/builds/597/steps/test/logs/stdio

0:26:29 [156/405/1] test_multiprocessing_main_handling failed
...
test_zipfile_compiled (test.test_multiprocessing_main_handling.ForkServerCmdLineTest) ... skipped "'forkserver' start method not available"
test_basic_script (test.test_multiprocessing_main_handling.SpawnCmdLineTest) ... ok
test_basic_script_no_suffix (test.test_multiprocessing_main_handling.SpawnCmdLineTest) ... FAIL
test_directory (test.test_multiprocessing_main_handling.SpawnCmdLineTest) ... ok
test_directory_compiled (test.test_multiprocessing_main_handling.SpawnCmdLineTest) ... ok
test_ipython_workaround (test.test_multiprocessing_main_handling.SpawnCmdLineTest) ... ok
...

======================================================================
FAIL: test_basic_script_no_suffix (test.test_multiprocessing_main_handling.SpawnCmdLineTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_multiprocessing_main_handling.py", line 169, in test_basic_script_no_suffix
    self._check_script(script_name)
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_multiprocessing_main_handling.py", line 157, in _check_script
    rc, out, err = assert_python_ok(*run_args, __isolated=False)
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\support\script_helper.py", line 147, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\support\script_helper.py", line 133, in _assert_python
    err))
AssertionError: Process return code is 1
command line: ['D:\\cygwin\\home\\db3l\\buildarea\\3.x.bolen-windows7\\build\\PCbuild\\win32\\python_d.exe', '-X', 'faulthandler', '-E', 'd:\\temp\\tmp3iu335w1\\script', 'spawn']

stdout:
---

---

stderr:
---
Traceback (most recent call last):

  File "d:\temp\tmp3iu335w1\script", line 34, in <module>

    raise RuntimeError("Timed out waiting for results")

RuntimeError: Timed out waiting for results
---

----------------------------------------------------------------------
Ran 39 tests in 81.399s

FAILED (failures=1, skipped=26)
test test_multiprocessing_main_handling failed
msg293720 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-05-15 16:14
New changeset 7d6320ba47a229543acc0af6a64bc4e414932273 by Victor Stinner in branch 'master':
bpo-30339: test_multiprocessing_main_handling timeout (#1593)
https://github.com/python/cpython/commit/7d6320ba47a229543acc0af6a64bc4e414932273
msg293807 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-05-16 22:15
> New changeset 7d6320ba47a229543acc0af6a64bc4e414932273 by Victor Stinner in branch 'master':
> bpo-30339: test_multiprocessing_main_handling timeout (#1593)
> https://github.com/python/cpython/commit/7d6320ba47a229543acc0af6a64bc4e414932273

Sadly, a new build failed at commit fca224f117d25bdfec1bf7160b67438c4fcf6dee, so with the new timeout of 60 seconds:
http://buildbot.python.org/all/builders/x86%20Windows7%203.x/builds/619/steps/test/logs/stdio
msg293904 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-05-17 23:05
Another failure on AMD64 Windows7 SP1 3.5:
http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.5/builds/145/steps/test/logs/stdio

======================================================================
FAIL: test_directory (test.test_multiprocessing_main_handling.SpawnCmdLineTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.5.kloth-win64\build\lib\test\test_multiprocessing_main_handling.py", line 197, in test_directory
    self._check_script(script_dir)
  File "C:\buildbot.python.org\3.5.kloth-win64\build\lib\test\test_multiprocessing_main_handling.py", line 155, in _check_script
    rc, out, err = assert_python_ok(*run_args, __isolated=False)
  File "C:\buildbot.python.org\3.5.kloth-win64\build\lib\test\support\script_helper.py", line 150, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
  File "C:\buildbot.python.org\3.5.kloth-win64\build\lib\test\support\script_helper.py", line 136, in _assert_python
    err))
AssertionError: Process return code is 1
command line: ['C:\\buildbot.python.org\\3.5.kloth-win64\\build\\PCbuild\\amd64\\python_d.exe', '-X', 'faulthandler', '-E', 'C:\\Users\\Buildbot\\AppData\\Local\\Temp\\tmpld1_lj4t', 'spawn']

stdout:
---

---

stderr:
---
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.5.kloth-win64\build\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\buildbot.python.org\3.5.kloth-win64\build\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\Buildbot\AppData\Local\Temp\tmpld1_lj4t\__main__.py", line 23, in <module>
    raise RuntimeError("Timed out waiting for results")
RuntimeError: Timed out waiting for results
---
msg294167 - (view) Author: Davin Potts (davin) * (Python committer) Date: 2017-05-22 18:10
Patch on issue30317 also addresses this issue in a more flexible way.
History
Date User Action Args
2017-05-22 18:10:13davinsetnosy: + davin
dependencies: + test_timeout() of test_multiprocessing_spawn.WithManagerTestBarrier fails randomly on x86 Windows7 3.x buildbot
messages: + msg294167
2017-05-17 23:20:48jklothsetnosy: + jkloth
2017-05-17 23:05:27hayposetmessages: + msg293904
versions: + Python 3.5, Python 3.6
2017-05-16 22:15:24hayposetmessages: + msg293807
2017-05-15 16:14:45hayposetmessages: + msg293720
2017-05-15 15:53:08hayposetpull_requests: + pull_request1687
2017-05-11 00:48:18haypocreate