I can reproduce this behaviour on several Ubuntu boxes with '--with-system-ffi'.
Actually the ctypes unittests throw errors with this configuration, and eventually die with a segfault.
It would probably be a good idea to insert some runtime checks in ctypes itself, the sizes of the various c_... types should be compared with the sizes that the struct module calculates. This will not fix the bug but would avoid that users are bitten by it.
I can reproduce this behaviour on several Ubuntu boxes with '--with- system- ffi'.
Actually the ctypes unittests throw errors with this configuration, and eventually die with a segfault.
It would probably be a good idea to insert some runtime checks in ctypes itself, the sizes of the various c_... types should be compared with the sizes that the struct module calculates. This will not fix the bug but would avoid that users are bitten by it.