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.
Created on 2011年12月08日 20:26 by mrmekon, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| threadtest3.py | mrmekon, 2011年12月08日 20:26 | Example of multiprocessing failing with PyObjC | ||
| Messages (3) | |||
|---|---|---|---|
| msg149051 - (view) | Author: Trevor Bentley (mrmekon) | Date: 2011年12月08日 20:26 | |
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 |
|||
| msg149053 - (view) | Author: Ned Deily (ned.deily) * (Python committer) | Date: 2011年12月08日 21:06 | |
(Reference original discussion in pyobjc-dev mailing list archived here: http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5965) |
|||
| msg150580 - (view) | Author: Ned Deily (ned.deily) * (Python committer) | Date: 2012年01月04日 03:34 | |
Issue8713 proposes adding the option of using processes for multiprocessing rather than bare forks. Let's consolidate this issue with that one. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:24 | admin | set | github: 57767 |
| 2012年01月04日 03:34:27 | ned.deily | set | status: open -> closed resolution: duplicate messages: + msg150580 superseder: multiprocessing needs option to eschew fork() under Linux stage: resolved |
| 2011年12月08日 21:06:26 | ned.deily | set | messages: + msg149053 |
| 2011年12月08日 20:43:30 | pitrou | set | nosy:
+ ned.deily versions: + Python 3.2, Python 3.3 |
| 2011年12月08日 20:26:13 | mrmekon | create | |