Steps to reproduce: see the attached shell script which reproduces the issue on Ubuntu 13.10 and Arch Linuxįor what it is worth, I was not able to reproduce, on the current Python 2.7.8 branch and Mac OS X. 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: I have tried rebuilding python with the included version of libffi (Arch normally uses a systemwide version). Gcc -c -fpic -Wall -Wextra -pedantic -Wpointer-arith -Werror -std=c99 -O0. See the contents of test.c and test.py in the attached file Python 2.7.8 fails with a 'stack smashing detected' error and aborts when trying to access a C union using ctypes/libffi FilesĬontents of C file declaring union and function returning initialized union as well as stack trace/memory map Sam.Kerr, amaury.forgeotdarc, belopolsky, doko, meador.inge, seanmccully, wes.kerfootĬreated on 04:53 by wes.kerfoot, last changed 00:08 by Sam.Kerr. Stack smash when using ctypes/libffi to access union
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |