[issue11753] test_sendall_interrupted() of test_socket hangs on FreeBSD

2011-04-04 Thread STINNER Victor
STINNER Victor added the comment: test_socket and test_signal succeed on "x86 FreeBSD custom": http://www.python.org/dev/buildbot/all/builders/x86%20FreeBSD%20custom/builds/4 (there are other issues, but there are not related) I pushed the fix in Python 3.3 (ebc03d7e7110). -- resolutio

[issue11753] test_sendall_interrupted() of test_socket hangs on FreeBSD

2011-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset ebc03d7e7110 by Victor Stinner in branch 'default': Issue #11753: faulthandler thread uses pthread_sigmask() http://hg.python.org/cpython/rev/ebc03d7e7110 -- nosy: +python-dev ___ Python tracker

[issue11753] test_sendall_interrupted() of test_socket hangs on FreeBSD

2011-04-03 Thread STINNER Victor
STINNER Victor added the comment: 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 in

[issue11753] test_sendall_interrupted() of test_socket hangs on FreeBSD

2011-04-03 Thread STINNER Victor
STINNER Victor added the comment: Issue #11755 (test_itimer_real() of test_signal hang on FreeBSD) has been marked as a duplicate of this issue. -- ___ Python tracker ___ _

[issue11753] test_sendall_interrupted() of test_socket hangs on FreeBSD

2011-04-03 Thread STINNER Victor
STINNER Victor added the comment: As issue #11755, this issue is a regression introduced by regrtest timeout (issue #11727): test_socket doesn't fail without regrtest timeout. -- ___ Python tracker __

[issue11753] test_sendall_interrupted() of test_socket hangs on FreeBSD

2011-04-03 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: This test assumes that send will necessarily return if interrupted by a signal, but the kernel can automatically restart the syscall when no data has been committed (instead of returning -1 with errno set to EINTR). And, AFAIK, that's exactly what Fre

[issue11753] test_sendall_interrupted() of test_socket hangs on FreeBSD

2011-04-03 Thread STINNER Victor
New submission from STINNER Victor : I added a timeout of 30 minutes to regrtest. On "x86 FreeBSD 7.2 3.x" and "x86 FreeBSD 3.x" buildbot, test_sendall_interrupted() of test_socket does timeout after 30 minutes: -- ... [201/354] test_socket Thread 0x28401040: File "/usr/home/db3l/bui