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 zan
Recipients zan
Date 2021-07-03.01:27:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1625275664.18.0.784580950779.issue44556@roundup.psfhosted.org>
In-reply-to
Content
Running the unittests after upgrading libffi to latest version 3.4.2 and recompiling python, leads to several tests in Lib/ctypes/test/ to crash with Abort: trap 6. This does not happen with version 3.3 of libffi.

Steps to reproduce:

git clone https://github.com/libffi/libffi
cd libffi
autoreconf -fvi
export CC=/usr/bin/clang
./configure
make
sudo make install # installs into /usr/local

git clone https://github.com/python/CPython
cd CPython
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
export CPPFLAGS="-I/usr/local/include" 
export LDFLAGS="-L/usr/local/lib"
./configure --with-system-ffi
make
./python Lib/ctypes/test/__main__.py -v

...
test_callbacks (ctypes.test.test_as_parameter.AsParamPropertyWrapperTestCase) ... Abort trap: 6

If I repeat the above steps with 'git checkout v3.3' in libffi, all tests in ctypes complete successfully.

Tested with :
- python 3.11 commit ec8759b0 (current master), also tried 3.8.11
- libffi 3.4.2
- macOS 11.4, Xcode 12.5.1
- MacBook Air, x86_64, Intel Sky Lake, i5-8210Y
History
Date User Action Args
2021-07-03 01:27:44zansetrecipients: + zan
2021-07-03 01:27:44zansetmessageid: <1625275664.18.0.784580950779.issue44556@roundup.psfhosted.org>
2021-07-03 01:27:44zanlinkissue44556 messages
2021-07-03 01:27:43zancreate