Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86066 - beep-media-player crashes while playing over Alsa
Summary: beep-media-player crashes while playing over Alsa
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-20 15:05 UTC by Stefan de Konink
Modified: 2005-04-03 06:11 UTC (History)
5 users (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 Stefan de Konink 2005-03-20 15:05:57 UTC
My current beep-media-player-0.9.7-r4 refuses to play a song via alsa resulting in a segv.

Reproducible: Sometimes
Steps to Reproduce:
Start BMP, start song. I don't know for sure if this is a BMP problem cause on my laptop, other soundchipset though, the problem doesn't occur.
Actual Results:  
write(4, ">\3\7\0_\0`\1#\0`\1\"\0`\1\21\0\0\0p\0\31\0\231\0\n\0="..., 48) = 48
read(4, "\1\2I\16\0\0\0\0&\0`\1\231\0\0\0\0\0\0\0\0\0\0\0\310\364"..., 32) = 32
read(8, "\0\0\0\0\3\0\0\0M\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0EMU10K1"..., 72) = 72
ioctl(8, USBDEVFS_CONNECTINFO, 0xbffff1e0) = 0
ioctl(8, USBDEVFS_IOCTL, 0xbfffe4f0)    = 0
ioctl(8, USBDEVFS_IOCTL, 0xbfffce70)    = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
write(2, "\nReceived SIGSEGV\n\nThis could be"..., 141
Received SIGSEGV


Expected Results:  
Play the song.

Portage 2.0.51.19 (default-linux/x86/2004.0, gcc-3.4.3, glibc-2.3.4.20050125-r1,
 2.6.11-gentoo i686)
=================================================================
System uname: 2.6.11-gentoo i686 AMD Athlon(tm) processor
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 21 2005, 03:48:54)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disable
d]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.9.5, 1.5, 1.8.5-r3, 1.6.3, 1.4_p6, 1.7.9-r1
sys-devel/binutils:  2.15.92.0.2-r6
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-tbird -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X1
1/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-tbird -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms userpriv usersa
ndbox"
GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/ ftp://sunsite.informatik.rwt
h-aachen.de/pub/Linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 aac alsa apm avi berkdb bitmap-fonts bmp bpm cdr crypt cups
 curl divx4linux dv dvd emboss encode f77 fam ffmpeg flac font-server foomaticdb
 fortran gdbm gif gnutls gpm gtk gtk2 imagemagick ipv6 jack joystick jpeg lcms l
ibg++ libwww lirc mad mikmod mmx mng motif mp3 mpeg ncurses nls nptl nptlonly nv
idia oggvorbis opengl pam perl pic png python qt quicktime readline sdl slang so
ftmmu speex spell sqlite ssl svg tcpd theora tiff truetype truetype-fonts type1-
fonts userlocales wmf xml xml2 xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Mark Felder 2005-03-20 16:39:28 UTC
I am also having this problem playing over alsa on an Audigy2
Comment 2 Stefan de Konink 2005-03-20 17:15:21 UTC
I'm using a SB Live (emu10k1)...

So could this be module specific?
Comment 3 Tony Vroon (RETIRED) gentoo-dev 2005-03-20 23:28:44 UTC
I don't have this problem playing to an SB Live 5.1 OEM, using in-kernel ALSA on 2.6.12-rc1 (development-sources). Mark Felder, I'd like to see your emerge info.
Stefan De Konink, could you tell me whether you have in-kernel ALSA or the external ALSA?
Comment 4 Stefan de Konink 2005-03-21 03:51:43 UTC
Alsa is build into the kernel.
Comment 5 Jacob Braun 2005-03-21 07:03:11 UTC
I am having the exact same problem, using a sound blaster live on kernel 2.6.11. This never happened before, but I recently upgraded to gcc 3.4.3 and rebuilt system and world so I don't know if that is somehow related or not.
Comment 6 Matt MacLeod 2005-03-22 08:23:00 UTC
The bmp-alarm plugin recently started not working for me (plays for about half a second then stops), but otherwise playing works normally. When I exit it I get the SIGSEGV error, though. 

Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.4.3-20050110, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r4 i686)
=================================================================
System uname: 2.6.11-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  8 2005, 13:22:57)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://gentoo.risq.qc.ca/ ftp://adelie.polymtl.ca ftp://cs.ubishops.ca/pub/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_CA"
LC_ALL="en_CA"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa audiofile avi bash-completion berkdb bitmap-fonts bmp bonobo bzlib cdr cpdflib crypt cups curl curlwrappers dbus divx4linux dvd dvdread emboss encode faad fam fftw flac font-server foomaticdb fortran ftp gdbm gif gimpprint gnome gnomedb gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal howl icq icu imagemagick imap imlib jabber java jikes jpeg junit kerberos libg++ libgda libwww mad mikmod mmx mng mono motif mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg msn ncurses nls nptl offensive ofx oggvorbis openal opengl oscar pam pdflib perl png ppds python quicktime readline real samba sasl sdl sox speex spell sqlite sse sse2 ssl svg svga tcltk tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb x86 xml xml2 xosd xv xvid xvmc zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
Comment 7 Tony Vroon (RETIRED) gentoo-dev 2005-03-22 09:58:16 UTC
Well, for good measure, here is my emerge info, I have not been able to reproduce this bug so far;

