GNOME Bugzilla – Bug 406485
Core dump when blocking signals
Last modified: 2007-04-06 20:44:57 UTC
Minimal snippet that demonstrates the bug: import gtk class WeirdEntry(gtk.Entry): def __init__(self): self.hadj = gtk.Adjustment() self.hadj.connect("value_changed", self.hadj_cb) super(WeirdEntry, self).__init__() def hadj_cb(self, adjustment): pass if __name__ == "__main__": widget = WeirdEntry() widget.hadj.handler_block_by_func(widget.hadj_cb) Version: Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02) [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2 the above crashes the interpreter with the following error: Exception exceptions.SystemError: '../Objects/funcobject.c:128: bad argument to internal function' in 'garbage collection' ignored Fatal Python error: unexpected exception during garbage collection Avbruten (SIGABRT) (core dumped) On Windows XP with Python 2.5, the above code runs without a problem. So maybe this bug is not PyGTK-related. On the other hand, it could be that a fix in Python has exposed a big bug in PyGTK.
Works for me with python 2.4 on Kubuntu: Python 2.4.4 (#2, Feb 16 2007, 16:57:19) [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu1)] on linux2 PyGTK versions is 2.10.4-0ubuntu2
Thanks for taking the time to report this bug. This particular bug has already been reported into our bug tracking system, but we are happy to tell you that the problem has already been fixed. It should be solved in the next software version. You may want to check for a software upgrade. *** This bug has been marked as a duplicate of 375589 ***