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.

Author vstinner
Recipients Mark.Shannon, erlendaasland, pablogsal, vstinner
Date 2021-06-28.22:08:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1624918097.76.0.885982402541.issue44517@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2021-06-28 22:08:17vstinnersetrecipients: + vstinner, Mark.Shannon, pablogsal, erlendaasland
2021-06-28 22:08:17vstinnersetmessageid: <1624918097.76.0.885982402541.issue44517@roundup.psfhosted.org>
2021-06-28 22:08:17vstinnerlinkissue44517 messages
2021-06-28 22:08:17vstinnercreate