Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Apr 26, 2019

Py_TRACE_REFS ABI is incompatible with release and debug (Py_DEBUG)
ABI.

https://bugs.python.org/issue36722

Py_TRACE_REFS ABI is incompatible with release and debug (Py_DEBUG)
ABI.
@vstinner
Copy link
Member Author

I checked manually pyconfig.h in these 3 configurations. It now works as expected. Moreover, pyport.h ensures that ALT_SOABI is not defined when Py_TRACE_REFS is defined, just in case.

./configure:

/* #undef ALT_SOABI */
/* #undef Py_DEBUG */
/* #undef Py_TRACE_REFS */

./configure --with-pydebug:

#define ALT_SOABI "cpython-38-x86_64-linux-gnu"
#define Py_DEBUG 1
/* #undef Py_TRACE_REFS */

./configure --with-trace-refs:

/* #undef ALT_SOABI */
/* #undef Py_DEBUG */
#define Py_TRACE_REFS 1

ALT_SOABI is only defined when Py_DEBUG is defined, but not when Py_TRACE_REFS is defined: as expected.

@vstinner vstinner merged commit 6d13e5b into python:master Apr 26, 2019
@vstinner vstinner deleted the fix_trace_refs_soabi branch April 26, 2019 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants