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: test__xxsubinterpreters: test_one() fails in AMD64 Fedora Stable 3.x: "Fatal Python error: Py_EndInterpreter: thread still has a frame"
Type: Stage:
Components: Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: eric.snow, nanjekyejoannah, pablogsal, shreyanavigyan, vstinner
Priority: normal Keywords:

Created on 2021-05-10 11:05 by pablogsal, last changed 2022-04-11 14:59 by admin.

Messages (3)
msg393375 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2021-05-10 11:05
Example failure:

https://buildbot.python.org/all/#/builders/543/builds/133

test_already_destroyed (test.test__xxsubinterpreters.DestroyTests) ... ok
test_bad_id (test.test__xxsubinterpreters.DestroyTests) ... ok
test_does_not_exist (test.test__xxsubinterpreters.DestroyTests) ... ok
test_from_current (test.test__xxsubinterpreters.DestroyTests) ... ok
test_from_other_thread (test.test__xxsubinterpreters.DestroyTests) ... ok
test_from_sibling (test.test__xxsubinterpreters.DestroyTests) ... ok
test_main (test.test__xxsubinterpreters.DestroyTests) ... ok
test_one (test.test__xxsubinterpreters.DestroyTests) ... ok
Fatal Python error: Py_EndInterpreter: thread still has a frame
Python runtime state: initialized
Thread 0x00007f0b28968740 (most recent call first):
  File "<string>", line 4 in <module>
make: *** [Makefile:1249: buildbottest] Aborted (core dumped)
program finished with exit code 2
elapsedTime=385.730409
test_still_running (test.test__xxsubinterpreters.DestroyTests) ...
msg393430 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2021-05-10 20:43
See also bpo-37224 "[subinterpreters] test__xxsubinterpreters fails randomly" that I reported 2 years ago and is not fixed yet.
msg394724 - (view) Author: Shreyan Avigyan (shreyanavigyan) * Date: 2021-05-29 08:16
I'm not sure *but* in the DestroyTests.test_one id1 and id3 were never explicitly destroyed. Can it be related?
History
Date User Action Args
2022-04-11 14:59:45adminsetgithub: 88266
2021-05-29 08:16:36shreyanavigyansetnosy: + shreyanavigyan
messages: + msg394724
2021-05-10 20:43:19vstinnersetmessages: + msg393430
2021-05-10 11:07:47vstinnersettitle: test_subinterpreters fails in AMD64 Fedora Stable 3.x: "Fatal Python error: Py_EndInterpreter: thread still has a frame" -> test__xxsubinterpreters: test_one() fails in AMD64 Fedora Stable 3.x: "Fatal Python error: Py_EndInterpreter: thread still has a frame"
2021-05-10 11:07:31vstinnersetnosy: + nanjekyejoannah
2021-05-10 11:07:25vstinnersettitle: test_subinterpreters fails in AMD64 Fedora Stable 3.x -> test_subinterpreters fails in AMD64 Fedora Stable 3.x: "Fatal Python error: Py_EndInterpreter: thread still has a frame"
2021-05-10 11:05:25pablogsalcreate