From owner-freebsd-arm@FreeBSD.ORG Tue Dec 6 02:17:42 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0537C106564A for ; Tue, 6 Dec 2011 02:17:42 +0000 (UTC) (envelope-from mrossi@swin.edu.au) Received: from gpo2.cc.swin.edu.au (gpo2.cc.swin.edu.au [136.186.1.31]) by mx1.freebsd.org (Postfix) with ESMTP id 955D48FC12 for ; Tue, 6 Dec 2011 02:17:41 +0000 (UTC) Received: from mrossi.caia.swin.edu.au (mrossi.caia.swin.edu.au [136.186.229.109]) by gpo2.cc.swin.edu.au (8.14.3/8.14.3) with ESMTP id pB61rH81017025 for ; Tue, 6 Dec 2011 12:53:17 +1100 Message-ID: <4EDD758D.30603@swin.edu.au> Date: Tue, 06 Dec 2011 12:53:17 +1100 From: Mattia Rossi User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111124 Thunderbird/8.0 MIME-Version: 1.0 To: freebsd-arm@freebsd.org References: <4EB90D88.30508@swin.edu.au> In-Reply-To: <4EB90D88.30508@swin.edu.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Python CTypes crash Python 2.7.2 - was: Waf segfaults on ARM X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2011 02:17:42 -0000 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"