Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64499 - xmms (mp3's only) segfault
Summary: xmms (mp3's only) segfault
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-18 03:32 UTC by Olliver Schinagl
Modified: 2004-09-22 02:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olliver Schinagl 2004-09-18 03:32:22 UTC
I just rebuilt my entire system (after upgrading to 2.6 headers and latest glibc and now xmms's libmp123 seems broken. I can play/stream ogg, play wav.
Strangly http://www.smgradio.com/core/audio/mp3/live.pls?service=vrbb somewhat works. They have a 3 track playlist. High quality, low quality fallback and a 'problem.mp3' stream that plays when there seems to be an issue and segfaults.
I can play local mp3's with gmplayer fine. The same local mp3 crashes xmms.
xmms does play for a second or two before crashing.

annika ~ # emerge info
Portage 2.0.51_rc1 (default-x86-2004.2, gcc-3.4.1, glibc-2.3.4.20040916-r0, 2.6.8-gentoo-r4 i686)
=================================================================
System uname: 2.6.8-gentoo-r4 i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium-m -mtune=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/li         b/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium-m -mtune=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/             http://ftp.snt.utwente.nl/pub/os/li         nux/gentoo/             ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/           ftp://ftp.wh2.tu-dr         esden.de/pub/mirrors/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi aim alsa apache2 apm audiofile avi bcmath bindist bitmap-fonts bzlib calendar cdr cross          crypt ctype cups curl curlwrappers dga dio dvb dvd encode exif fastcgi fbcon fftw flac foomatic fo         omaticdb ftp gd gif gnutls gphoto2 gstreamer gtk gtk2 icq imap imlib imlib2 ipv6 jabber jpeg kerber         os lesstif libwww lirc maildir memlimit mhash mikmod mime mmap mmx mng mozilla ncurses nocd notheme         s odbc oggvorbis openal opengl oscar pam png posix postgres ppds quicktime readline scanner sdl sha         red sharedmem simplexml slang slp snmp sockets speex spell sse ssl svg tcpd theora tidy tiff tokeni         zer truetype unicode usb videos wmf x86 xinerama xml2 xmms xosd xpm xprint xv xvid yahoo zlib"
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2004-09-18 11:28:09 UTC
do you have xmms-mad installed?  Can youu try disabling it if you do?

Can you try re-emerging xmms with:

CFLAGS="-O2 -fomit-frame-pointer -pipe"
Comment 2 Olliver Schinagl 2004-09-18 11:59:13 UTC
Nope, no xmms-mad

Will try to re-merge with less agressive optimizations.

I see I do need to rephraze a line in my original post.

High quality, low quality fallback and a 'problem.mp3' stream that plays when there seems to be an issue with the feed. The live streams wor fine, the problem mp3 segfaults. Along with every other mp3/stream I tried to play.
Comment 3 Olliver Schinagl 2004-09-18 15:18:27 UTC
no options works
-O3 -march pentium-m -mtune pentium-m fails
-02 -march pentium-m -mtune pentium-m fails
-03 -march pentium3 -mtune pentium3 fails
-02 -march pentium3 -mtune pentium3 fails
-03 -march i386 -mtune i386 fails
-02 -march i385 -mtune i386 fails
-03 fails
-02 fails
-march i386 -mtune i386 fails
-O0 -march i386 -mtune i386 fails

The thing is, after trying all of the above, 'no' optimizations doesn't work anymore either. I'll try rebooting and compiling unoptimized again and see if that'll get it working at all.
Comment 4 Olliver Schinagl 2004-09-18 15:27:27 UTC
rebooted, compiled without optimization options, works.
I'll try going up from here.
first i386 O0, then next up.

Strange this is however in anycase. I don't think I would have to reboot to fix something like this.
I don't think it's the audio driver, as ogg and wav's keep working.
Comment 5 Olliver Schinagl 2004-09-18 15:53:42 UTC
Rebooted and compiled with -O3 march p3 mtune p3, worked flawless. Compiled with O3 p-m, no go, as before.
It appears to me that once you run the pentium-m binary it locks the cpu or some registers of the cpu (sse2?) that it'll crash from there on.
So i'll still with -O3 -march=pentium3 -mtune=pentium3 for now. Wether this is gcc or libmpg123 is unclear to me. libmpg123 is based on mpg123 and that apears to be working with my standard make.conf (p-m O3). Didn't go through the ebuild however to see if it would check the arch and re-set it.

As for the xmms ebuild I think, if reproducable by others of course, the safest bet is to change the march and mtune/mcpu to pentium3 if pentium-m is set in the enviroment until the code of either gcc or libmpg123 is fixed.
Comment 6 Olliver Schinagl 2004-09-18 16:41:20 UTC
So I just tried Beep Mediaplayer. Seem result. so it's deffinatly libmpg123.
However xmms did play after a crashing bmp. (xmms was with p3 compiled) So it misteriously unlocked my CPU again.

So this bug goes for BMP aswell as xmms.
Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2004-09-22 02:11:30 UTC
It's a known issue with gcc-3.4.x and sse2.  There's not much I can do, but I recommend placing -fno-sse2 in your CFLAGS to fix this problem until gcc-3.4 has been fixed.