[Bug 896836] Re: Segmentation fault when asking help() for the list of modules

Piet Delport pjdelport at gmail.com
Thu Jan 26 12:02:22 UTC 2012


There's an apport report and stack trace in LP #921383

To repeat my comment from there: according to the trace, the crash seems
to be happening under this debug print:

#0 __find_specmb (format=0x7f39f1f40732 "%s: assertion `%s' failed") at
printf-parse.h:99

which is triggering unbounded recursion involving the following loop:

...
#10 pygobject_lookup_class (gtype=0) at /build/buildd/pygobject-2-2.28.6/gobject/pygobject.c:894
#11 0x00007f39e88b9032 in pyg_type_get_bases (gtype=0) at /build/buildd/pygobject-2-2.28.6/gobject/pygobject.c:659
#12 0x00007f39e88b90e2 in pygobject_new_with_interfaces (gtype=0) at /build/buildd/pygobject-2-2.28.6/gobject/pygobject.c:702
#13 0x00007f39e88b8fe5 in pygobject_lookup_class (gtype=0) at /build/buildd/pygobject-2-2.28.6/gobject/pygobject.c:913
#14 pygobject_lookup_class (gtype=0) at /build/buildd/pygobject-2-2.28.6/gobject/pygobject.c:894
...


** Also affects: python
   Importance: Undecided
       Status: New

** Also affects: pygtk
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python2.7 in Ubuntu.
https://bugs.launchpad.net/bugs/896836

Title:
  Segmentation fault when asking help() for the list of modules

Status in PyGTK: GTK+ for Python:
  New
Status in Python:
  New
Status in “python2.7” package in Ubuntu:
  Confirmed

Bug description:
  Using Python 2.7.2 on Oneiric (package version is 2.7.2-7ubuntu2), I'm
  getting a consistent segmentation fault when I open the interactive
  help in a Python shell (i.e. typing "help()" in the shell) and then
  ask for the list of modules (by typing "modules").

  The error code returned is as follows:
  Please wait a moment while I gather a list of all available modules...

  /usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
    import gobject._gobject
  /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
    from gtk import _gtk

  ** (python:5116): CRITICAL **: pyg_register_boxed: assertion `boxed_type != 0' failed
  /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: cannot register existing type `GdkDevice'
    from gtk import _gtk
  /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_type_get_qdata: assertion `node != NULL' failed
    from gtk import _gtk
  Segmentation fault

To manage notifications about this bug go to:
https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions




More information about the foundations-bugs mailing list