[Bug 110880] Re: python-newt scripts crash
Comment #7 seems to say that this has been fixed. If this isn't the case, feel free to change the status of this bug back to confirmed. ** Changed in: newt (Ubuntu) Status: Confirmed = Fix Released -- 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 subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 110880] Re: python-newt scripts crash
** Tags added: bitesize patch -- 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 subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 110880] Re: python-newt scripts crash
I'm able to reproduce this on 32-bit Ibex with the following code lifted from the tutorial at http://www.wanware.com/tsgdocs/snack.html: import sys import getopt from snack import * class Usage(Exception): def __init__(self, msg): self.msg = msg def main(argv=None): if argv is None: argv = sys.argv try: try: opts, args = getopt.getopt(argv[1:], h, [help]) except getopt.error, msg: raise Usage(msg) except Usage, err: print sys.stderr, err.msg print sys.stderr, for help use --help return 2 screen = SnackScreen() upperleft = Widget() upperright = Widget() lowerleft = Widget() lowerright = Widget() g = Grid(2,2) g.setField(upperleft, 0, 0, (0,0,1,1)) g.setField(upperright, 1, 0) g.setField(lowerleft, 0, 1) g.setField(lowerright, 1, 1, growx = 1, growy = 1) screen.gridWrappedWindow(g, This is a snack test) f = Form() f.add(g) result = f.run() screen.popWindow() screen.finish() if __name__ == __main__: sys.exit(main()) -- 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 subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 110880] Re: python-newt scripts crash
Nathan, Your bug is completely unrelated to this one. (It is crashing in newtGridGetSize in the C code). You should create a new bug. This bug is fixed in Intrepid (mismatch of allocation and free functions). -- 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 subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 110880] Re: python-newt scripts crash
As Roger pointed out to me in a private email, the crash in the code I posted above is actually for a different problem. Verified via stacktrace. -- 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 subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 110880] Re: python-newt scripts crash
I'm running intrepid, and this bug seem to be fixed. -- 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 subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 110880] Re: python-newt scripts crash
I was, in fact, finally able to get the crash to go away by recompiling the package with the patch mentioned above. -- 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
[Bug 110880] Re: python-newt scripts crash
I'm also seeing this problem. I tried regenerating the package with the patch above but I'm still seeing the crashes. It may be that the patch is effective but isn't being applied due to my rather meager skills with the Ubuntu package build process. Is there an ETA on a fix? It seems fairly simple if that patch above is correct. Thanks. -- 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
[Bug 110880] Re: python-newt scripts crash
Still crashes in Gutsy on the examples. Sadly there doesn't seem to be a way to get really small fixes done in Ubuntu. ** Changed in: newt (Ubuntu) Status: New = Confirmed -- 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
[Bug 110880] Re: python-newt scripts crash on exit
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.0 -0700 +++ newt-0.52.2.new/snackmodule.c 2007-04-27 16:11:29.0 -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
[Bug 110880] Re: python-newt scripts crash on exit
Is there any workaround for this while I wait for ubuntu to come out with a fix? It pretty much makes python newt unusable since the bug is in widget destructor so if any ever get destroyed you get the crash. -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 110880] Re: python-newt scripts crash on exit
Roger, On 7/5/07, Roger Binns [EMAIL PROTECTED] wrote: Is there any workaround for this while I wait for ubuntu to come out with a fix? It pretty much makes python newt unusable since the bug is in widget destructor so if any ever get destroyed you get the crash. You are welcome to download the packages that I put together for my own use: http://aloha.apl.washington.edu/Seahurst/debs/ --Mike -- python-newt scripts crash on exit https://bugs.launchpad.net/bugs/110880 You received this bug notification because you are a direct subscriber of the bug. -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs