STINNER Victor <[email protected]> added the comment:
On my laptop with 4 physical CPUs (8 threads), I can reproduce
test_still_running() random failure with:
$ ./python -m test test__xxsubinterpreters -j50 -v -F
(...)
0:00:37 load avg: 24.31 [ 19/1] test__xxsubinterpreters failed (36.2 sec) (...)
(...)
======================================================================
FAIL: test_still_running (test.test__xxsubinterpreters.DestroyTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vstinner/python/main/Lib/test/test__xxsubinterpreters.py", line
753, in test_still_running
self.assertTrue(interpreters.is_running(interp),
AssertionError: False is not true : Interp 48 should be running before
destruction.
FAILED (failures=1, skipped=6)
Warning -- Uncaught thread exception: RuntimeError
Exception in thread Thread-7 (run):
Traceback (most recent call last):
File "/home/vstinner/python/main/Lib/threading.py", line 1009, in
_bootstrap_inner
self.run()
File "/home/vstinner/python/main/Lib/threading.py", line 946, in run
self._target(*self._args, **self._kwargs)
File "/home/vstinner/python/main/Lib/test/test__xxsubinterpreters.py", line
46, in run
interpreters.run_string(interp, dedent(f"""
RuntimeError: unrecognized interpreter ID 48
test test__xxsubinterpreters failed
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue44517>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com