Portage 2.0.51.19 (!/usr/portage/profiles/default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.12-rc1-bk1 i686)
=================================================================
System uname: 2.6.12-rc1-bk1 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 18 2005, 14:06:24)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.9.5, 1.6.3, 1.8.5-r3, 1.5, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r6
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer -ftracer -fweb -funit-at-a-time"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer -ftracer -fweb -funit-at-a-time"
DISTDIR="/store/distfiles"
FEATURES="autoaddcvs autoconfig ccache cvs digest distlocks fixpackages sandbox sfperms sign"
GENTOO_MIRRORS="ftp://ftp.heanet.ie/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/store/tmp"
PORTDIR="/cvs/gentoo-x86/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="x86 16bit 3dnow 3dnowex S3TC X X509 a52 aac aalib acpi aim alsa ao asm audiofile avi bash-completion beepmp berkdb bitmap-fonts bmp bonobo bzip2 bzlib cairo cdda cddb cdio cdparanoia cdr codecs crypt css cups curl dga djbfft dmx dpms dv dvd ecc edl eds elf encode erandom evo evo2 exif faad fame fb fbcon ffmpeg fftw flac flash font-server foomaticdb fortran fpx freetype ftp gb gcj gd gdbm gif glitz glut gnome gnomedb gnutls gphoto2 gstreamer gtk gtk2 gtkhtml hal howl icq imagemagick imap imlib imlib2 inifile ipv6 irc jabber java jbig jce jikes joystick jpeg kde kerberos krb4 ldap libcaca libg++ libsamplerate libwww live lm_sensors lzo lzw mad maildir matroska md5sum mikmod mjpeg mmap mmx mmx2 mng monkey mono mozsvg mp3 mpeg mpeg4 mplayer msn native ncurses nls nptl nptlonly ntlm nvidia ode ogg oggvorbis openal opengl oscar pam pcre pdflib perl physfs pic png posix ppds python quicktime readline real rtc sblive sdl serial silc slang slp smime sndfile speex spell sse ssl stencil-buffer svg svgz symlink sysfs sysvipc szip tcltk tetex tga theora tiff timidity transcode truetype truetype-fonts type1-fonts unicode ups uptimed usb utf8 v4l v4l2 vcd vidix wifi wma123 wmf xanim xine xinerama xml xml2 xprint xscreensaver xv xvid xvmc yv12 zeroconf zlib zvbi"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-03-22 10:28:05 UTC
Works fine for me on amd64. The output on the report is the strace? So the problem seems to be with that:

ioctl(8, USBDEVFS_IOCTL, 0xbfffce70)    = 0

do you have an external usb soundcard which uses emu10k1?
Can you test to see what the fd 8 represents?
Comment 9 Stefan de Konink 2005-03-22 13:10:50 UTC
Internal PCI.
Comment 10 Matt MacLeod 2005-03-22 15:36:32 UTC
After doing a "emerge -e system", I now crash immediately upon hitting play. I just changed -O3 to -O2 and added -pipe, as per my emerge info above.

Using ALSA with a PCI SoundBlaster Live 5.1. I'm beginning to think it's GCC 3.4.3-20050110 that's the common variable.
Comment 11 Matt MacLeod 2005-03-23 09:47:42 UTC
strace:

