Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87099 - alsa-lib-1.0.8 causes segfaults in multiple applications
Summary: alsa-lib-1.0.8 causes segfaults in multiple applications
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
: 87236 93377 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-29 05:27 UTC by Jonathan Coome (RETIRED)
Modified: 2005-07-17 03:56 UTC (History)
6 users (show)

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


Attachments
should resolve issues with alsa-lib-1.0.9rc2 described in comment #11 (alsa-lib-mplayer.patch,629 bytes, patch)
2005-04-05 12:26 UTC, Christoph Richter
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Coome (RETIRED) gentoo-dev 2005-03-29 05:27:56 UTC
alsa-lib-1.0.8, seems to crash all sorts of applications, such as mpd, alsamixer, gaim, mpg123, xmms, and other things that use alsa. This seems to happen with several different kernels, but not if all the alsa-components are compiled in - only if they're modules.

Masking 1.0.8 and dropping back to 1.0.7 has worked for me, and moving to 1.0.9 seems to be working for other people.

(This is probably related to bug #86039 as well.)

Reproducible: Always
Steps to Reproduce:
1. compile alsa components as modules in kernel
2. emerge =media-libs/alsa-lib-1.0.8
3. watch applications that rely on alsa segfault
Comment 1 lain 2005-03-29 12:20:09 UTC
Actually, I'd like to comment that with both my AMD64 and x86 boxes (~amd64 and ~x86) on 2.6.11-r4, having the modules compiled into the kernel does not fix or affect the crashing. I tried it both ways - as all modules, or as all static. This is the SB Audigy2 and SB Live! Value (emu10k1 driver). It crashes both ways. As far as I can tell alsa-lib is doing something weird with threading - but here's the thing, it seems only to crash for me if I play MPEG media. (AVI, MPEG, MP3, MKV). If I play .ogg files with BMP, it doesn't crash at all - even after ten minutes of use. As soon as I hit an .mp3 file, it dies.

Don't know if that last bit is relevant or not, sorry.
Comment 2 lain 2005-03-29 12:25:45 UTC
Oh, and one more thing that slipped my mind.

I took the hard drive out of my ~x86 box and popped it into my Pentium-III Dell box last night to see if I could reproduce the error on a different chipset - I couldn't. The audio chipset is a generic integrated Intel AC97 one with nothing special. It played all media without errors and audio was fine with the alsa-libs-1.0.8. As soon as I put it back into my AthlonXP box with the SBLive, it continued to crash until I downgraded.

It appears to only affect certain chipsets.
Comment 3 Sean Kennedy 2005-03-29 12:35:55 UTC
I to have this problem.  I am using an SB Live! (emu10k1) card as well.
Comment 4 Jonathan Coome (RETIRED) gentoo-dev 2005-03-29 12:50:21 UTC
I also use the emu10k1 driver. I wonder if anyone experiencing this is using anything else, or if this is just related to that chipset...
Comment 5 Oscar 2005-03-29 15:23:36 UTC
I run ~amd64 and emu10k1, I am also experiencing this problem.
Comment 6 Barry Shilliday 2005-03-30 02:08:14 UTC
*** Bug 87236 has been marked as a duplicate of this bug. ***
Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2005-03-30 20:00:38 UTC
ok, please try 1.0.9_rc2.  Should hit mirrors soon.
Comment 8 lain 2005-03-30 23:30:48 UTC
Tried 1.0.9_rc2. All media plays without crashing. 

It seems this release fixes the issue we were having. Could someone mark rc2 stable to fix this bug? SoundBlasters are very popular sound cards, and it would fix a lot of problems for a lot of users. Or at the very least, mask 1.0.8 to make people downgrade to 1.0.7.

Thanks.
Comment 9 Jesse Becker 2005-03-31 14:09:37 UTC
Actually, I emerged 1.0.9_rc2 today on my laptop, and things *started* to crash.  1.0.8 worked fine.
Comment 10 Jonathan Coome (RETIRED) gentoo-dev 2005-03-31 14:31:45 UTC
alsa-lib-1.0.9_rc2 fixed things for me...

To provide more information - I have a Sound Blaster Audigy, using the kernel drivers built as modules from vanilla sources 2.6.11.6, running on an AMD64. 
Comment 11 Phil Richards 2005-04-01 00:46:44 UTC
I agree with Comment #9 - the problem didn't occur with 1.0.8 - it does with 1.0.9_rc2.

I've had a working alsa until yesterday when I emerged rc2 and everything sound related has now stopped working.  Pretty much everything segv's on start-up.  strace indicated this when starting glob2:

open("/dev/snd/timer", O_RDONLY|O_NONBLOCK) = 7
ioctl(7, 0x80045400, 0xbffed74c)        = 0
ioctl(7, SNDCTL_TMR_START or TCSETS, 0xbffed748) = 0
ioctl(7, TIOCSPGRP, 0xbffed750)         = 0
ioctl(7, TIOCSTI <unfinished ...>
+++ killed by SIGSEGV +++

Phil

~ # emerge info
Portage 2.0.51.19 (default-linux/x86/2005.0, 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 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 18 2005, 07:07:28)]
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="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/src/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/src/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apm avi berkdb bitmap-fonts bzip2 cdr crypt cups curl emboss encode esd fam flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib jpeg lesstif libg++ libwww mad mikmod mmx motif mozilla mp3 mpeg ncurses nls nntp nptl nptlonly offensive oggvorbis opengl pam pdflib perl png python qt quicktime readline real samba scanner sdl slang speex spell sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts usb xml2 xmms xv zlib video_cards_i915"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 12 Eduardo Juan 2005-04-01 08:17:11 UTC
same problem here as #11

Portage 2.0.51.19 (default-linux/x86/2004.2, 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 2400+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 17 2005, 18:50:24)]
ccache version 2.4 [enabled]
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="-O2 -march=athlon-xp -fomit-frame-pointer -ftracer -pipe -fno-crossjumping -fprefetch-loop-arrays -fstrict-aliasing"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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/mozilla/defaults/pref /usr/lib/mozilla/defaults/pref/usr/share/config /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/env.d /etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -ftracer -pipe -fno-crossjumping -fprefetch-loop-arrays -fstrict-aliasing -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/bmg-main"
SYNC="rsync://rsync1.fi.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib ada alsa arts artswrappersuid artworkextra audiofile avi bash-completion berkdb bitmap-fonts cdr cjk cpdflib crypt cups curl dba dga directfb dvd dvdr emboss encode esd evo expat fam fbcon firefox flac flash font-server foomaticdb fortran gb gcc gd gd-external gdbm ggi gif glib glibc gmp gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal howl imagemagick imlib innodb ipv6 jack java jmx jpeg jpeg2k junit kde kdevelop kerberos krb4 lcms ldap libg++ libwww libxslt mad mikmod mmx motif mozaccess-builtin mozctl mozilla moznoxft mozxmlterm mp3 mpeg msn mysql nas ncurses nls nntp nptl odbc oggvorbis opengl oscar oss pam pda pdflib perl php plotutils png python qt quicktime readline samba sdl slang slp sndfile snmp sock5 speex spell sse ssl svga tcltk tcpd tetex thunderbird tiff truetype truetype-fonts type1-fonts unicode usb valgrind vim wxGTK wxwindows xface xine xml xml2 xmms xorg xscreensaver xv yahoo zlib video_cards_nvidia linguas_pt_BR linguas_es"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL


Apr  1 13:01:53 siux <1>Unable to handle kernel NULL pointer dereference at virtual address 00000000
Apr  1 13:01:53 siux printing eip:
Apr  1 13:01:53 siux c0263783
Apr  1 13:01:53 siux *pde = 00000000
Apr  1 13:01:53 siux Oops: 0002 [#2]
Apr  1 13:01:53 siux PREEMPT
Apr  1 13:01:53 siux Modules linked in: nvidia
Apr  1 13:01:53 siux CPU:    0
Apr  1 13:01:53 siux EIP:    0060:[<c0263783>]    Tainted: P      VLI
Apr  1 13:01:53 siux EFLAGS: 00210212   (2.6.11-gentoo-r4)
Apr  1 13:01:53 siux EIP is at memcpy+0x23/0x60
Apr  1 13:01:53 siux eax: 00000010   ebx: eb4849e0   ecx: 00000004   edx: 00000000
Apr  1 13:01:53 siux esi: e6f50ecc   edi: 00000000   ebp: bfffe3e0   esp: e6f50e94
Apr  1 13:01:53 siux ds: 007b   es: 007b   ss: 0068
Apr  1 13:01:53 siux Process amarokapp (pid: 12178, threadinfo=e6f50000 task=ea557a40)
Apr  1 13:01:53 siux Stack: 00000003 eb484a60 ffffffea ffffffea e6f50edc c03622bd 00000000 e6f50ecc
Apr  1 13:01:53 siux 00000010 eb4849e0 c0363116 eb4849e0 e6f50ecc 00000050 00000006 00000000
Apr  1 13:01:53 siux 00000000 00000000 00000005 00000001 00000000 00000000 00008002 00000000
Apr  1 13:01:53 siux Call Trace:
Apr  1 13:01:53 siux [<c03622bd>] snd_timer_user_append_to_tqueue+0x3d/0x50
Apr  1 13:01:53 siux [<c0363116>] snd_timer_user_params+0x236/0x250
Apr  1 13:01:53 siux [<c03633d0>] snd_timer_user_ioctl+0x150/0x270
Apr  1 13:01:53 siux [<c0168ee0>] do_ioctl+0x70/0xb0
Apr  1 13:01:53 siux [<c0169125>] vfs_ioctl+0x65/0x200
Apr  1 13:01:53 siux [<c0169305>] sys_ioctl+0x45/0x70
Apr  1 13:01:53 siux [<c0102719>] sysenter_past_esp+0x52/0x75
Apr  1 13:01:53 siux Code: ff ff c3 90 90 90 90 90 83 ec 14 8b 44 24 20 89 74 24 0c 89 7c 24 10 8b 74 24 1c 3d ff 01 00 00 77 26 89 c1 8b 7c 24 18 c1 e9 02 <f3> a5 a8 02 74 02 66 a5 a8 01 74 01 a4 8b 44 24 18 8b 74 24 0c
Comment 13 Craig Duquette 2005-04-01 09:31:44 UTC
I'm having the same issues as comment #9 also 

Portage 2.0.51.19 (default-linux/x86/2004.2/gcc34/2.6, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-cko3 i686)
=================================================================
System uname: 2.6.11-cko3 i686 Mobile Intel(R) Pentium(R) 4     CPU 3.06GHz
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 28 2005, 03:37:17)]
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-r4
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -ftracer -pipe -fomit-frame-pointer -mfpmath=sse -ffast-math"
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="-march=pentium4 -O2 -ftracer -pipe -fomit-frame-pointer -mfpmath=sse -ffast-math -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo ftp://gentoo.ccccom.com http://194.117.143.70 ftp://194.117.143.69/mirrors/gentoo http://212.219.56.152/sites/www.ibiblio.org/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="x86 X aac alsa apm avi berkdb bitmap-fonts cdr cups curl dvd emboss encode esd fam flac font-server foomaticdb fortran gdbm gif glx gnome gpm gstreamer gtk gtk2 imlib java jpeg junit libg++ libwww mad mikmod motif mozilla moznocompose moznoirc moznomail mp3 mpeg ncurses network nls no_wxgtk1 nptl oggvorbis opengl pam pdflib perl png ppds python quicktime readline samba sdl slang spell sse sse2 ssl tcpd tiff truetype truetype-fonts type1-fonts xine xml2 xprint xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL
Comment 14 Wouter Horré 2005-04-01 12:49:17 UTC
Same problem as #9 here

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 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.3.5 [2.3.5 (#1, Feb 19 2005, 19:25:54)]
dev-lang/python:     2.2.3-r5, 2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.5, 1.5, 1.6.3, 1.4_p6
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=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X aalib acpi alsa apm arts avi bash-completion berkdb bitmap-fonts cdr crypt cups curl dvd emboss encode fam flac font-server foomaticdb fortran gdbm gif gimpprint gphoto2 gpm gtk gtk2 gtkhtml imagemagick imlib ipv6 java jpeg junit kde ldap libg++ libwww mad mbox mikmod motif mp3 mpeg ncurses network nls nptl oggvorbis opengl oss pam pdflib perl png postfix ppds python qt quicktime readline sdl slang speex spell ssl svg svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts usb xml xml2 xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 15 Andrej Kacian (RETIRED) gentoo-dev 2005-04-02 11:47:13 UTC
I've been using 1.0.8 for three months after it hit portage, and had no issues at all. Same with 1.0.9_rc2, which I have now. All ok.
Comment 16 Sean Kennedy 2005-04-03 00:34:52 UTC
Is there any progress in smashing this bug?

I can listen to a song with mpg321 and play sounds from Gaim simultaneously, but I can't listen to a song in XMMS whiling playing sounds in Gaim -- XMMS segfaults the moment Gaim plays a sound.  Here is my emerge --info:

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20041102-r1
 2.6.11-ck3 i686)
=================================================================
System uname: 2.6.11-ck3 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr  2 2005, 21:27:18
]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.5, 1.9.4, 1.7.9-r1, 1.6.3, 1.4_p6, 1.8.5-r3
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="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X
1/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.ccccom.com/ http://gentoo.mirrors.pair.com/ http:
/gentoo.osuosl.org/ ftp://mirrors.tds.net/gentoo/"
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="x86 X aac acpi alsa avi berkdb bitmap-fonts cdr crypt cups curl divx4linux
dvd dvdread emboss encode foomaticdb fortran gdbm gif gimp gphoto2 gpm gtk gtk2
imlib java javascript jpeg ldap libg++ libwww mad mikmod mmx motif mozilla mp3 
peg mplayer msn ncurses network nls nvidia offensive ogg oggvorbis openal openg
 pam pcre pdflib perl png posix python quicktime readline real sdl spell sse ss
 svg svga tcpd tiff truetype truetype-fonts type1-fonts unicode usb xml2 xmms x
 xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 17 Sean Kennedy 2005-04-03 11:24:44 UTC
