Message305323
I'm not sure this is worth handling, but I had an interaction with a user who had weird deadlock problems in a glibc function (getaddrinfo) in worker processes launched with the forkserver method.
The explanation turned out to be that a sitecustomize.py did some stuff that eventually launched a helper thread, and that made the forkserver process's forking fundamentally unsafe (fork() is guaranteed to be safe if there's only one thread running in the parent process).
It would be easy to check that threading.enumerate() returns only one thread, and otherwise warn the user about it. Note this only handles Python threads and not C threads invisible to Python... (a more complete solution would involve psutil :-)). |
|
Date |
User |
Action |
Args |
2017-10-31 18:12:26 | pitrou | set | recipients:
+ pitrou, gregory.p.smith, davin |
2017-10-31 18:12:26 | pitrou | set | messageid: <1509473546.78.0.213398074469.issue31913@psf.upfronthosting.co.za> |
2017-10-31 18:12:26 | pitrou | link | issue31913 messages |
2017-10-31 18:12:26 | pitrou | create | |
|