Skip to content

pathos.helpers.mm.Process.start() not thread-safe on MacOS #245

@xiay-lcw

Description

@xiay-lcw

It is probably MacOS problem since the error I got is exactly the same when I try to run os.fork() from multiple threads:

objc[73552]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
objc[73552]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.

Python Version:

Python 3.9.8 (main, Nov 10 2021, 03:55:42)
[Clang 13.0.0 (clang-1300.0.29.3)] on darwin

pathos version: 0.2.9

Works fine on linux.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions