[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange
New submission from 孑影 : == output == python2 /tmp/demo.py 31749 task#1 result:(False, 'ls: cannot access alksdfjalkdsfadsfk: No such file or directoryn') 31751 task#2 result:(False, 'ls: cannot access alksdfjalkdsfadsfk: No such file or directoryn') 31752 task#3 result:(False, '3n') 31750 task#4 result:(False, '4n') 31749 task#6 result:(False, '6n') 31752 task#7 result:(False, '7n') 31750 task#8 result:(False, '8n') 31751 task#9 result:(False, '9n') Traceback (most recent call last): File "/tmp/demo.py", line 74, in runner() File "/tmp/demo.py", line 64, in runner rc_orig = value.get() File "/usr/lib64/python2.7/multiprocessing/pool.py", line 554, in get raise self._value ValueError: empty range for randrange() (1,1, 0) == The python2.7 demo == http://paste.ubuntu.org.cn/4379593 == More == The interesting thing is if you modify demo.py like this . http://paste.ubuntu.org.cn/4379595 Almost the code can be run normal. -- components: Library (Lib) files: demo.py messages: 339767 nosy: 孑影 priority: normal severity: normal status: open title: multiprocessing pool + subprocess ValueError: empty range for randrange versions: Python 3.6 Added file: https://bugs.python.org/file48253/demo.py ___ Python tracker <https://bugs.python.org/issue36578> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange
Change by 孑影 : Removed file: https://bugs.python.org/file48253/demo.py ___ Python tracker <https://bugs.python.org/issue36578> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange
Change by 孑影 : Added file: https://bugs.python.org/file48254/demo.py ___ Python tracker <https://bugs.python.org/issue36578> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange
Change by 孑影 : Added file: https://bugs.python.org/file48255/demo.py ___ Python tracker <https://bugs.python.org/issue36578> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange
Change by 孑影 : Removed file: https://bugs.python.org/file48254/demo.py ___ Python tracker <https://bugs.python.org/issue36578> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange
Change by 孑影 : Removed file: https://bugs.python.org/file48255/demo.py ___ Python tracker <https://bugs.python.org/issue36578> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange
Change by 孑影 : Added file: https://bugs.python.org/file48256/demo.py ___ Python tracker <https://bugs.python.org/issue36578> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange
孑影 added the comment: My python version info: Python 2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516] on linux2 Python 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516] on linux -- ___ Python tracker <https://bugs.python.org/issue36578> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com