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: threading/multiprocessing tests fail on chromebook under crouton generated chroots
Type: resource usage Stage: resolved
Components: Tests Versions: Python 3.5
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/", line 254, in _bootstrap
  File "/home/shuper/Downloads/src/cpython/Lib/multiprocessing/", line 93, in run
    self._target(*self._args, **self._kwargs)
  File "/home/shuper/Downloads/src/cpython/Lib/test/", 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/", line 254, in _bootstrap
  File "/home/shuper/Downloads/src/cpython/Lib/multiprocessing/", line 93, in run
    self._target(*self._args, **self._kwargs)
  File "/home/shuper/Downloads/src/cpython/Lib/test/", 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/ 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/ 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/", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/shuper/Downloads/src/cpython/Lib/", line 85, in _run_code
    exec(code, run_globals)
  File "/home/shuper/Downloads/src/cpython/Lib/test/", line 3, in <module>
  File "/home/shuper/Downloads/src/cpython/Lib/test/", line 1564, in main_in_temp_cwd
  File "/home/shuper/Downloads/src/cpython/Lib/test/", line 744, in main
  File "/home/shuper/Downloads/src/cpython/Lib/", line 1063, in join
  File "/home/shuper/Downloads/src/cpython/Lib/", line 1079, in _wait_for_tstate_lock
    elif lock.acquire(block, timeout):
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.
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