[issue39599] ABI breakage between 3.7.4 and 3.7.5

STINNER Victor report at bugs.python.org
Mon Feb 10 08:34:57 EST 2020


STINNER Victor <vstinner at python.org> added the comment:

You can find the rationale for this change in two issues:

* bpo-27987
* bpo-36618

First, it was a warning in clang ubsan (Undefined Behavior Sanitizer).
Then ctypes started to crash when Python was compiled with clang. It
means that compiling Python 3.7 with clang also had the issue.

The quick fix was to compile Python with -fmax-type-align=8 when clang
was detected.

But it was a signal that something was wrong in Python on x86-64:
Python didn't respect the x86-64 ABI.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39599>
_______________________________________


More information about the Python-bugs-list mailing list