← 输入框|bugs.python.org|刷新

➜

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.

作者 arcivanov
收信人 arcivanov, augustogoulart, pitrou, taleinat, vstinner
日期 2018-11-14.14:08:05
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1542204485.15.0.788709270274.issue33196@psf.upfronthosting.co.za>
In-reply-to
内容
@vstinner

> I'm not sure that I understand the bug.

The bug is, if a user makes an error and passes a Queue from context 'fork' to a child that is spawned using 'spawn', the passed Queue is, for obvious reasons, broken. 

The 'print("Child r_q: %r, %r, %r" % (r_q._rlock, r_q._wlock, r_q._sem), flush=True)' is simply a demonstration of a broken state of the SemLock observed in the child. 

The expected fix would be to stop the mixed context use of MP objects on the API level (ValueError?) or at least prevent a segfault.
历史
日期 用户 动作 参数
2018-11-14 14:08:05arcivanov修改recipients: + arcivanov, pitrou, vstinner, taleinat, augustogoulart
2018-11-14 14:08:05arcivanov修改messageid: <1542204485.15.0.788709270274.issue33196@psf.upfronthosting.co.za>
2018-11-14 14:08:05arcivanov链接issue33196 messages
2018-11-14 14:08:05arcivanov创建