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: threading/multiprocessing tests fail on chromebook under crouton generated chroots
Type: resource usage Stage: resolved
Components: Tests Versions: Python 3.5
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: davin, ned.deily, shiprex
Priority: normal Keywords:

Created on 2015年05月09日 23:06 by shiprex, last changed 2022年04月11日 14:58 by admin. This issue is now closed.

Messages (3)
msg242844 - (view) Author: Ryan Shupe (shiprex) Date: 2015年05月09日 23:06
I set up my Asus chromebook c200 with crouton and installed two chroot environments under the trusty release. In one I built and ran the tests for Python 3.5.0a4+
See stacktrace of resulting error:
[209/394/2] test_multiprocessing_fork
[210/394/3] test_multiprocessing_forkserver
Process Process-243:
Traceback (most recent call last):
 File "/home/shuper/Downloads/src/cpython/Lib/multiprocessing/process.py", line 254, in _bootstrap
 self.run()
 File "/home/shuper/Downloads/src/cpython/Lib/multiprocessing/process.py", line 93, in run
 self._target(*self._args, **self._kwargs)
 File "/home/shuper/Downloads/src/cpython/Lib/test/_test_multiprocessing.py", line 458, in _test_stderr_flush
 sys.stderr = open(testfn, 'w')
OSError: [Errno 28] No space left on device: '@test_4624_tmp'
Process Process-245:
Traceback (most recent call last):
 File "/home/shuper/Downloads/src/cpython/Lib/multiprocessing/process.py", line 254, in _bootstrap
 self.run()
 File "/home/shuper/Downloads/src/cpython/Lib/multiprocessing/process.py", line 93, in run
 self._target(*self._args, **self._kwargs)
 File "/home/shuper/Downloads/src/cpython/Lib/test/_test_multiprocessing.py", line 464, in _test_sys_exit
 sys.stderr = open(testfn, 'w')
OSError: [Errno 28] No space left on device: '@test_4624_tmp'
Dangling processes: {<Process(Process-236, started daemon)>}
Dangling threads: {<Thread(QueueFeederThread, started daemon 139869752682240)>}
Warning -- multiprocessing.process._dangling was modified by test_multiprocessing_forkserver
Warning -- threading._dangling was modified by test_multiprocessing_forkserver
test test_multiprocessing_forkserver failed -- multiple errors occurred; run in verbose mode for details
[211/394/3] test_multiprocessing_main_handling
/home/shuper/Downloads/src/cpython/Lib/test/support/__init__.py:946: RuntimeWarning: tests may fail, unable to create temp dir: /home/shuper/Downloads/src/cpython/build/test_python_6460
 with temp_dir(path=name, quiet=quiet) as temp_path:
/home/shuper/Downloads/src/cpython/Lib/test/support/__init__.py:947: RuntimeWarning: tests may fail, unable to change CWD to: /home/shuper/Downloads/src/cpython/build/test_python_6460
 with change_cwd(temp_path, quiet=quiet) as cwd_dir:
^C^T^CTraceback (most recent call last):
 File "/home/shuper/Downloads/src/cpython/Lib/runpy.py", line 170, in _run_module_as_main
 "__main__", mod_spec)
 File "/home/shuper/Downloads/src/cpython/Lib/runpy.py", line 85, in _run_code
 exec(code, run_globals)
 File "/home/shuper/Downloads/src/cpython/Lib/test/__main__.py", line 3, in <module>
 regrtest.main_in_temp_cwd()
 File "/home/shuper/Downloads/src/cpython/Lib/test/regrtest.py", line 1564, in main_in_temp_cwd
 main()
 File "/home/shuper/Downloads/src/cpython/Lib/test/regrtest.py", line 744, in main
 worker.join()
 File "/home/shuper/Downloads/src/cpython/Lib/threading.py", line 1063, in join
 self._wait_for_tstate_lock()
 File "/home/shuper/Downloads/src/cpython/Lib/threading.py", line 1079, in _wait_for_tstate_lock
 elif lock.acquire(block, timeout):
KeyboardInterrupt
msg242846 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2015年05月09日 23:23
The failures seem pretty clear:
OSError: [Errno 28] No space left on device
Are you allocating enough disk space in the chrooted environments? The amount of free space needed to run all the tests varies by platform, by architecture, by test options selected, etc, and by file system type (see, for example, Issue23953). I don't know that we have any rough guidelines for free space; you may have to experiment and you could try excluding largefile tests:
./python -m test -uall,-largefile [...]
msg257082 - (view) Author: Davin Potts (davin) * (Python committer) Date: 2015年12月27日 17:04
Ned's comments summarize this nicely. It's been 7 months without a response from the OP and given the nature of the OP's environment (use of crouton on a chromebook) it strongly supports the theory that the OP simply had insufficient resources to run the full tests.
History
Date User Action Args
2022年04月11日 14:58:16adminsetgithub: 68341
2015年12月27日 17:04:18davinsetstatus: pending -> closed
type: resource usage
messages: + msg257082

resolution: not a bug
stage: resolved
2015年09月21日 02:49:40davinsetstatus: open -> pending
2015年05月10日 13:03:36davinsetnosy: + davin
2015年05月09日 23:23:46ned.deilysetnosy: + ned.deily
messages: + msg242846
2015年05月09日 23:06:51shiprexcreate

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