New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python reinitialization test #46269
Comments
The patch adds a new test and a new executable. The executable calls $ ./test_reinit
round 1
[7751 refs]
round 2
[7797 refs]
round 3
[7834 refs]
round 4
[7871 refs]
round 5
[7908 refs]
round 6
[7945 refs]
round 7
[7982 refs]
round 8
[8019 refs]
round 9
[8056 refs]
round 10
[8093 refs] |
I'm not sure what the purpose of this test is. When would it pass, when |
Martin v. Löwis wrote:
Today my attempts to fix some reference leaks related to sys.flags and The test also shows an issue in Python 3.0. The double linked reference $ ./test_reinit
round 1
[24676 refs]
round 2
[25588 refs]
round 3
* ob
object : <refcnt 0 at 0x82248e8>
type : str
refcount: 0
address : 0x82248e8
* op->_ob_prev->_ob_next
object : <refcnt 0 at 0x82248e8>
type : str
refcount: 0
address : 0x82248e8
* op->_ob_next->_ob_prev
object : bytearray(b'')
type : bytearray
refcount: 1
address : 0x839ab98
Fatal Python error: UNREF invalid object
Aborted (core dumped) |
Perhaps ROUNDS, CAUSE_SEGFAULT and VERBOSE could be command-line rather |
I like to keep the test as simple as possible. Here is a new file that shows Python crashes in the third Py_Finalize(). |
If fixed the problem with multiple reinitialization in r60477. It took |
This is still a good idea. |
Quote msg83564 "This is still a good idea.", in which case shouldn't someone push this forward, failing that close as out of date? |
Just because someone doesn't "push this forward" doesn't mean it's out of date. |
See also bpo-10914. |
Antoine, is the test still required? bpo-10914 has introduced tests for the subinterpreter. |
Ah, funny. I ended up doing the same thing as you without remembering about it! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: