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.

Author vstinner
Recipients neologix, vstinner
Date 2011-04-03.23:21:59
SpamBayes Score 9.10132e-06
Marked as misclassified No
Message-id <>
The problem is that faulthandler's thread (faulthandler_thread) receives the SIGALRM signal: the signal interrupts sem_timedwait() which returns EINTR. PyThread_acquire_lock_timed() retries sem_timedwait() and so the other thread executing sendall() is not interrupted.

The solution is to configure which signals are handled by faulthandler_thread() using pthread_sigmask():

I forced a build on x86 FreeBSD (custom) buildbot:

I already tested sigprocmask() on FreeBSD (in my VM) and it works as expected: test_socket doesn't block anymore.
Date User Action Args
2011-04-03 23:21:59vstinnersetrecipients: + vstinner, neologix
2011-04-03 23:21:59vstinnersetmessageid: <>
2011-04-03 23:21:59vstinnerlinkissue11753 messages
2011-04-03 23:21:59vstinnercreate