[New-bugs-announce] [issue25920] PyOS_AfterFork should reset socketmodule's lock

A. Jesse Jiryu Davis report at bugs.python.org
Mon Dec 21 18:19:32 EST 2015


New submission from A. Jesse Jiryu Davis:

On some platforms there's an exclusive lock in socketmodule, used for getaddrinfo, gethostbyname, gethostbyaddr. A thread can hold this lock while another forks, leaving it locked forever in the child process. Calls to these functions in the child process will hang.

(I wrote some more details here: https://emptysqua.re/blog/getaddrinfo-deadlock/ )

I propose that this is a bug, and that it can be fixed in PyOS_AfterFork, where a few similar locks are already reset.

----------
messages: 256815
nosy: emptysquare
priority: normal
severity: normal
status: open
title: PyOS_AfterFork should reset socketmodule's lock

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25920>
_______________________________________


More information about the New-bugs-announce mailing list