This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author T.Rex
Recipients Ayappan, David.Edelsohn, Michael.Felt, T.Rex
Date 2020-07-24.13:13:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1595596382.52.0.12852219243.issue38628@roundup.psfhosted.org>
In-reply-to
Content
On Fedora32/PPC64LE (5.7.9-200.fc32.ppc64le), with little change:
  libc = CDLL('/usr/lib64/libc.so.6')
I get the correct answer:
b'def'
b'def'
b'def'
# python3 --version
Python 3.8.3
libffi : 3.1-24


On Fedora32/x86_64 (5.7.9-200.fc32.x86_64), with a little change:
  libc = CDLL('/usr/lib64/libc-2.31.so')
that crashes:
b'def'
Segmentation fault (core dumped)
# python3 --version
Python 3.8.3
libffi : 3.1-24


AIX : libffi-3.2.1
On AIX 7.2, with Python 3.8.5 compiled with XLC v13, in 64bit:
b'def'
b'def'
None
On AIX 7.2, with Python 3.8.5 compiled with GCC 8.4, in 64bit:
b'def'
b'def'
None

On AIX 7.2, with Python 3.8.5 compiled with XLC v13, in 32bit:
  ( libc = CDLL('libc.a(shr.o)') )
b'def'
b'def'
b'def'
On AIX 7.2, with Python 3.8.5 compiled with GCC 8.4, in 32bit:
b'def'
b'def'
b'def'

Preliminary conclusions:
 - this is a 64bit issue on AIX and it is independent of the compiler
 - it is worse on Fedora/x86_64
 - it works perfectly on Fedora/PPC64LE
what a mess.
History
Date User Action Args
2020-07-24 13:13:02T.Rexsetrecipients: + T.Rex, David.Edelsohn, Michael.Felt, Ayappan
2020-07-24 13:13:02T.Rexsetmessageid: <1595596382.52.0.12852219243.issue38628@roundup.psfhosted.org>
2020-07-24 13:13:02T.Rexlinkissue38628 messages
2020-07-24 13:13:02T.Rexcreate