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 Arfrever, neologix, pitrou, python-dev, vstinner
Date 2011-04-01.15:38:54
SpamBayes Score 0.000139572
Marked as misclassified No
Message-id <>
Great! The timeout works:
[ 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

Compare it without the same failure without the timeout:
[106/354] test_threadsignals

command timed out: 3600 seconds without output, killing pid 1745
process killed by signal 9
program finished with exit code -1

Thanks to this timeout, the build stops after 18 minutes instead of 80 minutes.... 18 minutes including the timeout of 15 minutes :-)

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)
Date User Action Args
2011-04-01 15:38:57vstinnersetrecipients: + vstinner, pitrou, Arfrever, neologix, python-dev
2011-04-01 15:38:57vstinnersetmessageid: <>
2011-04-01 15:38:55vstinnerlinkissue11727 messages
2011-04-01 15:38:54vstinnercreate