[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
** Information type changed from Public Security to Public -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
Hi @stephane-guillou, I also do have ubuntu 18.04 and I can't see this issue there. helio@xps13ubuntu:~$ python3 Python 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> help('modules') Please wait a moment while I gather a list of all available modules... pygame 1.9.4 Hello from the pygame community. https://www.pygame.org/contribute.html AptUrl argparseimp runpy CommandNotFound array importlib scanext Crypto asn1crypto inspect sched DistUpgrade ast io scour HweSupportStatusastroid ipaddress secrets LanguageSelectorasynchatisort secretstorage LibAppArmor asyncio itertools select NvidiaDetector asyncorejanitor selectors Onboard atexit jsonselinux PIL audioop jwt setproctitle PyQt5 axi keyring setuptools Quirks base64 keyword shelve SSSDConfig bdb language_support_pkgs shlex UbuntuDrivers binasciilazy_object_proxy shutil UbuntuSystemService binhex lib2to3 signal UpdateManager bisect libfuturize sip Xlibblinker libpasteurize sipconfig __future__ blueman linecache sipconfig_nd6 _astbs4 locale sipdistutils _asynciobsonlogging site _bisect builtinslsb_release sitecustomize _blake2 bz2 lxmlsix _bluemancProfilelzmaslip _bootlocale cairo macaroonbakery smtpd _bz2calendarmacpath smtplib _cffi_backend certifi macurl2path snack _codecs cgi magic snapshot-twitter _codecs_cn cgitb mailbox sndhdr _codecs_hk chardet mailcap socket _codecs_iso2022 chunk makosocketserver _codecs_jp cmath markupsafe softwareproperties _codecs_kr cmd marshal spwd _codecs_tw codemathsqlite3 _collectionscodecs mccabe sre_compile _collections_abccodeop mimetypes sre_constants _compat_pickle collections mmapsre_parse _compressioncolorsysmockssh_import_id _crypt compileall modulefinderssl _csvconcurrent multiprocessing stat _ctypes configparsernaclstatistics _ctypes_testcontextlib netifaces string _curses copynetrc stringprep _curses_panel copyreg nis struct _datetime crypt nntplib subprocess _dbmcryptographyntpath sunau _dbus_bindings csv nturl2path symbol _dbus_glib_bindings ctypes numbers symtable _decimalcupsnumpy sys _dummy_thread cupsext oauthlibsysconfig _elementtreecupshelpers opcode syslog _functools curloperatorsystemd _gdbm curses optparsetabnanny _hashlibdatetimeos tarfile _heapq dbm ossaudiodev telnetlib _impdbusoverlay-texttempfile _io deb822 parser termios _json debconf pasttest _locale debian pathlib textwrap _lsprof debian_bundle pbr this _lzma debianbts pcardextthreading _markupbase debmake pdb time _md5decimal pexpect timeit _multibytecodec decorator pickle tkinter _multiprocessingdefer pickletools token _opcode devscripts picturequality tokenize _operator difflib pip trace _osx_supportdis
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
Still present in Ubuntu 18.04, using the python3.6 prompt in the shell: ``` >>> help('modules') Please wait a moment while I gather a list of all available modules... [ecc] warning: libsecp256k1 library not available, falling back to python-ecdsa WARNING:root:can not import unity GI Namespace Dbusmenu not available /usr/lib/python3/dist-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead. warnings.warn(message, mplDeprecation, stacklevel=1) Segmentation fault ``` No issue when doing the same thing with Python 3.7.1 provided by Anaconda. ** Also affects: python3.6 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
I just applied that change from #24 to usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py Line 40: - import gtk +from gi.repository import Gtk and it fixes (at least) the taskcoach issue. I've seen no side effects to other programs so far, but I did not much testing. But I hope, it'll help someone else. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
Same here as in Post #25 (Xubuntu 18.04 but no beta). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
I started taskcoach in Ubuntu 18.04 beta and I got these errors: 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 /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_type_set_qdata: assertion 'node != NULL' failed from gtk import _gtk /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: cannot register existing type 'GtkWidget' from gtk import _gtk /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed from gtk import _gtk /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: cannot register existing type 'GtkBuildable' from gtk import _gtk /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed from gtk import _gtk /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_once_init_leave: assertion 'result != 0' failed from gtk import _gtk /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_type_register_static: assertion 'parent_type > 0' failed from gtk import _gtk -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
I had to change import gtk to -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
I had to change import gtk to from gi.repository import Gtk sorry for previous comment -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
I came across the same error when running quickly run, after I added import pygtk pygtk.require('2.0') import gtk to my FirstWindow.py (main window) the output: $ quickly run /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: specified class size for type 'PyGtkGenericCellRenderer' is smaller than the parent type's 'GtkCellRenderer' class size 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 in my case command python - help('modules') works Ubuntu 14.04 LTS, Python 2.7.6 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
Ubuntu 12.10 am facing following traceback while using command for displaying list of modules of python. ~$ python Python 2.7.3 (default, Sep 26 2013, 20:08:41) [GCC 4.6.3] on linux2 Type help, copyright, credits or license for more information. help('modules') Please wait a moment while I gather a list of all available modules... matplotlib must be installed in order to use SimplePlot! An error occured setting up the themes: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. An error occured setting up the themes: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. /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:5733): 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 (core dumped) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
** Changed in: python2.7 (Ubuntu) Status: Confirmed = Triaged ** Changed in: python2.7 (Ubuntu) Importance: Undecided = Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
I can confirm that first importing gtk in /usr/bin/pydoc works around `pydoc -k .` crashing. ** Also affects: pygtk (Ubuntu) Importance: Undecided Status: New ** Changed in: pygtk (Ubuntu) Status: New = Triaged ** Changed in: pygtk (Ubuntu) Importance: Undecided = Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
** Information type changed from Public to Public Security -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
In case nobody has noticed it, in ubuntu 12.04.3 LTS, when I first import gtk and then list the modules using help, the segmentation fault does not occur. I suspect it has to do with the static/dynamic nature of the module being visible. See the terminal capture below as evidence: $ python Python 2.7.3 (default, Sep 26 2013, 20:03:06) [GCC 4.6.3] on linux2 Type help, copyright, credits or license for more information. import gtk /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display warnings.warn(str(e), _gtk.Warning) help('modules') Please wait a moment while I gather a list of all available modules... ANSI_codecs_jp formencode profile ArgImagePlugin _codecs_kr fpectl pstats BaseHTTPServer _codecs_tw fpformatpty Bastion _collectionsfractions pwd BdfFontFile _csvftplib pxssh BmpImagePlugin _ctypes functools py_compile BufrStubImagePlugin _ctypes_testfuture_builtins pyclbr CDROM _curses gc pycurl CGIHTTPServer _curses_panel gconf pydoc Canvas _dbus_bindings gdbmpydoc_data CommandNotFound _dbus_glib_bindings gencat pyexpat ConfigParser_elementtreegenericpath pyflakes ContainerIO _functools genevents pygst Cookie _hashlibgenfind pygtk Crypto _heapq gengrep pyinotify CurImagePlugin _hotshotgenlog pynotify DLFCN _imaginggenmessages query404 DcxImagePlugin _imagingcms genmultiquopri Dialog _imagingft genopen random DistUpgrade _imagingmathgenpickle re DocXMLRPCServer _io genqueuereadline EpsImagePlugin _json genreceive realtime404 ExifTags_locale genshutdown receivefrom FSM _lsprof gentracerecvcount FileDialog _multibytecodec getopt redict FitsStubImagePlugin _multiprocessinggetpass repr FixTk _pyio gettext resource FliImagePlugin _random gi retuple FontFile_snack gio rexec Formtools _socket glibrfc822 FpxImagePlugin _sqlite3globrlcompleter GMenuSimpleEditor _sregmenu robotparser GbrImagePlugin _sslgnomekeyringrobots GdImageFile _strptime gobject runpy GifImagePlugin _struct google runservers GifImagePluginH _symtable grp sched GimpGradientFile_testcapi gst screen GimpPaletteFile _threading_localgstoption select GnuPGInterface _warnings gtk sendto GribStubImagePlugin _weakrefgtkunixprintserial HTMLParser _weakrefset gtweak sets HTMLcalendarabc gzipsetuptools HTMLcolors aifchashlib sgmllib HTMLgen antigravity heapq sha HTMLutilanydbm hmacshelve Hdf5StubImagePlugin apachelog hosts shlex IN apparmorhotshot shutdownevt IcnsImagePlugin apport html5libshutdownsignal IcoImagePlugin apport_python_hook htmlentitydefs shutil ImImagePlugin apt htmllib signal Image apt_insthttplib simplejson ImageChops apt_pkg httplib2site ImageCmsaptdaemon ihooks sitecustomize ImageColor aptsources imaplib smart ImageDraw argparseimghdr smbc ImageDraw2 array imgsize smtpd ImageEnhanceast imp smtplib ImageFile asynchatimportlib snack ImageFileH asyncoreimputil sndhdr ImageFileIO atexit inspect socket ImageFilter atk invest softwareproperties ImageFont audiodevio spwd ImageGL audioop itertools sqlite3 ImageGrab axi json
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
Ubuntu 12.04.3 LTS python Python 2.7.3 (default, Sep 26 2013, 20:08:41) [GCC 4.6.3] on linux2 Type help, copyright, credits or license for more information. help() Welcome to Python 2.7! This is the online help utility. If this is your first time using Python, you should definitely check out the tutorial on the Internet at http://docs.python.org/tutorial/. Enter the name of any module, keyword, or topic to get help on writing Python programs and using Python modules. To quit this help utility and return to the interpreter, just type quit. To get a list of available modules, keywords, or topics, type modules, keywords, or topics. Each module also comes with a one-line summary of what it does; to list the modules whose summaries contain a given word such as spam, type modules spam. help modules 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:12949): 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 (core dumped) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
Ubuntu 12.04.2 LTS python Python 2.7.3 (default, Apr 10 2013, 06:20:15) [GCC 4.6.3] on linux2 Type help, copyright, credits or license for more information. help('modules') 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: specified class size for type `PyGtkGenericCellRenderer' is smaller than the parent type's `GtkCellRenderer' class size 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 (core dumped) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
I am also affected by this same problem. My Ubuntu One has stopped working when I upgraded from 11.10 to 12.04. Let me know if there are any work arounds. $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=12.04 DISTRIB_CODENAME=precise DISTRIB_DESCRIPTION=Ubuntu 12.04.2 LTS $ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
** Also affects: python Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
12.04.01 the same problem help('modules') 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:23511): 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 (core dumped) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
On precise we hit this with gtk and osk (part of Onboard.) Manually importing gtk causes the segfault to go away, but nothing happens. The segfault can also be reproduced by: $ python Python 2.7.3 (default, Aug 1 2012, 05:14:39) [GCC 4.6.3] on linux2 Type help, copyright, credits or license for more information. from Onboard import osk import gtk /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:24631): 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 (core dumped) So, importing gtk after osk from Onboard causes a segfault. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
@12, that's not a valid fix, it breaks other things (in my case, causes systemd.py to crash with a SyntaxError) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
As someone in a prior bug-report discovered that uncommenting line 27 in dist-packages/gobject/constants.py cures the crash. Actually that line makes no sense as a python statement, but just listing the variable name TYPE_INVALID, without assigning any value in constants.py (which the comment there states is defined in gobjectmodule.c) eliminates the crash. This would seem to discredit the theory that simultaneous loading of static and dynamic bindings is to blame. Does the variable NEED to be declared in the python even if it's value is assinge in a .c file in order to work ? I'm not knowledgable about the inner workings of the python language. Is this a valid fix? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
I can confirm this bug on 12.10 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
** Project changed: python = obsolete-junk ** No longer affects: obsolete-junk -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
The simplest combination of modules I can find that causes the segfault (presumably due to the mixture of static and dynamic bindings for the gtk module described above) is: python -c 'import Onboard; import gtk ' /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:42: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed from gtk import _gtk ** (python:7386): CRITICAL **: pyg_register_boxed: assertion `boxed_type != 0' failed /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:42: Warning: cannot register existing type `GdkDevice' from gtk import _gtk /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:42: Warning: g_type_get_qdata: assertion `node != NULL' failed from gtk import _gtk zsh: segmentation fault python -c 'import Onboard; import gtk ' After removing the 'onboard' package, pydoc -k will get much further through the list of packages when searching, but now eventually hangs for me. strace shows it seems to be a race condition on a futex in atk: stat(libgdk-3.so.0.la, 0x7fffe38aff70) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, /usr/lib/girepository-1.0, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 5 getdents(5, /* 98 entries */, 32768)= 4152 open(/usr/lib/girepository-1.0/Atk-1.0.typelib, O_RDONLY) = 14 fstat(14, {st_mode=S_IFREG|0644, st_size=63688, ...}) = 0 mmap(NULL, 63688, PROT_READ, MAP_PRIVATE, 14, 0) = 0x7f23dabdf000 close(14) = 0 getdents(5, /* 0 entries */, 32768) = 0 close(5)= 0 munmap(0x7f23dabdf000, 63688) = 0 stat(/usr/lib/python2.7/dist-packages/gi/overrides/Atk, 0x7fffe38a9120) = -1 ENOENT (No such file or directory) open(/usr/lib/python2.7/dist-packages/gi/overrides/Atk.so, O_RDONLY) = -1 ENOENT (No such file or directory) open(/usr/lib/python2.7/dist-packages/gi/overrides/Atkmodule.so, O_RDONLY) = -1 ENOENT (No such file or directory) open(/usr/lib/python2.7/dist-packages/gi/overrides/Atk.py, O_RDONLY) = -1 ENOENT (No such file or directory) open(/usr/lib/python2.7/dist-packages/gi/overrides/Atk.pyc, O_RDONLY) = -1 ENOENT (No such file or directory) stat(libatk-1.0.so.0, 0x7fffe38aded0) = -1 ENOENT (No such file or directory) stat(libatk-1.0.so.0.so, 0x7fffe38aded0) = -1 ENOENT (No such file or directory) stat(libatk-1.0.so.0.la, 0x7fffe38aded0) = -1 ENOENT (No such file or directory) futex(0x171de84, FUTEX_WAIT_PRIVATE, 1, NULL -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
** Tags added: oneiric precise -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
It seems like ack's comment points the finger at the help() function within ipython. Has anyone tried to modify it so it doesn't simultaneously load modules with static and dynamic links to _gtk? Or is the problem in _gtk that it can't handle the simultaneous static and dynamic linking? Anyone working this? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
The following blog post clearly describes the problem http://blog.rabbitvcs.org/archives/312 To verify that you can simply logout, alt+f1 to drop to text console, login and repeat the pydoc command. This time it will work with the following warning message. (python2.7:13084): Gdk-WARNING **: cannot open display: pydoc - Generate Python documentation in HTML or text for interactive use. pydoc_data pydoc_data.topics -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
I have encountered this same bug in precise as well. Same error message ending with segmentation fault. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
This is regarding bug #896836: 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). A somewhat verbose trace seems to indicate that the culprit is atk.so i.e.: === import gtk # directory /usr/lib/python2.7/dist-packages/gtk-2.0/gtk # /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.pyc matches /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py import gtk # precompiled from /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.pyc dlopen(/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/_gtk.so, 2); dlopen(/usr/lib/python2.7/dist-packages/gtk-2.0/pango.so, 2); import pango # dynamically loaded from /usr/lib/python2.7/dist-packages/gtk-2.0/pango.so dlopen(/usr/lib/python2.7/dist-packages/gtk-2.0/atk.so, 2); import atk # dynamically loaded from /usr/lib/python2.7/dist-packages/gtk-2.0/atk.so Segmentation fault Not sure where to look for a fix for this bug #896836 filed by onesandzeroes way back on 2011-11-27. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
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 0x7f39e88b9032 in pyg_type_get_bases (gtype=0) at /build/buildd/pygobject-2-2.28.6/gobject/pygobject.c:659 #12 0x7f39e88b90e2 in pygobject_new_with_interfaces (gtype=0) at /build/buildd/pygobject-2-2.28.6/gobject/pygobject.c:702 #13 0x7f39e88b8fe5 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 Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
I get exactly the same segmentation fault described above on Ubuntu 11.10 using python 2.7. Does anyone have a solution? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
After installing matplotlib from the default oneiric repos, I was also getting the exact error in Bug Description above while executing help() modules. Also I was unable to 'import gtk'. Installing gtk2-engines- pixbuf changed the above error to this: python2.7.2 import gtk help() modules /usr/lib/python2.7/dist-packages/Onboard/__init__.py:2: Warning: cannot register existing type `GdkDisplayManager' import osk /usr/lib/python2.7/dist-packages/Onboard/__init__.py:2: Warning: g_once_init_leave: assertion `initialization_value != 0' failed import osk /usr/lib/python2.7/dist-packages/Onboard/__init__.py:2: Warning: g_type_register_static: assertion `parent_type 0' failed import osk /usr/lib/python2.7/dist-packages/Onboard/__init__.py:2: Warning: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed import osk hung process FWIW -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
I get the same error on Ubuntu 11.10. Listing topics or keywords works without problems though. ** Changed in: python2.7 (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
From Googling around, this looks to me quite similar to the problem described here: http://blog.rabbitvcs.org/archives/312 The author points to the cause of a mixture of modules with both static and dynamic gtk bindings being active at the same time. Because `help()` (and pydoc for that matter) iterate over all modules, actually importing them to get at the documentation, I believe that this causes a similar incompatible mixture of 'active' modules to occur. Can anyone confirm that this is actually the case? -ack -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/896836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs