Bug 136379 - www/py-utidy not 64-bit clean
Summary: www/py-utidy not 64-bit clean
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-python (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-06 13:30 UTC by Phil Pennock
Modified: 2009-07-08 14:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Pennock 2009-07-06 13:30:01 UTC
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-07-06 13:30:12 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-python

freebsd-python@ wants this port PRs (via the GNATS Auto Assign Tool)
Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2009-07-08 14:07:23 UTC
State Changed
From-To: open->closed

Committed, thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2009-07-08 14:21:58 UTC
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"