[issue22171] stack smash when using ctypes/libffi to access union

2014-08-08 Thread Wesley Kerfoot
Wesley Kerfoot added the comment: Description: 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

[issue22171] stack smash when using ctypes/libffi to access union

2014-08-07 Thread Wesley Kerfoot
New submission from Wesley Kerfoot: Description: 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 contents of test.c and test.py in the attached file gcc -c -fpic -Wall -Wextra