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 benjamin.peterson, exarkun, gregory.p.smith, loewis, marcin.bachry, pitrou, python-dev, schmichael, spiv, tseaver, vstinner
Date 2011-05-03.00:08:33
SpamBayes Score 2.7631e-05
Marked as misclassified No
Message-id <>
> test_signal.PthreadSigmaskTests fails on Mac OS X.

The problem is that sometimes SIG_UNBLOCK does not immediatly call the pending signal, but it calls it "later". The problem is that I don't know exactly when. I tried to wait the pending signal using signal.pause(), but I got a bus error!?

Example of the problem:

pthread_sigmask(SIG_BLOCK, [SIGUSR1])
os.kill(os.getpid(), SIGUSR1)
pthread_sigmask(SIG_UNBLOCK, [SIGUSR1])
Date User Action Args
2011-05-03 00:08:35vstinnersetrecipients: + vstinner, loewis, gregory.p.smith, spiv, exarkun, tseaver, pitrou, benjamin.peterson, marcin.bachry, schmichael, python-dev
2011-05-03 00:08:35vstinnersetmessageid: <>
2011-05-03 00:08:33vstinnerlinkissue8407 messages
2011-05-03 00:08:33vstinnercreate