bpo-27987 for v3.5.10 and v3.6.15: align by 16bytes on 64bit platforms #2630
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This resolves an error encountered on x86_64 for python versions 3.5.10 and 3.6.15 where
./python -c 'import ctypes'
causes an immediate segfault. Also, when pyenv install runs./python -E -m ensurepip --upgrade --root=/
, this imports ctypes and also causes a segfault.The segfault causes
pyenv install 3.5.10
and the same for 3.6.15 to fail and not install.This bug was resolved in bpo-27987 for the v2.7 branch and v3.7 branch and later. (Note that in the conversation, although one of the patches was reverted, the revert was reverted at the end.) This PR backports those patches for 3.5.10 and 3.6.15, which were left unfixed. These patches would likely not be accepted upstream because 3.5 and 3.6 are EOL.
Despite these versions being EOL, I was interested for old times sake. Also, the test harness for chaimleib/intervaltree lists these versions, among others, as test targets.
Tests