bindings aren't 64-bit safe

Bug #307000 reported by arthur richards
8
Affects Status Importance Assigned to Milestone
utidylib (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

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

Revision history for this message
Sheol (sheol-s) wrote :

Same error found on (cat /proc/version): Linux version 2.6.26-1-amd64 (Debian 4.1.2-23)

Changed in utidylib:
status: New → Confirmed
Michal Čihař (nijel)
Changed in utidylib (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Michal Čihař (nijel) wrote :

This is fixed in 0.2-4, all what Ubuntu needs is to sync from Debian.

Revision history for this message
Michal Čihař (nijel) wrote :

Sorry for typo, I meant 0.2-5.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package utidylib - 0.2-6

---------------
utidylib (0.2-6) unstable; urgency=low

  * Add support for handling unicode strings (Closes: #339818).

utidylib (0.2-5) unstable; urgency=low

  * Fix handling of pointer on 64-bit (LP: #307000).
  * Replace Conflicts with Breaks for older package versions.
  * Bump standards to 3.9.0.

utidylib (0.2-4) unstable; urgency=low

  * New maintainer.
  * Remove depdency on python-ctypes (Closes: #580215).
  * Convert patch to quilt and use 3.0 source format.
  * Switch build system to dh from cdbs.
  * Bump standards to 3.8.4.
  * Add ${misc:Depends}.
  * Change section to python.
  * Add homepage control field.
  * Add Vcs-* control fields.
  * No need to ship source readme in binary package.
 -- Artur Rona <email address hidden> Mon, 06 Sep 2010 11:38:16 +0100

Changed in utidylib (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.