Visitar URL original
Sharing instance of proxy object across processes results in pickle errors · Issue #101320 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20260716000737/https://github.com/python/cpython/issues/101320
Skip to content
/ cpython Public

Sharing instance of proxy object across processes results in pickle errors #101320

Description

@vincent-grosbois

Hello

I'm trying to understand if a SyncManager proxy object instances are supposed to be shareable accoss processes, and if so, how

Bug report

See #101320 (comment) below

What I'm doing is the following:

  • create a new sync manager, and use it to populate a proxy dictionary from the initial process
  • in another process, connect to the sync manage, and read in a load the data from the proxy dictionary
  • we read corrupted data out of the connection to the manager

Is this a bug or something that should be possible to do in python ?
I assume that the objects in syncmanager can be accessed through several processes, is it true ?
If so, what is the proper way to do it ? (I think that just using the same reference of proxy object accross forked processes is not supposed to work)

Your environment

python 3.9

Metadata

Metadata

Assignees

No one assigned

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions