Date: Tue, 06 Dec 2011 12:53:17 +1100 From: Mattia Rossi <mrossi@swin.edu.au> To: freebsd-arm@freebsd.org Subject: Python CTypes crash Python 2.7.2 - was: Waf segfaults on ARM Message-ID: <4EDD758D.30603@swin.edu.au> In-Reply-To: <4EB90D88.30508@swin.edu.au> References: <4EB90D88.30508@swin.edu.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EDD758D.30603>