ioctl(18, 0x80044121, 0xbffff0d8)       = 0
write(4, ">\3\7\0W\0`\3&\0`\3%\0`\3\204\0\0\0p\0\32\0\207\0\t\0>"..., 76) = 76
read(4, 0xbffff070, 32)                 = -1 EAGAIN (Resource temporarily unavailable)
select(5, [4], NULL, NULL, NULL)        = 1 (in [4])
read(4, "\1\2W\v\0\0\0\0\4\0`\3\0\0\0\0\0\0\0\0\1\0\0\0\300L\267"..., 32) = 32
read(15, "\0\0\0\0\3\0\0\0F\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0EMU10K1"..., 72) = 72
ioctl(15, USBDEVFS_CONNECTINFO, 0xbfffed00) = 0
ioctl(15, USBDEVFS_IOCTL, 0xbfffe2c0)   = 0
ioctl(15, USBDEVFS_IOCTL, 0xbfffe2c0)   = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
write(2, "\nReceived SIGSEGV\n\nThis could be"..., 141
Received SIGSEGV



Really not sure what USBDEVFS has to do with anything here. My only connected USB device is my mouse.
Comment 12 Matt MacLeod 2005-03-24 13:19:10 UTC
gdb output:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218734400 (LWP 23788)]
0xb6b50f7c in snd_mixer_elem_empty () from /usr/lib/libasound.so.2
Comment 13 Mark Felder 2005-03-27 21:47:22 UTC
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.12-rc1-love1 i686)
=================================================================
System uname: 2.6.12-rc1-love1 i686 AMD Athlon(tm) XP 3000+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#2, Mar 24 2005, 01:00:56)]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.6.3, 1.5, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X acpi alsa apm avi bash-completion berkdb bitmap-fonts bzlib cdr crypt cups curl divx4linux doc dvd dvdr dvdread emboss encode fam flac font-server foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib ipv6 java jpeg libg++ libwww mikmod mmx motif mozilla mp3 mpeg ncurses network nls nptl nptlonly nvidia offensive oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline real sdl spell sse ssl svg svga tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb wmf x86 xml2 xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL


Alsa is external

Comment 14 Matthijs Langenberg 2005-03-30 11:56:49 UTC
This is probably a bug in alsa. Kaffeine (xine-lib) also bails out when it's using ALSA output. (I've the same thing in beep-media-player). 

I haven't got a clue on how to fix this, maybe a new kernel? (currently 2.6.10)
Comment 15 Matt MacLeod 2005-03-31 20:20:20 UTC
alsa-lib-1.0.9_rc2 appears to fix this, in about 5 minutes of testing.
Comment 16 Jacob Braun 2005-03-31 20:43:04 UTC
Confirmed here. alsa-lib 1.0.9_rc2 works.
Comment 17 Tony Vroon (RETIRED) gentoo-dev 2005-04-01 12:14:01 UTC
-r5 is now in portage, which explicitly depends on alsa-1.0.9_rc2. This should fix your issues, if not, please reopen the bug.
Comment 18 Matt MacLeod 2005-04-01 15:50:20 UTC
The new ebuild continues to work. Also the gnome-panel volume control appears to no longer be crashing, either. ALSA 1.0.8 should probably be marked unstable.
Comment 19 Stefan Briesenick (RETIRED) gentoo-dev 2005-04-02 11:44:02 UTC
well, 1.0.8 just works, while 1.0.9_rc2 is *fully* broken. Search for ALSA here in BugZilla and you'll see the problem. I had to downgrade to 1.0.8, because 1.0.9_rc2 breaks *all* ALSA apps (SegFaults).

So I think it's not a good idea to depend on this version.
Comment 20 Matt MacLeod 2005-04-02 11:57:14 UTC
Re: comment #19 - can you post your emerge info? I'm seeing the exact opposite, so maybe it's one of those things where 1.0.8 works below a certain kernel/compiler/etc version, whereas 1.0.9 works above.
Comment 21 Tony Vroon (RETIRED) gentoo-dev 2005-04-02 11:57:47 UTC
1.0.8 is fine for me.
1.0.9_rc2 is fine for me.

Note that these are alsa-lib versions, I have in-kernel ALSA, and am currently on 2.6.12-rc1-bk3.

