Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87385 - alsa-[headers,lib]-1.0.9_rc2 broken on upgrade from version 1.0.8
Summary: alsa-[headers,lib]-1.0.9_rc2 broken on upgrade from version 1.0.8
Status: RESOLVED DUPLICATE of bug 87544
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
: 87493 87521 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-31 02:14 UTC by Leung Ki Chi
Modified: 2005-07-17 13:06 UTC (History)
11 users (show)

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


Attachments
strace output from xine (strace-xine.txt,328.62 KB, text/plain)
2005-03-31 06:02 UTC, Christoph Safferling
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leung Ki Chi 2005-03-31 02:14:16 UTC
When I upgrade to alsa-headers-1.0.9_rc2 and alsa-lib-1.0.9_rc2 from alsa-headers-1.0.8 and alsa-lib-1.0.8, the emerge goes fine. However, there is no sound right after the upgrade.

Reproducible: Always
Steps to Reproduce:
1. emerge --sync
2. emerge -u alsa-headers alsa-lib

Actual Results:  
Sound playback was immediately lost. For example, KDE system notification 
sounds failed to play. 


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 1.70GHz 
Gentoo Base System version 1.6.10 
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Mar 21 2005, 05:06:53)] 
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="-march=pentium4 -mtune=pentium4 -O3 -pipe 
-fomit-frame-pointer -momit-leaf-frame-pointer -fforce-addr -ftracer" 
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/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=pentium4 -mtune=pentium4 -O3 -pipe 
-fomit-frame-pointer -momit-leaf-frame-pointer -fforce-addr -ftracer 
-fvisibility-inlines-hidden" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox 
sfperms userpriv usersandbox" 
GENTOO_MIRRORS="http://mirror.averse.net/pub/gentoo 
http://ftp.isu.edu.tw/pub/Linux/Gentoo http://gentoo.osuosl.org" 
MAKEOPTS="-j3" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://mirror.averse.net/gentoo-portage" 
USE="x86 3dfx X acpi alsa apm arts bitmap-fonts cjk curl fam flac 
font-server gif gpm imagemagick ithreads jpeg kde kdeenablefinal 
kdexdeltas mmx mp3 ncurses nls nptl oggvorbis opengl oss pic png 
pthreads qt readline samba sdl spell sse ssl threads tiff truetype 
truetype-fonts type1-fonts unicode xv zlib" 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Krzysztof Pawlik (RETIRED) gentoo-dev 2005-03-31 02:49:32 UTC
Same here with mplayer - it segfaults with 1.0.9_rc2 headers and lib. Recompiling mplayer against new libs didn't help.

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-ck3 i686)
=================================================================
System uname: 2.6.11-ck3 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.4-r3 [2.4 (#1, Mar 20 2005, 14:18:53)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.4-r3
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=pentium4 -O2 -mmmx -msse -msse2 -mfpmath=sse -pipe"
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/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -mmmx -msse -msse2 -mfpmath=sse -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.prz.rzeszow.pl/"
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 alsa apache2 apm avi bash-completion berkdb bitmap-fonts bzip2 cdr crypt cups dvd emboss extras foomaticdb fortran gtk gtk2 iconv imlib java jpeg kdeenablefinal libg++ libwww mad mmx mmx2 mmxext mozilla mp3 mpeg ncurses nls no-old-linux oggvorbis opengl pam perl png postgres python qt quicktime readline samba sdl sse sse2 ssl svg tcpd tetex tiff truetype truetype-fonts type1-fonts xml2 xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 2 Frank van den Brink 2005-03-31 04:21:23 UTC
same here. no sound at all.

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.40GHz
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 20 2005, 05:23:33)]
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="-O3 -march=pentium4 -mtune=pentium4 -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -pipe"
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 /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -mtune=pentium4 -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/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 acpi alsa apm avi berkdb bitmap-fonts cjk crypt cups curl emboss encode foomaticdb fortran gdbm gif gphoto2 gpm gtk gtk2 imagemagick imlib ipv6 ithreads java jpeg ldap libg++ libwww mad mikmod mp3 mpeg ncurses nptl offensive oggvorbis opengl pam pdflib perl png pthreads python qt quicktime readline scanner sdl spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts unicode usb xml2 xv zlib linguas_en linguas_nl"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 3 Christoph Safferling 2005-03-31 05:08:55 UTC
Same here on amd64. No sound, all players (checked xine and xmms only...) segfault. 

Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 18 2005, 10:10:02)]
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="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-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 /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="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo/ http_//gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LC_ALL="en_GB.utf8"
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="amd64 X aalib acpi alsa arts avi bash-completion berkdb bitmap-fonts cdparanoia cdr cjk crypt cups curl doc dvd dvdr emacs encode esd fam flac font-server foomaticdb fortran gdbm gif gphoto2 gpm gtk gtk2 imagemagick imlib java jp2 jpeg kde kdeenablefinal leim libwww lzw lzw-tiff mad mikmod motif mp3 mpeg ncurses nls offensive oggvorbis opengl pam perl png ppds python qt quicktime readline sdl ssl tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales wmf xine xml2 xmms xosd xpm xprint xrandr xv xvid zlib linguas_de linguas_en_GB linguas_nds linguas_ja"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LDFLAGS
Comment 4 Christoph Safferling 2005-03-31 06:02:01 UTC
Created attachment 54925 [details]
strace output from xine

Hm, it seems it can't find the /dev/xxx stuff. I have absolutely no knowledge
on that field, mayhap a udev problem?
Comment 5 Nickolay Kolchin-Semyonov 2005-03-31 06:08:53 UTC
Same problem here. Arts cause kernel error with new alsa-lib:

---------- /var/log/messages dump --------------------------------------
Mar 31 17:51:30 athlon Process artsd (pid: 26053, threadinfo=d125b000 task=d2db6580)
Mar 31 17:51:30 athlon Stack: d125bef0 bfffe540 e0bf8dcd cdde8be0 ffffffea e0bf9b08 00000006 00000000
Mar 31 17:51:30 athlon 00000000 00000000 00000005 00000001 00000000 00000000 00008002 00000000
Mar 31 17:51:30 athlon 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Mar 31 17:51:30 athlon Call Trace:
Mar 31 17:51:30 athlon [<e0bf8dcd>] snd_timer_user_append_to_tqueue+0x3d/0x50 [snd_timer]
Mar 31 17:51:30 athlon [<e0bf9b08>] snd_timer_user_params+0x208/0x220 [snd_timer]
Mar 31 17:51:30 athlon [<e0bf9d72>] snd_timer_user_ioctl+0x132/0x230 [snd_timer]
Mar 31 17:51:30 athlon [<c016737a>] do_ioctl+0x6a/0xa0
Mar 31 17:51:30 athlon [<c01675ae>] vfs_ioctl+0x5e/0x1d0
Mar 31 17:51:30 athlon [<c016775d>] sys_ioctl+0x3d/0x70
Mar 31 17:51:30 athlon [<c0103119>] sysenter_past_esp+0x52/0x75
Mar 31 17:51:30 athlon Code: d2 b8 f2 ff ff ff c3 90 90 90 90 90 90 90 90 90 83
ec 08 81 f9 ff 01 00 00 89 34 24 89 7c 24 04 89 d6 89 ca 77 1f c1 e9 02 89 c7 <f3> a5 f6 c2 02 74 02 66 a5 f6 c2 01 74 01 a4 8b 34 24 8b 7c 24
-------------------------------------------------------------

mplayer coredumps on sound-initialisation. (OSS emulation works, but produce no sound).

However xine, wesnoth and mpg123 work without any trouble.

Any ideas?
Comment 6 Dion Sole 2005-03-31 07:11:43 UTC
I get this too. It's probably because the current kernel ALSA version is 1.0.8
Changing back to 1.0.8 fixes it for now. 
Comment 7 Jonathan Coome (RETIRED) gentoo-dev 2005-03-31 08:05:59 UTC
Curiously, on amd64 I have no problems at all. I'm using the emu10k1 driver from the kernel, built as a module. I'm using vanilla-sources-2.6.11.6. mplayer, xine and mpd work perfectly.

  $ emerge -pv alsa-headers alsa-utils alsa-lib 

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] media-sound/alsa-headers-1.0.9_rc2  0 kB 
[ebuild   R   ] media-sound/alsa-utils-1.0.7  0 kB 
[ebuild   R   ] media-libs/alsa-lib-1.0.9_rc2  -doc -jack 0 kB 

Total size of downloads: 0 kB


 $ emerge --info
Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11.6 x86_64)
=================================================================
System uname: 2.6.11.6 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Mar 19 2005, 00:16:44)]
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="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -frename-registers -ftracer -fweb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /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=athlon64 -O2 -pipe -fomit-frame-pointer -frename-registers -ftracer -fweb"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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="amd64 X alsa apache2 avi cdr crypt divx4linux dvd dvdr flac gpm gtk gtk2 imagemagick imlib jpeg mng mpeg msn mysql ncurses nls nptl offensive oggvorbis opengl pam pdflib php png python readline samba truetype xine xpm xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL
Comment 8 Leung Ki Chi 2005-03-31 08:36:13 UTC
That is odd. I'm using the kernel sound module as well.

Maybe it is a arch-specific bug.
Comment 9 younker 2005-03-31 15:15:34 UTC
Yes, I have the problem, but the only one problem I can used is xfmedia, so I think maybe xine is fine, but others failed, 
xmms, beep-media-player, muine, gmplayer and even gaim.


this is a big problem for my box.
Comment 10 Wulf Krueger (RETIRED) gentoo-dev 2005-03-31 22:50:23 UTC
Happens to me, too. It seems to be an incompatibility between the kernel's ALSA modules and the 1.0.9_rc2 libs/headers. I get this kernel oops every few minutes (Notice the "snd_timer_.*" stuff):

Apr  1 08:19:11 ultimo Unable to handle kernel NULL pointer dereference at virtual address 00000000
Apr  1 08:19:11 ultimo printing eip:
Apr  1 08:19:11 ultimo c0213f1b
Apr  1 08:19:11 ultimo *pde = 00000000
Apr  1 08:19:11 ultimo Oops: 0002 [#1]
Apr  1 08:19:11 ultimo PREEMPT
Apr  1 08:19:11 ultimo Modules linked in: fglrx nfsd exportfs it87 eeprom i2c_sensor i2c_isa i2c_viapro binfmt_misc sn
d_seq_midi snd_pcm_oss snd_mixer_oss snd_seq_oss snd_seq_midi_event snd_seq snd_ens1371 snd_via82xx snd_ac97_codec snd
_pcm snd_timer snd_page_alloc gameport snd_mpu401_uart snd_rawmidi snd_seq_device snd soundcore usbcore subfs
Apr  1 08:19:11 ultimo CPU:    0
Apr  1 08:19:11 ultimo EIP:    0060:[<c0213f1b>]    Tainted: P      VLI
Apr  1 08:19:11 ultimo EFLAGS: 00010212   (2.6.11-gentoo-r4)
Apr  1 08:19:11 ultimo EIP is at memcpy+0x1b/0x50
Apr  1 08:19:11 ultimo eax: 00000000   ebx: ed96da60   ecx: 00000004   edx: 00000010
Apr  1 08:19:11 ultimo esi: ed791ef0   edi: 00000000   ebp: ed791f00   esp: ed791ed8
Apr  1 08:19:11 ultimo ds: 007b   es: 007b   ss: 0068
Apr  1 08:19:11 ultimo Process artsd (pid: 8041, threadinfo=ed790000 task=ee301580)
Apr  1 08:19:11 ultimo Stack: ed791ef0 bfffead0 f08e0ced ed96da60 ffffffea f08e19fa 00000006 00000000
Apr  1 08:19:11 ultimo 00000000 00000000 00000005 00000001 00000000 00000000 00008002 00000000
Apr  1 08:19:11 ultimo 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Apr  1 08:19:11 ultimo Call Trace:
Apr  1 08:19:11 ultimo [<f08e0ced>] snd_timer_user_append_to_tqueue+0x3d/0x50 [snd_timer]
Apr  1 08:19:11 ultimo [<f08e19fa>] snd_timer_user_params+0x1fa/0x210 [snd_timer]
Apr  1 08:19:11 ultimo [<f08e1c52>] snd_timer_user_ioctl+0x132/0x230 [snd_timer]
Apr  1 08:19:11 ultimo [<c016331a>] do_ioctl+0x6a/0xa0
Apr  1 08:19:11 ultimo [<c016352e>] vfs_ioctl+0x5e/0x1d0
Apr  1 08:19:11 ultimo [<c0163712>] sys_ioctl+0x72/0x90
Apr  1 08:19:11 ultimo [<c0102569>] sysenter_past_esp+0x52/0x75
Apr  1 08:19:11 ultimo Code: d2 b8 f2 ff ff ff c3 90 90 90 90 90 90 90 90 90 83 ec 08 81 f9 ff 01 00 00 89 34 24 89 7c
 24 04 89 d6 89 ca 77 1f c1 e9 02 89 c7 <f3> a5 f6 c2 02 74 02 66 a5 f6 c2 01 74 01 a4 8b 34 24 8b 7c 24

Downgrading to 1.0.8 immediately solved this, though.

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 AMD Athlon(TM) XP 2800+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 20 2005, 14:29:53)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.5, 1.4_p6, 1.8.5-r3, 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 -mtune=athlon-xp -O3 -pipe -fprefetch-loop-arrays -mmmx -msse -m3dnow -fomit-frame-pointer -Wl,-O1"
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/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-xp -mtune=athlon-xp -O3 -pipe -fprefetch-loop-arrays -mmmx -msse -m3dnow -fomit-frame-pointer -Wl,-O1 -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/ http://mirror.switch.ch/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo http://gentoo.mirror.solnet.ch http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.math.bme.hu http://gentoo.mirror.icd.hu/ http://ftp.heanet.ie/pub/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ ftp://ftp.du.se/pub/os/gentoo http://ftp.du.se/pub/os/gentoo http://ds.thn.htu.se/linux/gentoo http://mirror.pudas.net/gentoo ftp://mirror.pudas.net/gentoo http://mirror.uni-c.dk/gentoo/ http://mir.zyrianes.net/gentoo/ ftp://mir.zyrianes.net/gentoo/ http://mirror.uni-c.dk/gentoo/ http://mirror.gentoo.no/ http://gentoo.ynet.sk/pub http://linuv.uv.es/mirror/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.osuosl.org/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/fluidportage/trunk"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 16bit 3dnow 3dnowex 3ds S3TC X X509 Xaw3d a52 aac aalib acl alsa apache2 apm arts artswrappersuid artworkextra async audiofile avi bash-completion bdf berkdb bitmap-fonts bzip2 bzlib c++ caps cdb cdparanoia cdr chroot client codecs cpdflib cracklib crypt css cups curl curlwrappers dga dio divx4linux djbfft dts dvd dvdr dxr3 emacs emacs-w3 emboss encode esd ethereal exif extensions fam fame fastcgi fb fbcon flac fluidsynth font-server foomaticdb foreign-package foreign-sysvinit fortran fpx freetype gd gdbm gif gimp gimpprint glut gnokii gnome gnutls gpm graphviz gs gstreamer gtk gtk2 guile iconv idea imagemagick imap imlib innodb ipv6 java jbig jce joystick jp2 jpeg jpeg2k junit kde latex ldap leim libg++ libwww ltsp lzo lzw mad mikmod milter mime mjpeg mmap mmx mng monkey motif mozdevelop mozilla mozsvg mp3 mpeg mplayer mule multi-tty mysql mysqli nas ncurses network nls nptl ntlm odbc offensive oggvorbis openal opengl oss pam pcntl pcre pdflib perl php pic pie plotutils png posix python qt quicktime readline real recode samba sasl scanner sdk sdl shared sharedmem slang smime sndfile snmp sockets sox speex spell sse ssl svg svga sysvipc tcltk tcpd tetex theora tiff timidity transcode truetype truetype-fonts type1-fonts unicode v4l2 vcdimager videos wmf wxwindows xanim xchatdccserver xface xine xml2 xmlrpc xmms xpm xrandr xscreensaver xsl xv xvid xvmc yv12 zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL
Comment 11 Paul Varner (RETIRED) gentoo-dev 2005-03-31 23:54:24 UTC
Same here, I get the following message from the kernel:

