[exaile/gutsy] crash in lib gtkembedmoz

Bug #123409 reported by Fabien Tassin
128
Affects Status Importance Assigned to Milestone
Exaile
Invalid
High
Adam Olsen
exaile (Fedora)
Fix Released
Low
exaile (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: exaile

Freshly updated Gutsy, new exaile crashes when trying to display lyrics.

Under gdb, with firefox-dbg installed:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210259248 (LWP 12590)]
0xb6c51034 in EmbedPrivate::Realize (this=0x9f0b798, aAlreadyRealized=0xbfa4b0e8) at EmbedPrivate.cpp:257
257 EmbedPrivate.cpp: No such file or directory.
        in EmbedPrivate.cpp
Current language: auto; currently c++
(gdb) bt
#0 0xb6c51034 in EmbedPrivate::Realize (this=0x9f0b798, aAlreadyRealized=0xbfa4b0e8) at EmbedPrivate.cpp:257
#1 0xb6c4fa3b in gtk_moz_embed_realize (widget=0xa4fe018) at gtkmozembed2.cpp:606
#2 0xb7cbe179 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0
#3 0xb7caef59 in ?? () from /usr/lib/libgobject-2.0.so.0
#4 0x083ec660 in ?? ()
#5 0x00000000 in ?? ()
(gdb)

Steps to reproduce:

- start exaile
- put a song in the active playlist
- right click on that song
- in the menu, select "Information", a new tab appears
- select the new "Information" tab, the sub-tab "Statistics" is selected
- select any other sub-tab (Artist, lyrics..), it crashes.

100% reproducible.

the wrapper exports LD_LIBRARY_PATH with the correct value (/usr/lib/firefox)

This is with:
exaile 0.2.10+debian-1ubuntu1
firefox 2.0.0.4+2-0ubuntu2
libglib2.0-0 2.13.5-0ubuntu3
python-gnome2-extras 2.19.1-0ubuntu1
python-gobject 2.13.1-0ubuntu3
python 2.5.1-1ubuntu2

(same crash with firefox-granparadiso)

(I've also tried upstream 0.2.10 and svn r2634 a few days ago. Same crash.
Most recent SVNs (like r2672) have another problem preventing to go up to that point.)

Tags: mozilla

Related branches

Revision history for this message
Scott Kitterman (kitterman) wrote :

In that case, I'd suggest filing a bug with the upstream and linking it here when you've done so.

Revision history for this message
Fabien Tassin (fta) wrote :

isn't launchpad capable of doing so ?

Revision history for this message
Scott Kitterman (kitterman) wrote :

Only for projects that are also hosted in Launchpad, which it appears exaile is not.

What Launchpad can do is create a link to an existing (in this case reported by you) bug in the upstream bug tracker, you just need to feed it a url, and then keep status of the upstream bug current in LP as it changes.

Revision history for this message
Fabien Tassin (fta) wrote :

In that case, I don't see the point of using launchpad at all as I always have to explain everything twice. LP has no added value for that kind of project (same for most of gnome). I'd better stick to upstream bug systems.

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 123409] Re: [exaile/gutsy] crash in lib gtkembedmoz

As long as you are certain you know which errors are Ubuntu specific and
which are Debian's or upstream's then there is no great harm in that. In
the case since the bug is in LP, please link the upstream bug when you file
it.

Revision history for this message
Fabien Tassin (fta) wrote :

I think it's ubuntu specific.
I have the exact same crash with 'listen' (another audio player) while doing similar action. Exact same gdb stack.

So it may not be exaile's or listen's fault. Maybe it's firefox, maybe gobject, maybe something else.
I've provided as much details as I could think of. I'm no good at debugging python so if someone wants me to try something to move forward, I'm all hears.

Revision history for this message
diegoe (diegoe-deactivatedaccount-deactivatedaccount) wrote :

I can confirm it happens with a simple script like this:

import gtk
import gtkmozembed

class TinyGecko:
    def __init__(self):
        self.moz = gtkmozembed.MozEmbed()
        self.moz.load_url('about:plugins')

        win = gtk.Window()
        win.add(self.moz)
        win.show_all()

if __name__ == '__main__':
  TinyGecko()
  gtk.main()

Revision history for this message
Fabien Tassin (fta) wrote :

Same here. From what I can see, python/gtkmozembed tries to read firefox files from the user home dir, which is wrong.
Ex: it tries to use the components dir in ~/components/ instead of /usr/lib/firefox/components.

Revision history for this message
Fabien Tassin (fta) wrote :

Seems related to bug #22487

Revision history for this message
Fabien Tassin (fta) wrote :

setting both LD_LIBRARY_PATH=/usr/lib/firefox *and* MOZILLA_FIVE_HOME=/usr/lib/firefox before starting python fixed it.

fta@ix:~$ LD_LIBRARY_PATH=/usr/lib/firefox python /tmp/foo
Segmentation fault (core dumped)
fta@ix:~$ MOZILLA_FIVE_HOME=/usr/lib/firefox python /tmp/foo
Segmentation fault (core dumped)
fta@ix:~$ MOZILLA_FIVE_HOME=/usr/lib/firefox LD_LIBRARY_PATH=/usr/lib/firefox python /tmp/foo
LoadPlugin: failed to initialize shared library libXt.so [libXt.so: cannot open shared object file: No such file or directory]
LoadPlugin: failed to initialize shared library libXext.so [libXext.so: cannot open shared object file: No such file or directory]
LoadPlugin: failed to initialize shared library /usr/lib/jvm/java-6-sun-1.6.0.02/jre/plugin/i386/ns7/libjavaplugin_oji.so [/usr/lib/jvm/java-6-sun-1.6.0.02/jre/plugin/i386/ns7/libjavaplugin_oji.so: undefined symbol: _ZTVN10__cxxabiv121__vmi_class_type_infoE]

