From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jul 6 12:30:02 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10E7C106566C for ; Mon, 6 Jul 2009 12:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C4DFC8FC1F for ; Mon, 6 Jul 2009 12:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n66CU1p0077179 for ; Mon, 6 Jul 2009 12:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n66CU1o1077175; Mon, 6 Jul 2009 12:30:01 GMT (envelope-from gnats) Resent-Date: Mon, 6 Jul 2009 12:30:01 GMT Resent-Message-Id: <200907061230.n66CU1o1077175@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Phil Pennock Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 170791065675 for ; Mon, 6 Jul 2009 12:20:16 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 04A148FC19 for ; Mon, 6 Jul 2009 12:20:16 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n66CKFdG039642 for ; Mon, 6 Jul 2009 12:20:15 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n66CKFuh039641; Mon, 6 Jul 2009 12:20:15 GMT (envelope-from nobody) Message-Id: <200907061220.n66CKFuh039641@www.freebsd.org> Date: Mon, 6 Jul 2009 12:20:15 GMT From: Phil Pennock To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/136379: www/py-utidy not 64-bit clean X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jul 2009 12:30:02 -0000 >Number: 136379 >Category: ports >Synopsis: www/py-utidy not 64-bit clean >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 06 12:30:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Phil Pennock >Release: >Organization: >Environment: >Description: Running python 2.6 on amd64, "import tidy", followed by "tidy.parseString(x)" for some x results in a Python interpreter segfault. RedHat have also encountered this and provided a one-line patch, which works for me. See: https://bugzilla.redhat.com/show_bug.cgi?id=466069 After adding "_tidy.Create.restype = ctypes.POINTER(ctypes.c_void_p)" per the suggestion there, Python no longer segfaults and I can use the tidy module. >How-To-Repeat: Install www/py-utidy on amd64 % python >Fix: Per https://bugzilla.redhat.com/show_bug.cgi?id=466069 patch tidy/lib.py such that after line 131: sinkfactory=SinkFactory() add the line: _tidy.Create.restype = ctypes.POINTER(ctypes.c_void_p) >Release-Note: >Audit-Trail: >Unformatted: >>> import tidy >>> tidy.parseString('foo') zsh: segmentation fault (core dumped) python