Stephan Briesenick, I do not see the problem as none of the ALSA bugs reported so far are reproducable on my system.
Comment 22 Stefan Briesenick (RETIRED) gentoo-dev 2005-04-02 12:14:16 UTC
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r4 i686)
=================================================================
System uname: 2.6.11-gentoo-r4 i686 AMD Athlon(TM) XP 1600+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 17 2005, 23:59:06)]
distcc[18862] (dcc_mkdir) ERROR: mkdir /tmp/.distcc/state failed: No such file or directory [disabled]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -mmmx -m3dnow -msse -mfpmath=sse -O2 -pipe -fomit-frame-pointer -ffast-math -falign-functions=16 -falign-loops=16"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/fax /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/rc.d /etc/terminfo /etc/texmf/web2c /etc/wget /etc/env.d"
CXXFLAGS="-march=athlon-xp -mmmx -m3dnow -msse -mfpmath=sse -O2 -pipe -fomit-frame-pointer -ffast-math -falign-functions=16 -falign-loops=16"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/vol1/.gentoo/build"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 16bit 3dnow 3dnowex X X509 Xaw3d a52 aac aalib accessibility acl acpi ada adns alsa amd ao aotuv apm arts artswrappersuid async audiofile avi bdf berkdb bidi bitmap-fonts bluetooth bonobo bzip2 bzlib cairo calendar caps cdda cddb cdf cdio cdparanoia cdr cdrom chroot cjk clamav clearcase codecs compress cpdflib crypt css ctype cups curl curlwrappers dbase dga dillo directfb divx4linux djbfft dmx dnd doc dpms dts dv dvd dvdr dvdread edl eds emboss encode erandom esd expat ext-png ext-zlib faac faad fam fame fb fbcon ffmpeg fftw flac foreign-package foreign-sysvinit fortran fpx freetype ftruncate gcj gd gd-external gdbm ggi gif gimp gimpprint glade glgd glitz glut gmp gnokii gnome gnomedb gnuplot gnutls gpgme gphoto2 gpm graphviz gs gsm gstreamer gtk gtk2 gtkhtml guile hal haskell hbci howl httpd iconv idea idl idn ieee1394 iksemel imagemagick imap imlib imlib2 inifile inkjar ipv6 irda irmc ithreads jack jack-tmpfs java javascript jbig jikes joystick jp2 jpeg jpeg2k junit kcal kde kdeenablefinal kdepim kipi koffice-plugin ladcca ladspa latex lcms ldap libao libcaca libdsk libg++ libgd libgda libsamplerate libvisual libwww live lm_sensors logitech-mouse lzo lzw lzw-tiff m17n-lib mad maildir mailwrapper makecheck matroska mcal md5sum mdb mikmod mime mimencode mjpeg mmap mmx mmxext mng motif mozcalendar mozdevelop mozilla mozp3p mozsvg mozxmlterm mp3 mpeg mpeg2 mpeg4 mplayer mysql ncurses net netboot netcdf network nis nls nntp no_wxgtk1 nomalloccheck normalizemime nptl nvidia oav objc odbc offensive ogg oggvorbis openal openexr opengl oss pam parse-clocks pascal pcap pcre pda pdf pdflib perforce perl physfs pic plotutils plugin png povray print pthreads python qt quicktime quotas rdesktop readline real rrdtool rtc ruby samba sasl scanner sdl sendfile shared slang slp smime sms sndfile snmp socks5 soundtouch sox speedo speex spell sql sqlite sqlite3 sse ssl stream subp subversion svg svga svgz syslog sysvipc szip t1lib tcltk tetex tga theora threads thumbnail tidy tiff timidity transcode truetype truetype-fonts type1 type1-fonts ucs4 unicode usb userlocales utf8 v4l v4l2 vcd vcdimager vidix virus-scan visualization vlm vnc vorbis wifi wma123 wmf wxwin wxwindows xanim xattr xbase xface xine xinerama xml xml2 xmms xosd xpm xprint xrandr xscreensaver xsl xslt xv xvid xvmc yv12 zeroconf zlib zvbi video_cards_nvidia linguas_de"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
Comment 23 Stefan Briesenick (RETIRED) gentoo-dev 2005-04-02 12:18:00 UTC
I had updated ALSA to 1.0.9 on 3 machines and on *all* it was broken. First I saw timidity crash, then I saw all others also crashing with SegFaults. I tried to re-emerge these apps, but the SegFault were still there.

Then I downgraded to 1.0.8 again and everythings works fine again.

BTW: my BMP also works with 1.0.8, so I don't see the problem.

