Issue 10237: failure in Barrier tests (original) (raw)
A buildbot has shows occasional failures in the Barrier tests:
[299/349] test_threading [39130 refs] [39501 refs] [39501 refs] [39491 refs] [39499 refs] Unhandled exception in thread started by <function task at 0x45e4df54> Traceback (most recent call last): File "/home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/test/lock_tests.py", line 37, in task f() File "/home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/test/lock_tests.py", line 704, in f i = self.barrier.wait() File "/home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/threading.py", line 441, in wait self._enter() # Block while the barrier drains. File "/home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/threading.py", line 465, in _enter raise BrokenBarrierError threading.BrokenBarrierError Unhandled exception in thread started by <function task at 0x45e4df54> Traceback (most recent call last): File "/home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/test/lock_tests.py", line 37, in task f() File "/home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/test/lock_tests.py", line 704, in f i = self.barrier.wait() File "/home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/threading.py", line 441, in wait self._enter() # Block while the barrier drains. File "/home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/threading.py", line 465, in _enter raise BrokenBarrierError threading.BrokenBarrierError Unhandled exception in thread started by <function task at 0x45e4df54> Traceback (most recent call last): File "/home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/test/lock_tests.py", line 37, in task f() File "/home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/test/lock_tests.py", line 704, in f i = self.barrier.wait() File "/home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/threading.py", line 441, in wait self._enter() # Block while the barrier drains. File "/home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/threading.py", line 465, in _enter raise BrokenBarrierError threading.BrokenBarrierError Unhandled exception in thread started by <function task at 0x45e4df54> Traceback (most recent call last): File "/home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/test/lock_tests.py", line 37, in task f() File "/home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/test/lock_tests.py", line 704, in f i = self.barrier.wait() File "/home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/threading.py", line 441, in wait self._enter() # Block while the barrier drains. File "/home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/threading.py", line 465, in _enter raise BrokenBarrierError threading.BrokenBarrierError test test_threading failed -- Traceback (most recent call last): File "/home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/test/lock_tests.py", line 720, in test_reset self.run_threads(f) File "/home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/test/lock_tests.py", line 615, in run_threads f() File "/home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/test/lock_tests.py", line 704, in f i = self.barrier.wait() File "/home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/threading.py", line 450, in wait self._wait(timeout) File "/home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/threading.py", line 489, in _wait raise BrokenBarrierError threading.BrokenBarrierError
I also get a failure here:
====================================================================== FAIL: test_default_timeout (test.test_threading.BarrierTests)
Traceback (most recent call last): File "/home/antoine/py3k/svn/Lib/test/lock_tests.py", line 784, in test_default_timeout self.run_threads(f) File "/home/antoine/py3k/svn/Lib/test/lock_tests.py", line 615, in run_threads f() File "/home/antoine/py3k/svn/Lib/test/lock_tests.py", line 783, in f self.assertRaises(threading.BrokenBarrierError, self.barrier.wait) AssertionError: BrokenBarrierError not raised by wait
FWIW, my snow leopard slave isn't slow at all so I doubt there's a timeout related to machine speed going on here, as its failing thus:
test test_threading failed -- Traceback (most recent call last): File "/Users/pythonbuildbot/buildarea/3.x.hansen-osx-x86/build/Lib/test/lock_tests.py", line 784, in test_default_timeout self.run_threads(f) File "/Users/pythonbuildbot/buildarea/3.x.hansen-osx-x86/build/Lib/test/lock_tests.py", line 615, in run_threads f() File "/Users/pythonbuildbot/buildarea/3.x.hansen-osx-x86/build/Lib/test/lock_tests.py", line 783, in f self.assertRaises(threading.BrokenBarrierError, self.barrier.wait) AssertionError: BrokenBarrierError not raised by wait
Its actually a really spammy sort of failure with a lot of errors before it, which may or may not shed more light on the situation: http://www.python.org/dev//buildbot/3.x.stable/builders/x86%20Snow%20Leopard%203.x/builds/267/steps/test/logs/stdio
This was r85883, so after the increase in the timeout.