Repository navigation
gh-139759: Add test_unclosed_interpreter_on_fork - #145545
aurelwildfellner wants to merge 2 commits into
Conversation
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
|
This PR is stale because it has been open for 30 days with no activity. |
9a3078b to
7cfab1a
Compare
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
|
Rebased to main. And added a The test still fails as expected. |
This is a unit test which covers the issue raced in gh-139759 - forking when a subinterpreter is not properly closed creates a segfault in the child process.
Note, currently this test will fail. I provide it to emphasize the existing issue and as something to add to the testsuite once there is a proper fix.
The thread state handling is a bit intriguing to me, so I will propably not work on an actual fix. But maybe it is useful to someone actually picking up the issue.