Revision history for this message
Cruster (panoskoutsias) wrote :

I had the same problem (there is another bug submission here: https://bugs.launchpad.net/ubuntu/+source/python2.5/+bug/148370) and starting exaile with |MOZILLA_FIVE_HOME=/usr/lib/firefox LD_LIBRARY_PATH=/usr/lib/firefox exaile" seems to work fine

Revision history for this message
Johannes Sasongko (sjohannes) wrote :

I have no idea how to link this to bug #136202, but it's marked fixed upstream.

Revision history for this message
Fabien Tassin (fta) wrote :

Attached the fix against exaile 0.2.10+debian-1.1ubuntu1

Changed in exaile:
status: New → Confirmed
Revision history for this message
Johannes Sasongko (sjohannes) wrote :

Note that the patch is incomplete and does not modify the makefile.

Changed in exaile:
assignee: nobody → arolsen
importance: Undecided → High
status: New → Fix Committed
Revision history for this message
Fabien Tassin (fta) wrote :

oops, it was complete in my local tree.

Revision history for this message
Andrea Veri (av) wrote :

Uploaded. Now will need a release manager ack before having it published inside the archive. Thanks to everyone for reporting this issue, I can say "it has been fixed" now.

Revision history for this message
Andrea Veri (av) wrote :

exaile (0.2.10+debian-1.1ubuntu2) gutsy; urgency=low

  * 03_gtkembedmoz_crash_fix: added to fix a crash related to lib gtkembedmoz
    when trying to display any sub-tab like Artist/lyrics using the
    latest exaile release. Steps to reproduce it can be found on the bug report.
    Thanks to Fabien Tassin for reporting and fixing this issue. (LP: #123409)

 -- Andrea Veri <email address hidden> Sun, 14 Oct 2007 21:15:49 +0200

Changed in exaile:
status: Confirmed → Fix Released
Changed in exaile:
status: Fix Committed → Fix Released
Revision history for this message
Fabien Tassin (fta) wrote :

The root cause of this is bug 157126, ie empty --with-default-mozilla-five-home passed to firefox configure.
It's getting fixed by the mozilla team.

Revision history for this message
Johannes Sasongko (sjohannes) wrote :

Marking this invalid in Exaile; I didn't know this was an Ubuntu- (and Debian-?) specific bug, and that the "fix" breaks other distros that correctly specifies the default MOZILLA_FIVE_HOME (bug 162430). I might re-break this upstream, but I'll wait a while to give bug 157126 some time to get fixed.

Changed in exaile:
status: Fix Released → Invalid
Revision history for this message
Fabien Tassin (fta) wrote :

FYI, bug 157126 is fixed in Hardy starting to 2.0.0.8+2nobinonly-0ubuntu2.
Gutsy will be updated with the next security upload.

Revision history for this message
In , jptavan (jptavan-redhat-bugs) wrote :

Description of problem:
Exaile 0.2.11 crash when selecting sub-tab (Artist, lyrics..)

How reproducible:
Always

Steps to Reproduce:
- start exaile
- put a song in the active playlist
- right click on that song
- in the menu, select "Information", a new tab appears
- select the new "Information" tab, the sub-tab "Statistics" is selected
- select any other sub-tab (Artist, lyrics..), it crashes.

Additional info:
Same problem here : https://bugs.launchpad.net/ubuntu/+source/exaile/+bug/123409

Revision history for this message
In , jptavan (jptavan-redhat-bugs) wrote :

Created attachment 261681
bug buddy info

Revision history for this message
In , Deji (deji-redhat-bugs) wrote :

It needs to be rebuilt against new firefox i guess. What the output of 'cat
/usr/bin/exaile' on your system, and what version of firefox are currently running?

Revision history for this message
In , jptavan (jptavan-redhat-bugs) wrote :

cat /usr/bin/exaile :
#!/bin/sh
 cd /usr/share/exaile
 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/firefox-2.0.0.6
 export MOZILLA_FIVE_HOME=/usr/lib/firefox-2.0.0.6
 exec python /usr/lib/exaile/exaile.py "$@"

Firefox version :
firefox - 2.0.0.9-1.fc8.i386

Revision history for this message
In , Deji (deji-redhat-bugs) wrote :

Can you please download this rebuilt package and confirm if it fix the issue;
http://koji.fedoraproject.org/koji/getfile?taskID=245139&name=exaile-0.2.11-2.fc8.i386.rpm

Thanks

Revision history for this message
In , jptavan (jptavan-redhat-bugs) wrote :

I confirm it fix the issue : selecting sub-tab work as expected now.

Thank you

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

exaile-0.2.11-2.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with
 su -c 'yum --enablerepo=updates-testing update exaile'

Revision history for this message
In , Jakub (jakub-redhat-bugs) wrote :

Everytime new Firefox arrives Liferea and Yelp were rebuilt.
Add Exaile and Miro to this list.

Handmade symlinks or configuration are not well known ;) .

Changed in exaile:
status: Unknown → Confirmed
Changed in exaile:
status: Confirmed → Fix Released
Changed in exaile (Fedora):
importance: Unknown → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.