[issue18930] os.spawnXX functions terminates process if second argument is empty list
Stefan Schukat added the comment: @Batuhan the error does not appear anymore in at least Python 3.6.1 >>> import os >>> nPath = os.path.join(os.environ["windir"], "notepad.exe") >>> os.spawnv(os.P_NOWAIT, nPath, []) # or os.spawnv(os.P_NOWAIT, nPath, [], {}) Traceback (most recent call last): File "", line 1, in ValueError: spawnv() arg 2 cannot be empty -- ___ Python tracker <https://bugs.python.org/issue18930> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18930] os.spawnXX functions terminates process if second argument is empty list
New submission from Stefan Schukat: If os.spawnv or os.spawnve is called with an empty second argument the process terminates in release builds under Windows. This is simple to reproduce: >>> import os >>> nPath = os.path.join(os.environ["windir"], "notepad.exe") >>> os.spawnv(os.P_NOWAIT, nPath, []) # or os.spawnv(os.P_NOWAIT, nPath, [], {}) This has the same cause as the bug reported for execv http://bugs.python.org/issue1039 and could be fixed in the same way. -- components: Interpreter Core messages: 196988 nosy: SSchukat priority: normal severity: normal status: open title: os.spawnXX functions terminates process if second argument is empty list versions: Python 2.7 ___ Python tracker <http://bugs.python.org/issue18930> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com