I've noticed that if I play a movie in mplayer then start XMMS and play a sound at the same time, they get along just fine.  If I start XMMS then play a movie in mplayer afterwards, XMMS segfaults the moment I hit play.
Comment 18 Matthias Langer 2005-04-03 18:00:29 UTC
The same is true for me: 
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r5 i686)

After emerging alsa-(headers/lib)-1.08 i've experineced segfaults in:
beep-media-player
xine [http://forums.gentoo.org/viewtopic-t-310644-highlight-sigsegv+xine.html]
gnome-volume-control

Downgrading to 1.07 solved this issues.
Comment 19 Matthias Langer 2005-04-03 18:05:13 UTC
By the way, i've forgot to say that i use emu10k1 ...
Comment 20 Andrej Kacian (RETIRED) gentoo-dev 2005-04-03 19:16:21 UTC
Works with emu10k1 here, as I stated in comment #15
Comment 21 giggles1 2005-04-04 10:48:03 UTC
I have exactly the same proble (and identical strace) as #11
Comment 22 Christoph Richter 2005-04-05 12:17:45 UTC
I can confirm the issue, but am only having problems with alsa-lib-1.09_rc2. The behaviour is exactly as reported in comment #11.
I've found a corresponding bugreport over at alsa-project.org: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1032

The patch that can be found there fixes the issue for me (reverted hunk from the rc1 -> rc2 patch).

But I'm not sure if our 1.0.9rc2 are exactly what the initial bug-report concerning alsa-lib-1.0.8 is about.


Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20050125-r1, 2.6.11-cko3 i686)
=================================================================
System uname: 2.6.11-cko3 i686 AMD Athlon(tm) MP
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 23 2005, 15:37:24)]
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-r6
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
Comment 23 Christoph Richter 2005-04-05 12:26:46 UTC
Created attachment 55388 [details, diff]
should resolve issues with alsa-lib-1.0.9rc2 described in comment #11

