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

Mattia Rossi mrossi at swin.edu.au
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/libc.so.7
#1  0x201a8314 in pthread_sigmask () from /lib/libthr.so.3
#2  0x201a8964 in raise () from /lib/libthr.so.3
#3  0x202aba6c in abort () from /lib/libc.so.7
#4  0x203a5680 in __clear_cache () from 
/usr/local/lib/python2.7/lib-dynload/_ctypes.so
#5  0x203a5680 in __clear_cache () from 
/usr/local/lib/python2.7/lib-dynload/_ctypes.so

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.

Mat

On 08/11/2011 22:07, Mattia Rossi wrote:
> Well, the title says it.
>
> Waf, (code.google.com/p/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 freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"



More information about the freebsd-arm mailing list