Certain ID3 tags can crash xmms when xmms-scrobbler is enabled.

Bug #34249 reported by ɞєᾐ ἂ.
8
Affects Status Importance Assigned to Milestone
xmms-scrobbler (Debian)
Fix Released
Unknown
xmms-scrobbler (Ubuntu)
Fix Released
Medium
MOTU

Bug Description

Certain MP3 files with ID3 tags can segfault the xmms-scrobbler plugin, bringing xmms down with it. Stripping the ID3 tags from the file avoids the crash. But when a large playlist is loaded and xmms is set to shuffle, it can be hard to determine which specific file caused the crash so that its tags may be stripped.

I'm attaching an MP3 file that triggers the crash for testing. I can provide the strace output, too, if requested.

Revision history for this message
ɞєᾐ ἂ. (talkingwires) wrote : Sample MP3 File

This MP3 file can reproduce the crash 100% of the time on my machine. The crash seems to occur when xmms-scrobber tries to read the ID3 tags and send the information to Last.FM's servers.

description: updated
Changed in xmms-scrobbler:
assignee: nobody → motumedia
Changed in xmms-scrobbler:
assignee: motumedia → motu
Revision history for this message
Daniel T Chen (crimsun) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Sat, 26 Aug 2006 15:24:18 -0400
Source: xmms-scrobbler
Binary: xmms-scrobbler beep-media-player-scrobbler
Architecture: source
Version: 0.3.8.1-4ubuntu1
Distribution: edgy
Urgency: low
Maintainer: Brett Parker <email address hidden>
Changed-By: Daniel T Chen <email address hidden>
Description:
 beep-media-player-scrobbler - Beep plugin to send track information to audioscr
obbler
 xmms-scrobbler - XMMS plugin that sends your track information to audioscrobble
r
Changes:
 xmms-scrobbler (0.3.8.1-4ubuntu1) edgy; urgency=low
 .
   * Apply patches from Debian #292930 fixing crashes with ID3v2 tags
     and locking issues.
   * Apply patch from Debian #372954 fixing further crashes with ID3v2
     tags (Closes Ubuntu: #34249).
   * Apply patch from Debian #369567 fixing CFLAGS being ignored.
   * Apply patch from Debian #372623 fixing data submissions from the
     wrong XMMS session.
Files:
 25a5c8868f9de2fd1e4b41aeff61577c 761 sound optional xmms-scrobbler_0.3.8.1-4ubu
ntu1.dsc
 18e09eac595e0a2f6a4a8208f9c412d7 5183 sound optional xmms-scrobbler_0.3.8.1-4ub
untu1.diff.gz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFE8Knle9GwFciKvaMRAuP9AJwNOXW9cq+QRFknJ+N3STsHPqi2hwCgtUTM
JPMTdui+uWZ/5btoHXqtFws=
=Ad3g
-----END PGP SIGNATURE-----

Changed in xmms-scrobbler:
status: Unconfirmed → Fix Committed
Daniel T Chen (crimsun)
Changed in xmms-scrobbler:
status: Fix Committed → Fix Released
Changed in xmms-scrobbler:
status: Unknown → Unconfirmed
Revision history for this message
Pedro Ângelo (pangelo) wrote :

The mp3 file at http://www.paniq.org/audio/download/482 makes xmms scrobbler crash. I think it might be related to this bug.

If I run xmms under gdb I get the following stack trace:

[...]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1239241824 (LWP 27394)]
0xb6efc40d in wchar_to_utf8 () from /usr/lib/xmms/General/libxmms_scrobbler.so
(gdb) where
#0 0xb6efc40d in wchar_to_utf8 ()
   from /usr/lib/xmms/General/libxmms_scrobbler.so
#1 0xb6efc794 in utf16bom_to_utf8 ()
   from /usr/lib/xmms/General/libxmms_scrobbler.so
#2 0xb6eff903 in readID3v2 () from /usr/lib/xmms/General/libxmms_scrobbler.so
#3 0xb6efc325 in get_tag_data ()
   from /usr/lib/xmms/General/libxmms_scrobbler.so
#4 0xb6ef9433 in get_gplugin_info ()
   from /usr/lib/xmms/General/libxmms_scrobbler.so
#5 0xb7d92504 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#6 0xb7c1d51e in clone () from /lib/tls/i686/cmov/libc.so.6

Revision history for this message
Pedro Ângelo (pangelo) wrote :

This quick and dirty patch fixes this for me. Might not be the best solution though...

Revision history for this message
Johan H. (tutor-challenge) wrote :

I'm using xmms-scrobbler (0.3.8.1-4ubuntu1) and xmms crashes when playing certain songs, such as this one: http://www.paniq.org/audio/download/482

gdb outputs:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1243751520 (LWP 25893)]
0xb6c6640d in wchar_to_utf8 () from /usr/lib/xmms/General/libxmms_scrobbler.so
(gdb) where
#0 0xb6c6640d in wchar_to_utf8 () from /usr/lib/xmms/General/libxmms_scrobbler.so
#1 0xb6c66794 in utf16bom_to_utf8 () from /usr/lib/xmms/General/libxmms_scrobbler.so
#2 0xb6c69903 in readID3v2 () from /usr/lib/xmms/General/libxmms_scrobbler.so
#3 0xb6c66325 in get_tag_data () from /usr/lib/xmms/General/libxmms_scrobbler.so
#4 0xb6c63433 in get_gplugin_info () from /usr/lib/xmms/General/libxmms_scrobbler.so
#5 0xb7d93504 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#6 0xb7c1e51e in clone () from /lib/tls/i686/cmov/libc.so.6

Correct me if I'm wrong, but it seems to me that this bug is still alive. Unless I've missed something? Do I still have to apply a patch?

Revision history for this message
Pedro Ângelo (pangelo) wrote :

AFAIK the patch hasn't been applied to the ubuntu package (which is all for the best, since it was just a quick fix without any regard for correctness).

The patch fixed the crash and I've used the patched xmms-scrobbler since last november up to last week without a hitch. You have to know how to patch and compile Ubuntu source packages to use it, and you have to either modify the package version or put a hold on the package to keep apt-get from downgrading the package every time you make an update.

Meanwhile I've move on from xmms to audacious under feisty. Might be a good alternative.

Changed in xmms-scrobbler:
status: Unconfirmed → Fix Released
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.