Python CTypes crash Python 2.7.2 - was: Waf segfaults on ARM

Mattia Rossi mrossi at
Tue Dec 6 02:17:42 UTC 2011

So, an update here:

I was able to narrow the problem down to Python CTypes. The module 
should be working on ARM according to various sources, so I think this 
is a FreeBSD issue.

Python 2.7.2 will crash upon import of ctypes:

dreamplug# python
Python 2.7.2 (default, Dec  1 2011, 22:46:25)
[GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9
Type "help", "copyright", "credits" or "license" for more information.
 >>> import ctypes
Abort (core dumped)

The backtrace:

(gdb) bt
#0  0x2020dd10 in thr_kill () from /lib/
#1  0x201a8314 in pthread_sigmask () from /lib/
#2  0x201a8964 in raise () from /lib/
#3  0x202aba6c in abort () from /lib/
#4  0x203a5680 in __clear_cache () from 
#5  0x203a5680 in __clear_cache () from 

This makes it impossible to run waf, as it uses ctypes, and obviously 
any other program that uses them.
One result is: no samba on ARM.


On 08/11/2011 22:07, Mattia Rossi wrote:
> Well, the title says it.
> Waf, ( segfaults on ARM when it get's into the
> main routine and tries to import Scripting.
> I don't even know where the Scripting import comes from, as it's not
> available if I execute python on the command line
> Python version used: 2.7.2_2
> Python itself seems to work fine otherwise.
> Waf is used by samba and tdb and who knows what else.
> Can anyone confirm the bug?
> Mat
> _______________________________________________
> freebsd-arm at mailing list
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at"

More information about the freebsd-arm mailing list