You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
./configure --with-assertions generates a broken build #82557
The problem is _PyUnicode_CheckConsistency switched from being only defined when Py_DEBUG is set, to being defined unconditionally. That was a good change, but it made the API-compatibility hack of #defining _PyUnicode_CheckConsistency in Include/unicodeobject.h do the wrong thing. PR bpo-16594.
My intent in bpo-36389 was to also provide _PyObject_CheckConsistency() in release mode to help debugging GC crash, especially in visit_decref(). I wrote PR 16612 to fix my implementation.
After pushing some fixes to 3.8 and master branches, I tested the following commands in 3.7, 3.8 and master branches:
make distclean
./configure --prefix=$HOME/.local --with-assertions
make
./python -m test -j0 test_bytes test_gc test_capi
These commands now work in the 3 branches. I close the issue.
Thanks Vinay Sajip for the bug report! Thanks T. Wouters for previous fixes.
@t. Wouters: I took the liberty of closing your PR 16594 in favor of my PR 16623. I may backport PR 16612 enhancements to 3.8 later, but not jus before a 3.8.0 final release to no stress our release manager ;-)
Activity
vsajip commentedon Oct 5, 2019
Following
./configure --prefix=$HOME/.local --with-assertions
and then running make leads to an error:
BTW, this happens even if Py_DEBUG=true is defined. System where the failure occurred: Ubuntu 16.04, 64-bit.
vsajip commentedon Oct 5, 2019
BTW it also seems to fail when just Py_DEBUG is specified (no --with-assertions).
vsajip commentedon Oct 5, 2019
Adding Thomas and Victor based on git blame on some of the source lines concerned.
Yhg1s commentedon Oct 5, 2019
The problem is _PyUnicode_CheckConsistency switched from being only defined when Py_DEBUG is set, to being defined unconditionally. That was a good change, but it made the API-compatibility hack of #defining _PyUnicode_CheckConsistency in Include/unicodeobject.h do the wrong thing. PR bpo-16594.
vstinner commentedon Oct 7, 2019
My intent in bpo-36389 was to also provide _PyObject_CheckConsistency() in release mode to help debugging GC crash, especially in visit_decref(). I wrote PR 16612 to fix my implementation.
vstinner commentedon Oct 7, 2019
New changeset 6876257 by Victor Stinner in branch 'master':
bpo-36389: _PyObject_CheckConsistency() available in release mode (GH-16612)
6876257
vstinner commentedon Oct 7, 2019
New changeset 435b2ee by Victor Stinner in branch '3.8':
bpo-38376: Fix _PyUnicode_CheckConsistency() definition (GH-16623)
435b2ee
vstinner commentedon Oct 7, 2019
I pushed one more fix in https://bugs.python.org/issue36389#msg354138
vstinner commentedon Oct 7, 2019
After pushing some fixes to 3.8 and master branches, I tested the following commands in 3.7, 3.8 and master branches:
make distclean
./configure --prefix=$HOME/.local --with-assertions
make
./python -m test -j0 test_bytes test_gc test_capi
These commands now work in the 3 branches. I close the issue.
Thanks Vinay Sajip for the bug report! Thanks T. Wouters for previous fixes.
@t. Wouters: I took the liberty of closing your PR 16594 in favor of my PR 16623. I may backport PR 16612 enhancements to 3.8 later, but not jus before a 3.8.0 final release to no stress our release manager ;-)
vstinner commentedon Oct 15, 2019
New changeset f82ce5b by Victor Stinner in branch '3.8':
[3.8] bpo-36389: Backport debug enhancements from master (GH-16796)
f82ce5b