Unable to handle kernel NULL pointer dereference at virtual address 00000000
printing eip:
c01e92cd
*pde = 00000000
Oops: 0002 [#27]
PREEMPT
Modules linked in: nls_iso8859_1 nls_cp437 vmnet vmmon snd_pcm_oss snd_mixer_oss snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device tuner tvaudio bttv video_buf firmware_class btcx_risc tveeprom snd_intel8x0 snd_ac97_codec snd_pcm snd_timer snd soundcore snd_page_alloc nvidia
CPU:    0
EIP:    0060:[<c01e92cd>]    Tainted: P      VLI
EFLAGS: 00010202   (2.6.11-gentoo-r4)
EIP is at memcpy+0x1d/0x40
eax: 00000010   ebx: c3d07880   ecx: 00000004   edx: 00000000
esi: eefbaecc   edi: 00000000   ebp: b6454298   esp: eefbaea0
ds: 007b   es: 007b   ss: 0068
Process xmms (pid: 28084, threadinfo=eefba000 task=f18af020)
Stack: f7874800 eefbaedc f8863d46 00000000 eefbaecc 00000010 c3d07880 f8864b0a
c3d07880 eefbaecc 00000050 00000006 00000000 00000000 00000000 00000005
00000001 00000000 00000000 00008002 00000000 00000000 00000000 00000000
Call Trace:
[<f8863d46>] snd_timer_user_append_to_tqueue+0x46/0x50 [snd_timer]
[<f8864b0a>] snd_timer_user_params+0x1ca/0x210 [snd_timer]
[<f8864ea2>] snd_timer_user_ioctl+0x202/0x210 [snd_timer]
[<c0162360>] do_ioctl+0x70/0xa0
[<c01625a5>] vfs_ioctl+0x65/0x1f0
[<c0162775>] sys_ioctl+0x45/0x70
[<c0102649>] sysenter_past_esp+0x52/0x75
Code: 50 fd 31 c0 c3 31 d2 b8 f2 ff ff ff c3 90 83 ec 08 8b 44 24 14 89 34 24 8b 54 24 0c 89 7c 24 04 8b 74 24 10 89 c1 c1 e9 02 89 d7 <f3> a5 a8 02 74 02 66 a5 a8 01 74 01 a4 8b 34 24 89 d0 8b 7c 24

Emerge Info:
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, 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 1.80GHz
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 19 2005, 10:18:50)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.9.5, 1.8.5-r3, 1.7.9-r1, 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"
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/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
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="x86 X acpi alsa apache2 arts artswrappersuid audiofile avi bash-completion berkdb bitmap-fonts cdr crypt cups curl dvd emboss encode fam fbcon flac font-server foomaticdb fortran gdbm gif gpm gtk gtk2 imagemagick imlib java javascript jpeg kde libg++ libwww mad maildir mikmod mmx motif mozilla moznocompose moznoirc moznomail mp3 mpeg ncurses nls nptl oggvorbis opengl pam pda pdflib perl png ppds python qt quicktime readline samba sasl sdl spell sqlite sse ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts usb xml2 xmms xv zlib linguas_en"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 12 Sven E. 2005-04-01 02:37:48 UTC
*** Bug 87493 has been marked as a duplicate of this bug. ***
Comment 13 Craig Duquette 2005-04-01 09:38:48 UTC
Same issue here. All apps seem to segfault during playback.