But I've heard, that AMD64 users have no problems with 1.0.9 and on the other hand, x86 users don't have problems with 1.0.8. Strange!
Comment 24 Stefan Briesenick (RETIRED) gentoo-dev 2005-04-02 12:24:02 UTC
btw: I have a 5.1 setup and in my /etc/asound.conf I have a 6ch DMIX device. My !default is directed to this 6ch dmix device and I have really no problems with XMMS, BMP, ARTS, XINE, MPlayer, etc. Only ESD don't work with my 6ch setup, but it don't crash, it just tells "no I don't like your setup".
Comment 25 Matt MacLeod 2005-04-02 12:28:04 UTC
I have a P4 and was having problems with 1.0.8...every ALSA app was crashing except for Gstreamer based ones, which would lose channels on my digital 5.1 when something crashed until I restarted a track/video (i.e. resuming from pause didn't work).

Comment 26 Tony Vroon (RETIRED) gentoo-dev 2005-04-02 12:35:10 UTC
Stefan Briesenick, tone your CFLAGS down to reasonable levels if you want to file bug reports or comment on existing bugs. (But emerge -e world after you adjust, and you'll see you don't have to report them anymore)

Matt, I'm happy to hear this fixes it for you. Stefan de Konink, does beep-media-player -r5 fix the problem for you?
Comment 27 Stefan Briesenick (RETIRED) gentoo-dev 2005-04-02 12:39:03 UTC
@#25: I tested it on my Athlon-XP, my Celeron 1300 and my Celeron 600 Notebook. 1.0.8 just works and 1.0.9 crashes.

Houston, we have a problem. ;)

I think, it's a Kernel <-> ALSA-LIB problem. I'm using 2.6.11 which is based on 1.0.8 (?) and if you have a newer Kernel, then 1.0.9 might be the better option.

So, while we have a different mileage, we should mention that problems in pkg_postinst() but don't depend on 1.0.9.
Comment 28 Stefan Briesenick (RETIRED) gentoo-dev 2005-04-02 12:45:06 UTC
@26: I didn't file a bug report and I really will not change my CFLAGS because they're working perfectly. And "emerge -e" on my system would run a whole week. No, I really don't do that.

The only thing I can say is: 1.0.8 works *perfectly* on my machines and 1.0.9 just breaks *any* ALSA-app. Your mileage my vary, but I'm not alone. Just look into BugZilla for "ALSA" and you see many others who have big problems with 1.0.9.

So the only thing I want is: do not depend on 1.0.9! Mention the possible problems in pkg_postinst() and everything is fine.

Possible wording: "if you encounter problems with ALSA 1.0.8 then please upgrade to 1.0.9".
Comment 29 Stefan de Konink 2005-04-02 13:39:03 UTC
Sorry to come back so late on this, Firefox got broken and bugzilla just won't do its job with Lynx. BMP got fixed due to the alsa-libs update 1.0.9rc2. I was running the alsa-cvs kernel drivers because of the emu10k1 multichannel patch, which doesn't compile anymore after the alsa and cvs update.
Comment 30 Tony Vroon (RETIRED) gentoo-dev 2005-04-02 13:53:56 UTC
Problem resolved for two independent persons, including the original problem reporter. The -r5 release is fine for me as well.
Comment 31 Tony Vroon (RETIRED) gentoo-dev 2005-04-02 13:54:59 UTC
This bug is now resolved. Stefan de Konink, thanks for your bug report. Matt McLeod, thanks for testing and commenting.
Comment 32 Stefan Briesenick (RETIRED) gentoo-dev 2005-04-02 14:48:31 UTC
@tony: have you understood what I've said?

There *IS* an unsolved problem with ALSA 1.0.9 (see other Bugs). So it is not nice to depend on it. All other fixes are ok, though I've never had any problems with BMP. It just works w/o any problems with ALSA 1.0.8 on my machines but I have BIG troubles with ALSA 1.0.9 at all.

As long as the other bugs are not solved, depending on 1.0.9 is really not a good idea!

What Kernels do you run?
Comment 33 Jan Brinkmann (RETIRED) gentoo-dev 2005-04-02 15:02:33 UTC
you should change to sane cflags, afterwards recompile your system using 'emerge -e world'. that will fix a lot of problems for you.
Comment 34 Stefan Briesenick (RETIRED) gentoo-dev 2005-04-02 18:51:40 UTC
sorry, you're insane. I don't have any problems with my CFLAGS. I use them for a very long time now on many machines and they're fine.

The only problem I have is, that ALSA-LIBs 1.0.9 segfaults all my ALSA-apps, while 1.0.8 just works (no segfaults at all!). You want to tell me, that my CFLAGS are bad? Hell, if my CFLAGS are that bad, than I should have also problems with ALSA 1.0.8 (and all the others before). Furthermore, my whole system should be instable, because many other programs would be also affected. And that is not true.

