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 554064 - uniniti
uniniti
Status: RESOLVED DUPLICATE of bug 96658
Product: pygtk
Classification: Bindings
Component: gtk
2.12.x
Other All
: Normal critical
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2008-09-27 13:28 UTC by Giuliani Vito Ivan
Modified: 2008-09-27 19:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Giuliani Vito Ivan 2008-09-27 13:28:42 UTC
Steps to reproduce:
Consider the following code:

import pygtk
pygtk.require("2.0")
import gtk

class A(gtk.Dialog):
    def __init__(self, *args, **kwargs):
        print self.parent
        super(A, self).__init__(*args, **kwargs)

if __name__ == '__main__':
    A()
    gtk.main()

This causes a segmentation fault when ran (the application doesn't crash if you swap the 'print' statement with 'super').

Stack trace:
Program received signal SIGSEGV, Segmentation fault.

Thread 3084617920 (LWP 8342)

  • #0 _wrap_gtk_widget__get_parent
    at gtk.c line 11704
  • #1 PyObject_GenericGetAttr
  • #2 PyEval_EvalFrameEx
  • #3 PyEval_EvalCodeEx
  • #4 ??
  • #5 ??
  • #6 ??
  • #7 ??


Other information:
Comment 1 Paul Pogonyshev 2008-09-27 19:38:13 UTC
Not a full duplicate, but the cause is the same.

*** This bug has been marked as a duplicate of 96658 ***