[Bug 307000] [NEW] bindings aren't 64-bit safe

arthur richards awjrichards at gmail.com
Wed Dec 10 23:02:52 UTC 2008


Public bug reported:

See:
http://developer.berlios.de/bugs/?func=detailbug&bug_id=14691&group_id=1810

Causes segfaults under apache/mod_python and apache/mod_wsgi

This following patch fixed my problem (taken from jpo at http://developer.berlios.de/bugs/?func=detailbug&bug_id=14691&group_id=1810):
----------
diff -ruN uTidylib-0.2-orig/tidy/lib.py uTidylib-0.2/tidy/lib.py
--- uTidylib-0.2-orig/tidy/lib.py 2004-02-24 08:12:24.000000000 +0000
+++ uTidylib-0.2/tidy/lib.py 2008-10-16 14:45:56.000000000 +0100
@@ -130,6 +130,8 @@

sinkfactory=SinkFactory()

+_tidy.Create.restype = ctypes.POINTER(ctypes.c_void_p)
+
class _Document(object):
def __init__(self):
self.cdoc = _tidy.Create()
----------

lsb_release -rd:
Description:	Ubuntu 8.10
Release:	8.10

apt-cache policy python-utidylib:
python-utidylib:
  Installed: 0.2-3.2ubuntu1
  Candidate: 0.2-3.2ubuntu1
  Version table:
 *** 0.2-3.2ubuntu1 0
        500 http://us.archive.ubuntu.com intrepid/main Packages
        100 /var/lib/dpkg/status

expected results:
utidylib would not cause segfaults when used with apache/mod_python

what happened instead:
using utidylib caused python to segfault when used with apache/mod_python

** Affects: utidylib (Ubuntu)
     Importance: Undecided
         Status: New

-- 
bindings aren't 64-bit safe
https://bugs.launchpad.net/bugs/307000
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list