Python 2.7 help seg faults How to fix corruprion?

Asked by bsalem

In ipython using python 2,7 an effort to get melp on modules fails with seg fault. How can I find module corruption and remove
or replace corrupt code?

brucesalem :~
$ ipython
Python 2.7.3 (default, Feb 27 2014, 20:00:17)
Type "copyright", "credits" or "license" for more information.

IPython 0.12.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
# errors removed [...]
In [4]: 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...

music21: Certain music21 functions might need these optional packages: matplotlib, scipy; if you run into errors, install it by following the instructions at http://mit.edu/music21/doc/html/installAdditional.html
/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:16984): 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)
brucesalem :~
$ ubuntu_release
LSB Version: core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch
Distributor ID: Ubuntu
Description: Ubuntu 12.04.4 LTS
Release: 12.04
Codename: precise
brucesalem :~
$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu ipython Edit question
Assignee:
No assignee Edit question
Solved by:
bsalem
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1
Revision history for this message
bsalem (bruce-euphon) said :
#2

Thank You, I am subscribed to the bug.

On Wed, Mar 12, 2014 at 7:12 AM, Manfred Hampl <
<email address hidden>> wrote:

> Your question #245345 on ipython in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/ipython/+question/245345
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> Seems to be
> https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/896836
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/ipython/+question/245345/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/ipython/+question/245345
>
> You received this question notification because you asked the question.
>

Revision history for this message
bsalem (bruce-euphon) said :
#3

I seem to have the problem described in the bug, that answers the question,
but one of the proposed work arounds, to do import gtk then do help() and
modules hangs python 2.7, no seg fault. I think that is described in the
bug report, so yes I am still having a problem. I think that the question
has been answered and that I have subscribed to the bug. My guess is that
the question can be closed.

On Wed, Mar 12, 2014 at 8:51 AM, bsalem <
<email address hidden>> wrote:

> Your question #245345 on ipython in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/ipython/+question/245345
>
> Status: Answered => Open
>
> You are still having a problem:
> Thank You, I am subscribed to the bug.
>
>
> On Wed, Mar 12, 2014 at 7:12 AM, Manfred Hampl <
> <email address hidden>> wrote:
>
> > Your question #245345 on ipython in Ubuntu changed:
> > https://answers.launchpad.net/ubuntu/+source/ipython/+question/245345
> >
> > Status: Open => Answered
> >
> > Manfred Hampl proposed the following answer:
> > Seems to be
> > https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/896836
> >
> > --
> > If this answers your question, please go to the following page to let us
> > know that it is solved:
> >
> >
> https://answers.launchpad.net/ubuntu/+source/ipython/+question/245345/+confirm?answer_id=0
> >
> > If you still need help, you can reply to this email or go to the
> > following page to enter your feedback:
> > https://answers.launchpad.net/ubuntu/+source/ipython/+question/245345
> >
> > You received this question notification because you asked the question.
> >
>
> --
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

Please note that the only person to close the question is the person who created the question - yourself.
To do so you can either open the respective link in the email that you receive, or by browsing to https://answers.launchpad.net/ubuntu/+source/ipython/+question/245345 and pressing the respective button.

Revision history for this message
bsalem (bruce-euphon) said :
#5

There is already a pending bug