Message396885
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 |
|
Date |
User |
Action |
Args |
2021-07-03 01:27:44 | zan | set | recipients:
+ zan |
2021-07-03 01:27:44 | zan | set | messageid: <1625275664.18.0.784580950779.issue44556@roundup.psfhosted.org> |
2021-07-03 01:27:44 | zan | link | issue44556 messages |
2021-07-03 01:27:43 | zan | create | |
|