This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2014-09-04.23:11:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1409872296.75.0.697798580744.issue22290@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-09-04 23:11:36vstinnersetrecipients: + vstinner
2014-09-04 23:11:36vstinnersetmessageid: <1409872296.75.0.697798580744.issue22290@psf.upfronthosting.co.za>
2014-09-04 23:11:36vstinnerlinkissue22290 messages
2014-09-04 23:11:36vstinnercreate