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-94673: Always Finalize Static Builtin Types by ericsnowcurrently · Pull Request #95153 · python/cpython Conversation
|
|
@vstinner, you introduced the original skipping logic that I'm basically removing. Are there any problems with the approach I'm taking? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This was split out of #94995. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 New build scheduled with the buildbot fleet by @ericsnowcurrently for commit 74d5af3 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Hmm, this would affected extension modules which store |
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 a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: Kumar Aditya <[email protected]>
I skipped type deallocation if they have sub-types to prevent crashes. I don't recall the details. I got issues with subclasses: https://bugs.python.org/issue46417#msg411122 I fixed this issue with: 8ee07dd It's a complicated issue: https://bugs.python.org/issue46417#msg411304 See also #84258 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
If Python is initialized multiple times (Py_Initialize + Py_Finalize called multiple times), a sub-type may try to get data from its parent static type which has been cleared. If the static type is not properly initialized, Python can crash. If the heap type is used during the finalization after the static type has been cleared, Python can crash. Again, I don't recall the details. I don't know the crashes that I got. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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.