homepage

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.

classification
Title: concurrency problem in regrtest -jX
Type: behavior Stage: needs patch
Components: Tests Versions: Python 3.1, Python 3.2, Python 2.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: thread-safety issue in regrtest.main()
View: 15320
Assigned To: Nosy List: pitrou, r.david.murray
Priority: normal Keywords:

Created on 2010年02月22日 23:50 by pitrou, last changed 2022年04月11日 14:56 by admin. This issue is now closed.

Messages (1)
msg99879 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2010年02月22日 23:50
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
History
Date User Action Args
2022年04月11日 14:56:58adminsetgithub: 52244
2012年07月26日 15:26:36rosslagerwallsetstatus: open -> closed
superseder: thread-safety issue in regrtest.main()
resolution: duplicate
2010年08月05日 03:30:08BreamoreBoysetversions: + Python 3.1
2010年02月22日 23:50:01pitroucreate

AltStyle によって変換されたページ (->オリジナル) /