Message256815
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. |
|
Date |
User |
Action |
Args |
2015-12-21 23:19:32 | emptysquare | set | recipients:
+ emptysquare |
2015-12-21 23:19:32 | emptysquare | set | messageid: <1450739972.22.0.163393011494.issue25920@psf.upfronthosting.co.za> |
2015-12-21 23:19:32 | emptysquare | link | issue25920 messages |
2015-12-21 23:19:32 | emptysquare | create | |
|