FS#41502 - [python2] stack smash when using libffi to access union
Attached to Project:
Arch Linux
Opened by wes (Nisstyre56) - Thursday, 07 August 2014, 22:17 GMT
Last edited by freswa (frederik) - Sunday, 13 September 2020, 13:20 GMT
Opened by wes (Nisstyre56) - Thursday, 07 August 2014, 22:17 GMT
Last edited by freswa (frederik) - Sunday, 13 September 2020, 13:20 GMT
|
Details
Description:
python2 fails with a 'stack smashing detected' error and aborts when trying to access a C union using libffi Steps to reproduce: gcc -c -fpic -Wall -Wextra -pedantic -Wpointer-arith -Werror -std=c99 -O0 ./test.c -o test.o gcc -shared -o test.so test.o python2 test.py Also fails with clang instead of gcc. python2 version: 2.7.8 gcc version: 4.9.1 clang version: 3.4.2 I have checked with someone else and the exception does not appear on a machine running Ubuntu 12.04. |
This task depends upon
This also causes a segfault on Ubuntu 13.10
i.e.
git clone https://github.com/atgreen/libffi.git
and then LD_PRELOAD=./x86_64-unknown-linux-gnu/.libs/libffi.so python2 test.py after building, that works.