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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22290>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to