Date: Mon, 6 Jul 2009 12:20:15 GMT From: Phil Pennock <phil.pennock@globnix.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/136379: www/py-utidy not 64-bit clean Message-ID: <200907061220.n66CKFuh039641@www.freebsd.org> Resent-Message-ID: <200907061230.n66CU1o1077175@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907061220.n66CKFuh039641>