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 pitrou, ronaldoussoren, sable, vstinner
Date 2011-04-01.15:55:33
SpamBayes Score 9.026109e-05
Marked as misclassified No
Message-id <>
Thanks to the new faulthandler module (#11393) and regrtest timeout (#11727, timeout of 15 minutes), I finally found why test_threadsignals hangs on PPC Tiger 3.x:
[ 25/354] test_threadsignals
Thread 0xa000ed88:
  File "/Users/buildbot/buildarea/3.x.parc-tiger-1/build/Lib/test/", line 46 in test_signals
  File "/Users/buildbot/buildarea/3.x.parc-tiger-1/build/Lib/unittest/", line 387 in _executeTestPart
  File "/Users/buildbot/buildarea/3.x.parc-tiger-1/build/Lib/unittest/", line 442 in run
  File "/Users/buildbot/buildarea/3.x.parc-tiger-1/build/Lib/unittest/", line 494 in __call__
  File "/Users/buildbot/buildarea/3.x.parc-tiger-1/build/Lib/unittest/", line 105 in run
  File "/Users/buildbot/buildarea/3.x.parc-tiger-1/build/Lib/unittest/", line 67 in __call__
  File "/Users/buildbot/buildarea/3.x.parc-tiger-1/build/Lib/unittest/", line 105 in run
  File "/Users/buildbot/buildarea/3.x.parc-tiger-1/build/Lib/unittest/", line 67 in __call__
  File "/Users/buildbot/buildarea/3.x.parc-tiger-1/build/Lib/test/", line 1078 in run
  File "/Users/buildbot/buildarea/3.x.parc-tiger-1/build/Lib/test/", line 1166 in _run_suite
  File "/Users/buildbot/buildarea/3.x.parc-tiger-1/build/Lib/test/", line 1192 in run_unittest
  File "/Users/buildbot/buildarea/3.x.parc-tiger-1/build/Lib/test/", line 210 in test_main
  File "./Lib/test/", line 1032 in runtest_inner
  File "./Lib/test/", line 826 in runtest
  File "./Lib/test/", line 650 in main
  File "./Lib/test/", line 1607 in <module>
make: *** [buildbottest] Error 1
program finished with exit code 2

test_threadsignals hangs at:
class ThreadSignals(unittest.TestCase):
    def test_signals(self):
        signalled_all.acquire() <~~~~ here

self.spawnSignallingThread() calls:
def send_signals():
    os.kill(process_pid, signal.SIGUSR1)
    os.kill(process_pid, signal.SIGUSR2)

Before fixing the bug, we can workaroung the hang in the test using a timeout on the second acquire.

This issue may be related to #11223.
Date User Action Args
2011-04-01 15:55:36vstinnersetrecipients: + vstinner, ronaldoussoren, pitrou, sable
2011-04-01 15:55:36vstinnersetmessageid: <>
2011-04-01 15:55:33vstinnerlinkissue11738 messages
2011-04-01 15:55:33vstinnercreate