GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-128639: Don't assume one thread in subinterpreter finalization by ZeroIntensity · Pull Request #128640 · python/cpython Conversation
|
| Py_NewInterpreter(); | ||
| Py_NewInterpreter(); | ||
| Py_NewInterpreter(); | ||
| PyThreadState *tstate = PyThreadState_Get(); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think this test working before was a fluke. Py_NewInterpreter changes the thread state, and I don't think we support calling Py_Finalize from a subinterpreter.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It's probably okay but your change helps future-proof the test.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…rpreter-thread-shutdown
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
mostly LGTM
There are a few things that might make more sense in a separate PR.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| Py_NewInterpreter(); | ||
| Py_NewInterpreter(); | ||
| Py_NewInterpreter(); | ||
| PyThreadState *tstate = PyThreadState_Get(); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It's probably okay but your change helps future-proof the test.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: Eric Snow <[email protected]>
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for doing this!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@hugovk, is this something you'd be okay with us backporting to 3.14? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Yep, crash bugfixes can be backported :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @ZeroIntensity for the PR, and @ericsnowcurrently for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…on (pythongh-128640) Incidentally, this also fixed the warning not showing up if a subinterpreter wasn't cleaned up via _interpreters.destroy. I had to update some of the tests as a result. (cherry picked from commit 9859791) Co-authored-by: Peter Bierma <[email protected]>
|
GH-134254 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…nalization (pythongh-128640)" This reverts commit 9859791.
…inalization (pythongh-128640)" (pythongh-134256) This reverts commit 27bd082.
…on (pythongh-128640) Incidentally, this also fixed the warning not showing up if a subinterpreter wasn't cleaned up via _interpreters.destroy. I had to update some of the tests as a result.
…nalization (pythongh-128640)" (pythongh-134256) This reverts commit 9859791. The original change broke the iOS and android buildbots, where the tests are run single-process.
…on (pythongh-128640) Incidentally, this also fixed the warning not showing up if a subinterpreter wasn't cleaned up via _interpreters.destroy. I had to update some of the tests as a result.
…nalization (pythongh-128640)" (pythongh-134256) This reverts commit 9859791. The original change broke the iOS and android buildbots, where the tests are run single-process.
…on with fixed daemon thread support (pythonGH-134606) This reapplies pythonGH-128640. (cherry picked from commit a648813) Co-authored-by: Peter Bierma <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.