[New-bugs-announce] [issue13558] multiprocessing package incompatible with PyObjC
Trevor Bentley
report at bugs.python.org
Thu Dec 8 21:26:14 CET 2011
New submission from Trevor Bentley <mrmekon at gmail.com>:
The multiprocessing package appears to spawn a new process by calling only fork(). Apple's CoreFoundation libraries (and possibly more, I do not know the full extent) *require* new processes to be spawned with the full fork()+exec*() combo.
When using PyObjC to access native Mac libraries, Python's multithreading library is not usable. The error thrown is:
------------------------
The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug.
------------------------
Test code: https://gist.github.com/1448398
----------
assignee: ronaldoussoren
components: Macintosh
files: threadtest3.py
messages: 149051
nosy: mrmekon, ronaldoussoren
priority: normal
severity: normal
status: open
title: multiprocessing package incompatible with PyObjC
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file23884/threadtest3.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13558>
_______________________________________
More information about the New-bugs-announce
mailing list