After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 406485 - Core dump when blocking signals
Core dump when blocking signals
Status: RESOLVED DUPLICATE of bug 375589
Product: pygobject
Classification: Bindings
Component: gobject
unspecified
Other Linux
: Normal critical
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2007-02-10 19:41 UTC by Björn Lindqvist
Modified: 2007-04-06 20:44 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description Björn Lindqvist 2007-02-10 19:41:41 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.
Comment 1 Jakub Stachowski 2007-03-07 17:58:13 UTC
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
Comment 2 Johan (not receiving bugmail) Dahlin 2007-04-06 20:44:57 UTC
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 ***