Message274005
To reproduce:
```
import threading
import time
class U(threading.Thread):
def run(self):
time.sleep(1)
if not x.ident:
x.start()
x = U()
for u in [U() for i in range(10000)]: u.start()
time.sleep(10)
```
Chance to reproduce ~20% in my setup.
This script has a data race (check then act on x.ident).
I expected it to occasionally hit `RuntimeError: threads can only be started once`
Instead, I get:
```
Unhandled exception in thread started by <bound method Thread._bootstrap of <U(Thread-1, started 139798116361984)>>
Traceback (most recent call last):
File "/usr/lib64/python3.5/threading.py", line 882, in _bootstrap
self._bootstrap_inner()
File "/usr/lib64/python3.5/threading.py", line 906, in _bootstrap_inner
del _limbo[self]
KeyError: <U(Thread-1, started 139798116361984)>
``` |
|
Date |
User |
Action |
Args |
2016-08-31 07:27:39 | Dima.Tisnek | set | recipients:
+ Dima.Tisnek |
2016-08-31 07:27:39 | Dima.Tisnek | set | messageid: <1472628459.0.0.615351058754.issue27908@psf.upfronthosting.co.za> |
2016-08-31 07:27:38 | Dima.Tisnek | link | issue27908 messages |
2016-08-31 07:27:38 | Dima.Tisnek | create | |
|