[issue22290] "AMD64 OpenIndiana 3.x" buildbot: assertion failed in PyObject_Call() in test_subprocess.test_preexec()

STINNER Victor report at bugs.python.org
Fri Sep 5 01:11:36 CEST 2014


STINNER Victor added the comment:

I reproduced the crash with pyfailmalloc. The problem is that _posixsubprocess.fork_exec() calls gc.enable() on error when preexec_fn is set and the garbage collector was disabled (by fork_exec). Calling a function with an exception set is forbidden.

Attached patch fixes this issue, but fix also error handling in fork_exec() and add some unit tests.

----------
keywords: +patch
Added file: http://bugs.python.org/file36541/fork_exec.patch

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


More information about the Python-bugs-list mailing list