[New-bugs-announce] [issue7996] concurrency problem in regrtest -jX

Antoine Pitrou report at bugs.python.org
Tue Feb 23 00:50:02 CET 2010


New submission from Antoine Pitrou <pitrou at free.fr>:

While testing GIL changes I ran against an interesting bug in regrtest when run with -j<big number>. It turns out that we can't consume a generator from two threads simultaneously.


Exception in thread Thread-8:
Traceback (most recent call last):
  File "/home/antoine/py3k/gilprio/Lib/threading.py", line 521, in _bootstrap_inner
    self.run()
  File "/home/antoine/py3k/gilprio/Lib/threading.py", line 474, in run
    self._target(*self._args, **self._kwargs)
  File "/home/antoine/py3k/gilprio/Lib/test/regrtest.py", line 523, in work
    test, args_tuple = next(pending)
ValueError: generator already executing

----------
components: Tests
messages: 99879
nosy: pitrou, r.david.murray
priority: normal
severity: normal
stage: needs patch
status: open
title: concurrency problem in regrtest -jX
type: behavior
versions: Python 2.7, Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7996>
_______________________________________


More information about the New-bugs-announce mailing list