Sorry, but you're on the wrong lane. My CFLAGS are not the problem.

I think, it's once again a problem with the combination of Kernel-ALSA + ALSA-LIBs. I had a similar problem a few kernel/alsa versions ago. And then it were fixed somehow.

But since 1.0.8 works w/o any problems, even with BMP, I don't see your problem. I didn't complained about a non-working BMP or a non-working ALSA in this Bug. I just asked NOT to depend on ALSA 1.0.9_rc2 (hey, it's a release-candidate, not final version!) because BMP + ALSA 1.0.8 works on my machines *perfectly* w/o any problems, while ALSA 1.0.9_rc2 causes troubles. So you try to fix someones problems while creating problems for others. That's odd.
Comment 35 Stefan de Konink 2005-04-03 00:24:14 UTC
Did you ever read what your CFLAGS actually do? Because *we* assume you did not. -march=athlon-xp, for example already implies -mmmx -m3dnow -msse -mfpmath=sse, but if a program explicitly DON'T want to use -mmmx you now force it to use the extension. If it works for you, great, but it is not the way how it should be opti mized.
Comment 36 Akos Ladanyi 2005-04-03 04:10:39 UTC
To: Stefan Briesenick

You mentioned that you tried the new alsa-lib on 3 different machines. Is there a SoundBlaster Live! (or something similar) in any of these machines?
Comment 37 Stefan Briesenick (RETIRED) gentoo-dev 2005-04-03 04:43:48 UTC
no.

1. Server: snd_intel8x0 (on board)
2. Notebook: snd_intel8x0 (on board)
3. Desktop: snd_cmipci (on board), snd_es1938 (pci), snd_bt87x (pci)

The CMedia is my main sound-device (!default in asoundrc). The Solo1 is only used for my headset and is not used when I try to play audio after emerging 1.0.9.

But on all machines, I'm using 2.6.11-gentoo-r4.

Oh, btw: my solo-1 is sometimes crashing my machine when using my Headset with skype. But Skype is not always running, so this can't be the problem, that my ALSA-apps (using the cmedia) are crashing. 1.0.8 works, 1.0.9 -> Segfaults.
Comment 38 Stefan Briesenick (RETIRED) gentoo-dev 2005-04-03 04:57:53 UTC
I've read exactly what my CFLAGS are doing!

I know that -march=athlon-xp implies -m3dnow and -msse, but *NOT* -mfpmath=sse. I've read the GCC-docs and many others. Ok, why I'm using '-msse' and '-m3dnow' then? Because the docs sometimes say "they're included but not used if not explicitly given on commandline". That may depend on the GCC version used. But I don't want to check that all the time. So they don't harm if I set them. And all other CFLAGS used *are* sane. Hey, I'm not a newbie! I've written some kernel-modules for my company in the past, so I know what I'm doing!

And as you can read in Bug 87385, CFLAGS are *NOT* the problem!

It's insane to tell someone to use "sane" CFLAGS (plus "emerge -e") when his whole system is running stable. Of course, bad CFLAGS can harm your system, but my CFLAGS are proven stable on at least different 8 machines. And I have only problems with 1.0.9 and *NOT* with 1.0.8.

It seems that there is (once again) an incompatibility beween in-kernel ALSA 1.0.8 and ALSA-libs 1.0.9. We had a simililar problems a few kernel/alsa versions ago.
Comment 39 Akos Ladanyi 2005-04-03 05:48:16 UTC
Thanks for the answer. I asked it because the initial reporters all had an SB Live or Audigy card. I also have two machines with alsa-lib-1.0.8 and only the one with an SB Live has problems. So I think 1.0.8 works for you because you don't use snd-emu10k.
Comment 40 Stefan Briesenick (RETIRED) gentoo-dev 2005-04-03 06:11:52 UTC
indeed, I hate Creative cards. ;) The Solo-1 was a gift and it's good enough for my headset. But normally, I prefer other cards. On my other PC I have a RME Digi96/PST. But this machine is still running SuSE.

Since I don't have problems with 1.0.8, I'm waiting for a kernel with 1.0.9 ALSA drivers (2.6.12?) and then I upgrade. For that, it would be nice not depending on ALSA 1.0.9 in BMP. Otherwise I have to copy the latest BMP to my local portage tree and patch the ebuild for myself.