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. 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) How-To-Repeat: Install www/py-utidy on amd64 % python
Responsible Changed From-To: freebsd-ports-bugs->freebsd-python freebsd-python@ wants this port PRs (via the GNATS Auto Assign Tool)
State Changed From-To: open->closed Committed, thanks!
pav 2009-07-08 13:21:43 UTC FreeBSD ports repository Modified files: www/py-utidy Makefile pkg-descr Added files: www/py-utidy/files patch-tidy-lib.py Log: - Fix runtime crash bug on amd64 PR: ports/136379 Submitted by: Phil Pennock <phil.pennock@globnix.org> Revision Changes Path 1.5 +2 -1 ports/www/py-utidy/Makefile 1.1 +10 -0 ports/www/py-utidy/files/patch-tidy-lib.py (new) 1.2 +3 -4 ports/www/py-utidy/pkg-descr _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"