The problem seems to be fixed in ALSA-CVS, so I guess it will be best to stay
with 1.08 until 1.0.9rc3 (or final) is out.
Comment 24 Jeremy Huddleston (RETIRED) gentoo-dev 2005-04-06 03:29:37 UTC
ok, please try alsa-lib-1.0.9_rc2-r1... hopefully that will fix both sets of problems mentioned here...
Comment 25 Matthias Langer 2005-04-07 09:00:04 UTC
I tried alsa-lib-1.0.9_rc2 and alsa-lib-1.0.9_rc2-r1. Both work fine for me [unlike 1.0.8 - see #18 and #19] .
I'm using the emu10k1 modules provided with the kernel.
Comment 26 chrisp 2005-04-15 11:03:11 UTC
I had the same problems mentioned above using alsa-lib-1.0.8 with an emu10k1.  alsa-lib-1.0.9_rc2-r1 fixed everything for me.
Comment 27 Jeremy Huddleston (RETIRED) gentoo-dev 2005-04-15 13:22:38 UTC
Alright, well I'm marking this fixed then.  Thanks =)
Comment 28 W.klein 2005-06-19 17:51:19 UTC
*** Bug 93377 has been marked as a duplicate of this bug. ***
Comment 29 Ace Dahlmann 2005-07-12 17:02:01 UTC
I cannot understand why this is marked as fixed.
1.0.8 is still in gentoo stable, so that every new gentoo user will get into 
that mess (e.g. like me; I had this problem today and googled a long time until 
I found this solution; now I downgraded to 1.0.7)

Why don't you mask 1.0.8 so that 1.0.7 will get back to stable?
Comment 30 Jeremy Huddleston (RETIRED) gentoo-dev 2005-07-12 22:20:06 UTC
you can't move a package from stable to unstable... that is against policy. 
This only affects a small ammount of people, and it is fixed in the latest version.
Comment 31 Ace Dahlmann 2005-07-15 19:16:28 UTC
Well, why then not moving 1.0.9 to stable? Or patching 1.0.8?

Only a small amount of people? Every one who installes gentoo stable with ALSA-
Sound ... and I think most (especially new) users will choose stable.

IMHO this is not, what stable should be. You cannot leave a broken version in 
"stable".

LG,
Ace
Comment 32 Barry Shilliday 2005-07-16 02:33:26 UTC
I agree. The 'stable' version of alsa is broken and has been for months. This
causes a crash - it's a serious bug with no workaround.

Expecting people to use versions marked as unstable just to be able to use
something isn't right.

Either the bug should be fixed or 1.0.9 should be marked as stable. This bug is
certainly not resolved.
Comment 33 Jeremy Huddleston (RETIRED) gentoo-dev 2005-07-17 03:56:20 UTC
1) it only effects users with emu10k1, not "every user who installs gentoo" as
you say.

2) simple workarounds have been in portage (just use a differnet version)

3) 1.0.9 will be going into stable soon.