Sharing instance of proxy object across processes results in pickle errors
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 36k
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 558
説明
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 https://github.com/python/cpython/issues/101320#issuecomment-1404187868 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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
レポートに記載されている SyncManager のプロキシ共有シナリオから始め、観測された pickle エラーについてリンク先の issue コメントを読んでください。Python 3.9 でプロセス間の一連の処理を再現し、その後、破損したデータが想定された動作なのか不具合なのかを判断して、確認済みの結果を記録してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- operating-systems
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 30/100