[issue20954] Bug in subprocess._args_from_interpreter_flags causes MemoryError

Marc Schlaich report at bugs.python.org
Mon Mar 17 10:38:58 CET 2014


New submission from Marc Schlaich:

Steps to reproduce:

- clone pytest-cov at https://bitbucket.org/schlamar/pytest-cov/commits/ac14225a67d715b6649f8158e05d2389b78620d2
- remove `@pytest.mark.skipif` from `test_multiprocessing_subprocess` in test_pytest_cov.py
- run: `tox --develop -e py27 -- -x`

Result: it fails with MemoryError in `subprocess._args_from_interpreter_flags` because sys.flags.hash_randomization has a value of 2147483647 and it tries to build a string with such a length. Find more details in attached log. Patch is following.

----------
components: Library (Lib), Windows
files: output.log
messages: 213844
nosy: schlamar
priority: normal
severity: normal
status: open
title: Bug in subprocess._args_from_interpreter_flags causes MemoryError
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file34452/output.log

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20954>
_______________________________________


More information about the Python-bugs-list mailing list