Segfaults with Python 2.5

Bug #222146 reported by Shane Hathaway
8
Affects Status Importance Assigned to Milestone
python-cdb (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

Binary package hint: python-cdb

This patch fixes segfaults caused by python-cdb in Python 2.5. I got it from Gentoo's python-cdb package. It appears that PyObject_DEL is the correct API whereas python-cdb is using PyMem_DEL instead.

Revision history for this message
Shane Hathaway (shane-launchpad) wrote :
Revision history for this message
Shane Hathaway (shane-launchpad) wrote :

Note that this is very similar to bug #115655. Applying the patch might also solve bug #157251.

Revision history for this message
Markus Korn (thekorn) wrote :

Hi Shane,
thanks for reporting this bug and for working on a fix.
However I'm not sure if this bug is still reproducible with the latest version of python-cdb, can you please try to reproduce this bug with an updated installation of your ubuntu system.
If this bug is still reproducible, can you please:
* add detailed information about your system (version of ubuntu, version of python and python-cdb etc.)
* add detailed information on how to reproduce this segfault (e.g. sample code)

Thanks in advance,
Markus

Changed in python-cdb (Ubuntu):
status: New → Incomplete
Revision history for this message
Shane Hathaway (shane-hathawaymix) wrote :

Markus,

I no longer have access to the system where it was failing, so I can not reproduce it anymore.

The issue remains that the package is using the wrong API and the upstream maintainer seems to be MIA. Since about Python 2.0, PyObject_Del, not PyMem_Del, is the correct API for most users of the Python C API. If PyMem_Del happens to be working, it's an undocumented accident.

Revision history for this message
Markus Korn (thekorn) wrote :

Set to Triaged based on the last comment

Changed in python-cdb (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
pilcrow (mjp) wrote :
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.