$ gst-launch-0.8 gnomevfssrc location=Music.mp3 ! mad ! alsasink
RUNNING pipeline ...
Segmentation fault

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 -ff
ast-math"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X1
1/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.c
om http://194.117.143.70 ftp://194.117.143.69/mirrors/gentoo http://212.219.56.1
52/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 sse
2 ssl tcpd tiff truetype truetype-fonts type1-fonts xine xml2 xprint xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL
Comment 14 Stefan Briesenick (RETIRED) gentoo-dev 2005-04-01 10:42:44 UTC
well, I'm using ~x86 and all I can say right now is, that *all* ALSA-apps are broken. I try to re-emerge some of them and look what happens.
Comment 15 Jan Brinkmann (RETIRED) gentoo-dev 2005-04-02 14:20:12 UTC
*** Bug 87521 has been marked as a duplicate of this bug. ***
Comment 16 Jan Brinkmann (RETIRED) gentoo-dev 2005-04-02 17:40:50 UTC
i can't reproduce your problems. my hole system is compiled with sane CFLAGS settings (CFLAGS="-O2 -march=k8 -pipe") and it works fine. most of you have very aggressive CFLAGS, change to sane cflags and recompile your system. that will possibly fix a lot of your problems.

Stefan Briesenick , sorry that i've got to say that but it is simply wrong that all of them are broken since it works fine here for me. Your CFLAGS are to aggressive.
Comment 17 Kenyon Ralph 2005-04-02 18:41:06 UTC
My normal CFLAGS are "-O3 -march=pentium4 -msse2 -pipe -fomit-frame-pointer".  I just recompiled alsa-lib with CFLAGS="-march=pentium4 -pipe" and did /etc/init.d/alsasound restart, then tried to play something with Beep Media Player, and got the kernel Oops still.  My normal CFLAGS aren't that aggressive, so for some reason I don't think it's CFLAGS causing everyone's problem.
Comment 18 Stefan Briesenick (RETIRED) gentoo-dev 2005-04-02 19:06:37 UTC
@Comment 16: Jan, if my CFLAGS are too aggressive, then ALSA 1.0.8 should be also broken. But it isn't!

Ok, just for you:

1. having 1.0.8 installed and many ALSA apps
2. they're working perfectly, w/o any problems or segfaults
3. my whole system is compiled with my "aggressive" CFLAGS

Now I emerge ALSA-LIBs 1.0.9_rc2...

SegFaults. *EVERY* ALSA-Apps is crashing now.

Now I downgrade again to 1.0.8

No SegFaults, everything is working again w/o any problems.

So the *only* possible explanation is: ALSA-LIB 1.0.9 is broken on *MY* system. That may be a bad combination of Kernel+ALSA or my CFLAGS.

Ok, just for you, I will re-emerge ALSA 1.0.9 with CFLAGS="-O2". If it works then, you have won. If not, my CFLAGS are not the problem. I tell you the result in a few minutes.
Comment 19 Stefan Briesenick (RETIRED) gentoo-dev 2005-04-02 19:19:16 UTC
OK, I recompiled ALSA-LIB with just "-O2" and nothing else. It Segfaults *all* my ALSA-Apps. No matter if I try ogg123 via libao or aplay or aRts or OSS-Apps via aoss or XMMS or BMP or MPlayer ... or ... or ...

Now I will re-emerge 1.0.8 with my "aggressive" CFLAGS and all my apps are working again.

And now? CFLAGS are out. Next suggestion?
Comment 20 Stefan Briesenick (RETIRED) gentoo-dev 2005-04-02 19:29:54 UTC
hey, one question: do you use dmix? I have a 6ch dmix-setup in my asoundrc. Perhaps something like that is broken...
Comment 21 Kenyon Ralph 2005-04-02 19:31:52 UTC
I use no asoundrc or asound.conf at all.
Comment 22 Jan Brinkmann (RETIRED) gentoo-dev 2005-04-02 19:33:04 UTC
no i don't use it. see the following:

01:24:51 < Flameeyes> just to know, with latest alsa, dmix configuration which was on wiki two weeks ago doesn't work
01:24:51 < Flameeyes> it used to use 'dmix' as name for the device
01:24:51 < Flameeyes> but in the latest alsa-lib dmix isn't a valid device name
Comment 23 Craig Duquette 2005-04-02 21:18:18 UTC
Taking alsa support out of the kernel and emerging alsa-driver works for me. Segfaults are gone. My guess is there's some incompatibility between alsa versions.
Comment 24 Paul Varner (RETIRED) gentoo-dev 2005-04-02 21:30:48 UTC
My CFLAGS are CFLAGS="-march=pentium4 -O2 -pipe" which are basically the same as yours.  Sorry, I'm not buying that it's a CFLAG issue.
Comment 25 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-03 01:44:30 UTC
Well this is the same of bug #87544 (I missed this yesterday night, else i'd have already told).
Seems like alsa-lib 1.0.9 doesn't like 1.0.8 drivers (the in-kernel ones, or alsa-driver 1.0.8).

