[Bug 351524] Re: rhythmbox crashed with SIGSEGV in rb_python_module_load_with_gil()

2009-04-30 Thread Gustavo Carneiro
I have encountered this problem too just now, with an up-to-date jaunty
machine.

After adding some debug messages, I get:

ImportError: could not import gobject (error was: 
'/var/lib/python-support/python2.6/gtk-2.0/glib/_glib.so: undefined symbol: 
Py_InitModule4_64')
Error in sys.excepthook:
Traceback (most recent call last):
  File /usr/lib/python2.6/dist-packages/apport_python_hook.py, line 38, in 
apport_excepthook
from apport.packaging_impl import impl as packaging
  File /usr/lib/python2.6/dist-packages/apport/__init__.py, line 1, in 
module
from apport.report import Report
  File /usr/lib/python2.6/dist-packages/apport/report.py, line 14, in module
import subprocess, tempfile, os.path, urllib, re, pwd, grp, os, sys
  File /usr/lib/python2.6/subprocess.py, line 401, in module
import select
ImportError: No module named select

Original exception was:
ImportError: could not import gobject (error was: 
'/var/lib/python-support/python2.6/gtk-2.0/glib/_glib.so: undefined symbol: 
Py_InitModule4_64')

Rhythmbox-ERROR **: Failed to initialize pygobject
aborting...
Aborted (core dumped)

Someone should be linking to libpython...
 1. Either the pygobject module could link to libpython;
 2. Or, rhythmbox should link to libpython.

Apparently, neither one is linking to libpython, and so python modules
fail to load due to missing symbols.

Attaching patch to make the error more evident (init_pygobject should be
considered deprecated in favor of pygobject_init!).


** Attachment added: p.diff
   http://launchpadlibrarian.net/26175509/p.diff

-- 
rhythmbox crashed with SIGSEGV in rb_python_module_load_with_gil()
https://bugs.launchpad.net/bugs/351524
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 351524] Re: rhythmbox crashed with SIGSEGV in rb_python_module_load_with_gil()

2009-04-30 Thread Gustavo Carneiro
OK, apparently the rhythmbox shell is linking to libpython:

g...@dark-tower:ns-3-dev$ ldd /usr/bin/rhythmbox|grep python
libpython2.6.so.1.0 = /usr/local/lib/libpython2.6.so.1.0 
(0x7f43a477b000)

But there is something wrong:

g...@dark-tower:ns-3-dev$ objdump --dynamic-syms /usr/bin/rhythmbox|grep Py_Init
  DF *UND*    Py_InitModule4_64
  DF *UND*    Py_Initialize

The program binary does not seem to be re-exporting the symbols acquired
from dynamically linked libraries.  My libtool-fu is not good enough to
understand why this is so.  Apparently this is not enough:

rhythmbox_LDFLAGS = -export-dynamic -no-undefined

-- 
rhythmbox crashed with SIGSEGV in rb_python_module_load_with_gil()
https://bugs.launchpad.net/bugs/351524
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 351524] Re: rhythmbox crashed with SIGSEGV in rb_python_module_load_with_gil()

2009-04-30 Thread Gustavo Carneiro
Oops, never mind!  Beginner's mistake, I feel stupid :P

 libpython2.6.so.1.0 = /usr/local/lib/libpython2.6.so.1.0
(0x7f43a477b000)

Removing the rogue python lib from /usr/local takes care of the problem.

-- 
rhythmbox crashed with SIGSEGV in rb_python_module_load_with_gil()
https://bugs.launchpad.net/bugs/351524
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 351524] Re: rhythmbox crashed with SIGSEGV in rb_python_module_load_with_gil()

2009-04-14 Thread Sebastien Bacher
We are closing this bug report as it lacks the information, described in
the previous comments, we need to investigate the problem further.
However, please reopen it if you can give us the missing information and
don't hesitate to submit bug reports in the future.

** Changed in: rhythmbox (Ubuntu)
   Status: Incomplete = Invalid

-- 
rhythmbox crashed with SIGSEGV in rb_python_module_load_with_gil()
https://bugs.launchpad.net/bugs/351524
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 351524] Re: rhythmbox crashed with SIGSEGV in rb_python_module_load_with_gil()

2009-03-30 Thread Pedro Villavicencio
may you upgrade your machine and try again? that's possible the python
2.6 issue (bug 349467)

** Changed in: rhythmbox (Ubuntu)
   Importance: Undecided = Medium

** Changed in: rhythmbox (Ubuntu)
   Status: New = Incomplete

** Changed in: rhythmbox (Ubuntu)
 Assignee: (unassigned) = Ubuntu Desktop Bugs (desktop-bugs)

** Visibility changed to: Public

-- 
rhythmbox crashed with SIGSEGV in rb_python_module_load_with_gil()
https://bugs.launchpad.net/bugs/351524
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs