Author wes.kerfoot
Recipients amaury.forgeotdarc, belopolsky, meador.inge, wes.kerfoot
Date 2014-08-08.21:50:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
python 2.7.8 fails with a 'stack smashing detected' error and aborts when trying to access a C union using ctypes/libffi

Steps to reproduce: see the attached shell script which reproduces the issue on Ubuntu 13.10 and Arch Linux

Also fails with clang instead of gcc.

OS: Linux frege 3.15.8-1-ARCH #1 SMP PREEMPT Fri Aug 1 08:51:42 CEST 2014 x86_64 GNU/Linux
python2 version: 2.7.8
libffi version (OS wide version): 3.1-2
gcc version: 4.9.1
clang version: 3.4.2

Here is the PKGBUILD file Arch uses

I have also reported this bug on their tracker since I am not sure if this is a bug in ctypes or libffi or both:
Date User Action Args
2014-08-08 21:50:09wes.kerfootsetrecipients: + wes.kerfoot, amaury.forgeotdarc, belopolsky, meador.inge
2014-08-08 21:50:09wes.kerfootsetmessageid: <>
2014-08-08 21:50:09wes.kerfootlinkissue22171 messages
2014-08-08 21:50:09wes.kerfootcreate