New submission from Antoine Pitrou <[email protected]>:
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 <[email protected]>
<http://bugs.python.org/issue7996>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com