As for comment #23, using alsa-driver 1.0.9 resolve the problem. (Still, there's a bug in alsa-drivers 1.0.8).
Comment 26 Stefan Briesenick (RETIRED) gentoo-dev 2005-04-03 04:30:18 UTC
1. I'm using Kernel 2.6.11-gentoo-r4
2. my dmix-devices are called 'dmix0' and 'dmix1' (I have 2 soundcards)

So, #2 can't be an issue, but #1 can.

btw: we had a similiar problem a few ALSA/KERNEL versions ago. So my very first thought was: ahh, again an incompatibility between Kernel-ALSA and ALSA-Libs.

And it seems, that I was right ;)

@ Jan: don't tell long-time users to use "sane" CFLAGS in the first run, when their whole system is running stable! Of course, bad CFLAGS can harm your installation. But you should ask first, if other -non-related- apps are also crashing. Since I'm using these CFLAGS on many different machines (AMD/INTEL, I only change the arch releated stuff) and they're running stable, I don't see the point why ALSA-LIBs should be broken with them. At least when I said, that 1.0.8 is running w/o any problems.
Comment 27 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-03 04:45:26 UTC
If you are a compiler engineer which knows exactly all the implications of ALL the cflags out there, well then you can do whatever you want.

Else, please note that there're *a lot* of implications on cflags uses, and they can change from version to version.

Also a "safe" flag as -fomit-frame-pointer can make some versions of some software to crash badly (see Wine's problem, not the flag is blacklisted by configure script).

So, if someone tell a "long-time user" to use sane flags is because that's the first thing to test, else the "long-time user" can figure the problem out itself and fix it itself, also. That's just IMHO anyway.
Comment 28 Stefan Briesenick (RETIRED) gentoo-dev 2005-04-03 05:07:17 UTC
I know what CFLAGS can do or not do to badly coded software or when compiler bugs are involved. No question.

But I said: my system is running stable. That means: my CFLAGS are good enough to work with 1000+ programs and 1000+ libs on system.

So, before pointing out that CFLAGS are not "sane" enough, please read what the bug reporter said and try to understand. It's insane to ask for "emerge -e" just to test a broken ALSA-LIB. 

There' many other possibilities why ALSA can be broken. And as you can see, using 1.0.9 both for drivers *and* libs solves the problem. So CFLAGS are not involved.
Comment 29 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-03 05:17:56 UTC
Maybe you miss something. Many packages *strip* the flags, or just remove the flags which are *known* to break something.
So you aren't using your cflags for everything.

And if you think that cflags can harm only "badly coded software" or for "compiler bugs" you just doesn't know what means be a coder. A wrong flag on a perfectly coded package can harm it.
Comment 30 Stefan Briesenick (RETIRED) gentoo-dev 2005-04-03 05:30:15 UTC
ok, lets stop it here. I'm coding for 20+ years now. I understand what you want to say. But I've learned, that when LIB 1.0.8 works and LIB 1.0.9 don't, there're many other possibilities why that happens.

I said, that I think it's a kernel <-> alsa-lib problem. And I was right. Of course, testing "better" CFLAGS are also an option to locate the problem. But also then: don't tell the user to make "emerge -e". A recompile of ALSA-LIBs is more than enough, since 1.0.8 is working properly (so you can be sure, that other apps, and there're many, are not the problem). The "hey, use other CFLAGS and do emerge -e before asking any questions" are insane. That's not the way we should handle and solve problems here. If your car is broken, then you also don't say "hey, use another brand and gas before asking any questions". First try to opt-out all other possibilities.

And now we should end that discussion here. Let's solve problems!
Comment 31 Jan Brinkmann (RETIRED) gentoo-dev 2005-04-03 05:47:24 UTC
marking this one as the duplicate since eradicator knows about this issue, the other bug is assigned to him

*** This bug has been marked as a duplicate of 87544 ***