Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71257 - alsa 1.0.7 segfaults / hangs system on boot
Summary: alsa 1.0.7 segfaults / hangs system on boot
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 All
: High normal
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
: 71727 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-15 01:04 UTC by Florian E.J. Fruth
Modified: 2005-01-08 05:28 UTC (History)
2 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 Florian E.J. Fruth 2004-11-15 01:04:51 UTC
i'm using the onboard azx codec (intel 915pgl board) + an emu10k1 soundcard. the azx codec was detected but i couldn't get sound out of it with alsa-1.0.6a so i tried to upgrade to 1.0.7 - after reboot the following happened:

--------------------------------------------------------------------------
 * Loading ALSA drivers ...
 *   Loading: snd-azx ...
 *   [ ok ] *   Loading: snd-emu10k1 ...
 *   [ ok ] *   Loading: snd-seq-oss ...
 *   [ ok ] *   Loading: snd-pcm-oss ...
Oops: 0000 [#1]
SMP
Modules linked in: snd_mixer_oss snd_seq_oss snd_seq_midi_event snd_seq
snd_emu10k1 snd_rawmidi snd_seq_device snd_ac97_codec snd_util_mem snd_hwdep
snd_azx snd_pcm snd_timer snd snd_page_alloc
CPU:    1
EIP:    0060:[<e0899b41>]    Not tainted VLI
EFLAGS: 00010286   (2.6.9)
EIP is at snd_azx_cap_select_info+0x3a/0x4d [snd_azx]
eax: 00000000   ebx: e0931b00   ecx: de2ea000   edx: dd9a7d0c
esi: 00000000   edi: dd9a7d64   ebp: dd9a7eb8   esp: dd9a7ce4
ds: 007b   es: 007b   ss: 0068
Process modprobe (pid: 23438, threadinfo=dd9a6000 task=dad16130)
Stack: 00000000 dd9a7e1c e092f13a db171a00 dd9a7d0c 00000000 00000000 00000009
       00000000 db171a00 00000000 00000000 00000000 00000000 00000000 00000000
       00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Call Trace:
 [<e092f13a>] snd_mixer_oss_build_input+0x502/0x681 [snd_mixer_oss]
 [<c0391a77>] sound_insert_unit+0x103/0x13c
 [<e092f75f>] snd_mixer_oss_build+0x35/0x60 [snd_mixer_oss]
 [<e092f97b>] snd_mixer_oss_notify_handler+0x1a1/0x24b [snd_mixer_oss]
 [<e088f03b>] alsa_mixer_oss_init+0x3b/0x48 [snd_mixer_oss]
 [<c013ca6c>] sys_init_module+0x188/0x231
 [<c010609f>] syscall_call+0x7/0xb
Code: 44 24 0c 8d 7a 58 8b 48 5c c7 42 40 03 00 00 00 c7 42 48 01 00 00 00 0f
b6 81 3c 02 00 00 89 42 50 8b 42 54 8b b4 81 40 02 00
00 <ac> aa 84 c0 75 fa 31 c0 8b 34 24 8b 7c 24 04 83 c4 08 c3 53 83
 /etc/init.d/alsasound: line 76: 23438 Segmentation fault      /sbin/modprobe
${DRIVER}                                       [ !! ] *   Loading:
snd-emu10k1-synth ...
[ ok ] *   Loading: snd-seq-midi ...
[ ok ] * Restoring Mixer Levels
--------------------------------------------------------------------------

trying to restore/saving the mixer levels always hangs the boot process/the shell.
i'm using kernel 2.6.9 (standard non-gentoo):

--------------------------------------------------------------------------
# emerge info
Portage 2.0.51-r3 (default-x86-2004.2, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9 i686)
=================================================================
System uname: 2.6.9 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.6.6
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -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.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/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/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/mirrors/gentoo http://ftp.tu-clausthal.de/pub/linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo http://trumpetti.atm.tut.fi/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.easynet.nl/mirror/gentoo http://www.mirror.ac.uk/sites/www.ibiblio.org/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="X Xaw3d acpi alsa apm arts artswrappersuid avi berkdb bitmap-fonts bmp cdr crypt cups dga dvd dvdr encode esd fbcon foomaticdb ftp gif gstreamer gtk gtk2 icq imlib ipv6 ithreads jpeg kde libcaca libg++ libwww lzw-tiff mad mikmod mime mmx mmx2 motif moznocompose moznoirc moznomail mpeg nas ncurses nls nvidia oggvorbis ooo-kde opengl operanom2 oss pam pda pdflib perl png psqlonly python qt readline recode sdl sharedmem slang socks5 spell sse ssl svga tcltk tcpd tetex threads tiff truetype usb videos x86 xml2 xosd xv xvid xvmc zlib"
--------------------------------------------------------------------------
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2004-11-18 11:48:35 UTC
what do you mean by alsa-1.0.6a and alsa-1.0.7?  Please be specific as there are multiple alsa packages.  What version of the drivers do you have (and from kernel or media-sound/alsa-driver)?
Comment 2 Florian E.J. Fruth 2004-11-18 12:07:16 UTC
i use a non-patched kerne.org-2.6.9 kernel
(compiled without alsa-support:
[x] sound card support
  [ ] alsa support
  [ ] oss support
)
with the media-sound/alsa-driver packages (kernel alsa is far away from azx as far as i got into it)

with alsa-1.0.7 i mean ~x86 packages:
-> media-sound/alsa-driver-1.0.7
-> media-sound/alsa-headers-1.0.7
-> media-libs/alsa-lib-1.0.7
-> media-sound/alsa-utils-1.0.7

with alsa-1.0.6a i mean ~x86 packages:
-> media-sound/alsa-driver-1.0.6a
-> media-sound/alsa-headers-1.0.6a
-> media-libs/alsa-lib-1.0.6
-> media-sound/alsa-utils-1.0.6
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2004-11-18 12:16:56 UTC
ok... some changes have been made to the alsasound init script recently which might have caused snd-emu10k1-synth to NOT load in 1.0.6a.  I want to first make sure that isn't the culprit...

can you go back down to alsa-drivers-1.0.6a (you don't need to change your other package versions...) and test if the oops occurs?
Comment 4 Florian E.J. Fruth 2004-11-18 12:40:31 UTC
as 1.0.7 didn't work i instandly switched back to 1.0.6a (all alsa-packages) and it works fine - only problem i can't get sound out of my azx onboard soundcard (even if the system regocnizes it and i can use it as ouput device i hear nothing and only get 2 mixer-entries in alsamixer ;). despite of that i can use the drivers from intel (Audio: Intel
Comment 5 Florian E.J. Fruth 2004-11-18 12:40:31 UTC
as 1.0.7 didn't work i instandly switched back to 1.0.6a (all alsa-packages) and it works fine - only problem i can't get sound out of my azx onboard soundcard (even if the system regocnizes it and i can use it as ouput device i hear nothing and only get 2 mixer-entries in alsamixer ;). despite of that i can use the drivers from intel (Audio: Intel® HD Audio Controller - Realtek codec: http://www.intel.com/design/motherbd/gn/gn_drive.htm) and the azx sound works fine - but then i can't get my emu10k1 card to work.

fejf@fejfs:[~] > lsmod
Module                  Size  Used by
nvidia               3467068  12
snd_pcm_oss            54312  0
snd_mixer_oss          20480  1 snd_pcm_oss
snd_seq_midi            8736  0
snd_emu10k1_synth       8192  0
snd_emux_synth         39168  1 snd_emu10k1_synth
snd_seq_virmidi         8448  1 snd_emux_synth
snd_seq_midi_emul       8448  1 snd_emux_synth
snd_seq_oss            37376  0
snd_seq_midi_event      8064  3 snd_seq_midi,snd_seq_virmidi,snd_seq_oss
snd_seq                57104  8 snd_seq_midi,snd_emux_synth,snd_seq_virmidi,snd_seq_midi_emul,snd_seq_oss,snd_seq_midi_event
snd_emu10k1            99464  3 snd_emu10k1_synth
snd_rawmidi            26020  3 snd_seq_midi,snd_seq_virmidi,snd_emu10k1
snd_seq_device          8456  7 snd_seq_midi,snd_emu10k1_synth,snd_emux_synth,snd_seq_oss,snd_seq,snd_emu10k1,snd_rawmidi
snd_ac97_codec         71888  1 snd_emu10k1
snd_util_mem            4864  2 snd_emux_synth,snd_emu10k1
snd_hwdep              10244  2 snd_emux_synth,snd_emu10k1
snd_azx                31672  2
snd_pcm                98052  3 snd_pcm_oss,snd_emu10k1,snd_azx
snd_timer              26628  2 snd_seq,snd_pcm
snd                    57700  22 snd_pcm_oss,snd_mixer_oss,snd_emux_synth,snd_seq_virmidi,snd_seq_oss,snd_seq,snd_emu10k1,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_hwdep,snd_azx,snd_pcm,snd_timer
snd_page_alloc         10120  2 snd_emu10k1,snd_pcm
Comment 6 Florian E.J. Fruth 2004-11-18 12:44:11 UTC
while searching for the intel download link i stumbled across this alsa-user thread: it seams as this is the same problem with the same chip on a slightly different mainboard :P

http://sourceforge.net/mailarchive/forum.php?thread_id=5891027&forum_id=1751
Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2004-11-18 14:19:11 UTC
ok... since this is a bit too complex for me to debug (as I don't have the hardware... my emu10k1 is working fine for me...), I'm going to suggest following this up with upstream developers.  File a bug report on ALSA's bug tracker, and respond to that alsa-user thread.  Please let me know the URL of the bug report so I can add myself to the CC list and get a fix in once it's ready.

Make sure to report the revision of your emu10k1 board.  Look for something like this in /proc/pci:

  Bus  2, device  12, function  0:
    Multimedia audio controller: Creative Labs SB Audigy (rev 4).
      IRQ 3.
      Master Capable.  Latency=32.  Min Gnt=2.Max Lat=20.
      I/O at 0xd400 [0xd43f].

Sorry I couldn't be of more help...
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2004-11-26 02:31:31 UTC
*** Bug 71727 has been marked as a duplicate of this bug. ***
Comment 9 Florian E.J. Fruth 2005-01-08 05:28:30 UTC
i just want to leave a message that the alsa-*-1.0.8_rc1 ebuilds fixes this issue for my box. both cards work fine and the azx got 10 mixer chans instead of 2 when using 1.0.6x