[pypy-issue] [issue1320] stm-thread-2: assertion failed when starting huge amount of threads
Remi
tracker at bugs.pypy.org
Mon Nov 12 20:15:08 CET 2012
New submission from Remi <remi.meier at gmail.com>:
Here is the small example:
------------------------------
from threading import Thread
def parallel():
t1 = Thread(target=parallel)
t2 = Thread(target=parallel)
t1.start()
t2.start()
t1.join()
t2.join()
parallel()
------------------------------
Output after ~500 threads started:
pypy-stm: /home/remi/programming/pypy/pypy/translator/stm/src_stm/et.c:375:
AbortTransaction: Assertion `!is_inevitable(d)' failed.
Aborted (core dumped)
------------------------------
The problem seems to come from starting thread 1 and 2 at the same time. If we
only start 1 thread, the program happily runs out of memory with >1000 threads.
----------
messages: 4979
nosy: Remi, pypy-issue
priority: bug
status: unread
title: stm-thread-2: assertion failed when starting huge amount of threads
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1320>
________________________________________
More information about the pypy-issue
mailing list