From owner-freebsd-ports@FreeBSD.ORG Sat Oct 9 01:29:19 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E171516A4CE for ; Sat, 9 Oct 2004 01:29:19 +0000 (GMT) Received: from marvin.muc.de (marvin.muc.de [193.149.48.2]) by mx1.FreeBSD.org (Postfix) with SMTP id CFC7443D69 for ; Sat, 9 Oct 2004 01:29:18 +0000 (GMT) (envelope-from mod-submit@uni-berlin.de) Received: (qmail 18964 invoked by alias); 9 Oct 2004 01:29:17 -0000 Delivered-To: mods-muc-lists-freebsd-ports@moderators.muc.de Received: (qmail 18957 invoked from network); 9 Oct 2004 01:29:16 -0000 Received: from mail.fu-berlin.de (130.133.1.2) by marvin.muc.de with SMTP; 9 Oct 2004 01:29:16 -0000 Received: by Mail.FU-Berlin.DE (Exim 4.42) from curry.zedat.fu-berlin.de ([160.45.10.36]) for muc-lists-freebsd-ports@moderators.muc.de with esmtp id <1CG62u-000MAU-FT>; Sat, 09 Oct 2004 03:29:16 +0200 Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.uni-berlin.de with bsmtp id ; Sat, 9 Oct 2004 03:29:16 +0200 (MEST) To: muc-lists-freebsd-ports@moderators.muc.de Path: not-for-mail From: Valentino Volonghi aka Dialtone Newsgroups: muc.lists.freebsd.ports Date: Sat, 09 Oct 2004 03:30:21 +0200 Lines: 30 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Orig-X-Trace: news.uni-berlin.de 6/uu6wQAi7NN8li8DZ14AAw/ufnKbmkU+PDST++qxA0BNSRzbG User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) X-Mailman-Approved-At: Sat, 09 Oct 2004 13:32:37 +0000 Subject: Python Coredump X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Oct 2004 01:29:20 -0000 Try executing this simple program in py: class NewList(list): def __getslice__(self, start, stop): if type(start) == str and type(stop) == str: return self[self.index(start):self.index(stop)] else: return self[start:stop] a = NewList([1,2,3,4,5,6]) print a[1:4] In my FreeBSD 5.3-beta7 box it coredumps with bus error. The responsible is self[start:stop], but this shouldn't be a problem at all. my uname -a: FreeBSD vercingetorix.caesar.org 5.3-BETA7 FreeBSD 5.3-BETA7 #5: Tue Oct 5 20:39:14 CEST 2004 dialtone@vercingetorix.caesar.org:/usr/obj/usr/src/sys/VERCINGETORIX01 i386 -- Valentino Volonghi aka Dialtone Now running FreeBSD 5.3-beta6 Blog: http://vvolonghi.blogspot.com Home Page: http://xoomer.virgilio.it/dialtone/