Thanks for that.  Unfortunately I need it for AMD64 as well and need a
fix in the main ubuntu repositories due the the final products I build.

I did experiment with monkeypatching by using ctypes and trying to
change the function that way.  Didn't quite succeed but will give it
another try.

I would much rather the ubuntu folks just push this fix out asap.  It is
impossible to use python newt at all so they couldn't possibly make
things worse.

** Summary changed:

- python-newt scripts crash on exit
+ python-newt scripts crash

** Description changed:

  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 scripts using the python-newt extension module crash when using
+ Python 2.5.  The crash is caused by an invalid pointer being passed to
+ the C library function free() when any newt component (eg button, form,
+ label) is deleted.  The bug can be reproduced by running one 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) {

-- 
python-newt scripts crash 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to