]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #11753: faulthandler thread uses pthread_sigmask()
authorVictor Stinner <victor.stinner@haypocalc.com>
Mon, 4 Apr 2011 09:05:21 +0000 (11:05 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Mon, 4 Apr 2011 09:05:21 +0000 (11:05 +0200)
commitda9edae1f4adb9d1289a557b5fb99075bfe690d5
tree5bbe18af62a2cf9431337bebdea77aedb267cb90
parent58f41c27bc16b733db8508415269253dd50fa139
Issue #11753: faulthandler thread uses pthread_sigmask()

The thread must not receive any signal. If the thread receives a signal,
sem_timedwait() is interrupted and returns EINTR, but in this case,
PyThread_acquire_lock_timed() retries sem_timedwait() and the main thread is
not aware of the signal. The problem is that some tests expect that the main
thread receives the signal, not faulthandler handler, which should be
invisible.

On Linux, the signal looks to be received by the main thread, whereas on
FreeBSD, it can be any thread.
Modules/faulthandler.c