[Touch-packages] [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 Touch seeded packages, 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: New Status in Python: New Status in pygtk package in Ubuntu: Triaged Status in python2.7 package in Ubuntu: Triaged Status in python3.6 package in Ubuntu: New 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 -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [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 pipes
[Touch-packages] [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 Touch seeded packages, 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: New Status in Python: New Status in pygtk package in Ubuntu: Triaged Status in python2.7 package in Ubuntu: Triaged Status in python3.6 package in Ubuntu: New 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 -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [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 Touch seeded packages, 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: New Status in Python: New Status in pygtk package in Ubuntu: Triaged Status in python2.7 package in Ubuntu: Triaged 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 -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [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 Touch seeded packages, 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: New Status in Python: New Status in pygtk package in Ubuntu: Triaged Status in python2.7 package in Ubuntu: Triaged 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 -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [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 Touch seeded packages, 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: New Status in Python: New Status in pygtk package in Ubuntu: Triaged Status in python2.7 package in Ubuntu: Triaged 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 -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp