Author tilsche
Recipients amaury.forgeotdarc, belopolsky, eryksun, meador.inge, tilsche
Date 2016-04-05.10:40:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Thanks Eryk for the additional explanation. I added a more elaborate example that doesn't abuse the standard c function that actually doesn't expect a union:

 % gcc -shared -fPIC libfoo.c -o -Wall
 % python                             
*** stack smashing detected ***: python terminated
[1]    28463 segmentation fault (core dumped)  python

The underling issue is exactly the same as previously described.

I still argue that ctypes should refuse to attempt such a call, and the documentation should be clarified, as long as libffi does not support unions.
Date User Action Args
2016-04-05 10:40:32tilschesetrecipients: + tilsche, amaury.forgeotdarc, belopolsky, meador.inge, eryksun
2016-04-05 10:40:32tilschesetmessageid: <>
2016-04-05 10:40:32tilschelinkissue26628 messages
2016-04-05 10:40:32tilschecreate