Public bug reported:

Binary package hint: python-newt

Python scripts using the python-newt extension module crash on exit when
using Python 2.5.  The crash is caused by an invalid pointer being
passed to the C library function free() when the Python interpreter does
its final module cleanup.  The bug can be reproduced by running on of
the example scripts included with python-newt:

python /usr/share/doc/python-newt/examples/popcorn.py

I was able to fix the problem by applying a fix from the Fedora Core 7
release of newt (0.52.5).  The patch is appended below:

--- newt-0.52.2/snackmodule.c   2005-09-21 02:32:01.000000000 -0700
+++ newt-0.52.2.new/snackmodule.c       2007-04-27 16:11:29.000000000 -0700
@@ -924,8 +924,8 @@
     
     Py_XDECREF (s->scs.cb);
     Py_XDECREF (s->scs.data);
-
-    PyMem_DEL(o);
+    
+    PyObject_Free(o);
 }
 
 static PyObject * widgetAddCallback(snackWidget * s, PyObject * args) {

** Affects: newt (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
python-newt scripts crash on exit
https://bugs.launchpad.net/bugs/110880
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to