[issue13854] multiprocessing: SystemExit from child with non-int, non-str arg causes TypeError
Jon Brandvein
report at bugs.python.org
Tue Jan 24 19:08:46 CET 2012
New submission from Jon Brandvein <jon.brandvein at gmail.com>:
In a child process, raising SystemExit or calling sys.exit with a non-integer, non-string argument value causes a TypeError at Lib/multiprocessing/process.py :: _bootstrap. This is from concatenating the argument with '\n' and writing it to stderr.
Suggested fix: replace
sys.stderr.write(e.args[0] + '\n')
with
sys.stderr.write(str(e.args[0]) + '\n')
This problem also occurs when the value is None, but only for raising SystemExit (not calling sys.exit()).
----------
components: Library (Lib)
messages: 151921
nosy: brandj, jnoller
priority: normal
severity: normal
status: open
title: multiprocessing: SystemExit from child with non-int, non-str arg causes TypeError
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13854>
_______________________________________
More information about the Python-bugs-list
mailing list