From owner-freebsd-current@FreeBSD.ORG Sun Oct 3 07:00:49 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FA5D16A4CE for ; Sun, 3 Oct 2004 07:00:49 +0000 (GMT) Received: from main.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E58043D54 for ; Sun, 3 Oct 2004 07:00:48 +0000 (GMT) (envelope-from freebsd-current@m.gmane.org) Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CE0ML-0006i4-00 for ; Sun, 03 Oct 2004 09:00:41 +0200 Received: from future-is.orange.co.uk ([193.35.129.169]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 03 Oct 2004 09:00:41 +0200 Received: from matth by future-is.orange.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 03 Oct 2004 09:00:41 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org From: Matt Hamilton Date: Sun, 03 Oct 2004 07:41:08 +0100 Lines: 41 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: future-is.orange.co.uk User-Agent: Mozilla Thunderbird 0.7.3 (Macintosh/20040803) X-Accept-Language: en-us, en X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Sender: news Subject: 5.3-BETA5 AMD64 Python problems X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Oct 2004 07:00:49 -0000 Hi All, We have just bought ourselves an AMD64 machine (HP DL145) and I have put 5.3-BETA5 on it. This is our first foray into 5.x, so far we have kept all our servers on 4.x. The server is meant to be a Zope server, but I am having trouble with python. Python 2.3.4 as built from ports cannot pass its own unit tests on this platform, specifically it fails test_re.py in about the 4th test (something to do with catching infinite recursion on a regular expression). The test just core dumps (as does trying to start Zope). I thought this was the well known 'FreeBSD has a tiny pthread stack size' issue. This is fixed in recent pythons (and the ports) by calling pthread_setstacksize to increase the stack to 1MB. I've tried this on 5.3-BETA5/AMD64, but to no avail. If I compile python *without* thread support, then the unit test passes. So I think it is related to threads. I've not managed to keep my finger on the -current development pulse, but wasn't threads re-written in 5.x? Or was it just the scheduler (I am using whichever scheduler 5.3-BETA5 uses by default). I've even tried raising the stack size to 64MB in python, but still it core dumps. Anyone else using python on 5.x? Can you test it passes its regex unit tests? As currently I'm unsure if the problem is related to: 1) AMD64 support 2) 5.x's new threads and/or scheduler 3) something else :) I'm pretty sure I've heard of people running Zope on 5.1 (I'm guessing it was i386) so I'm thinking it is a 64-bit issue. -Matt -- Matt Hamilton matth@netsight.co.uk Netsight Internet Solutions, Ltd. Business Vision on the Internet http://www.netsight.co.uk +44 (0)117 9090901 Web Design | Zope/Plone Development & Consulting | Co-location | Hosting