Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 49052

Summary: rmmod segfault when unloading alsa module snd-via82xx
Product: Gentoo Linux Reporter: Étienne Buira <etienne.buira>
Component: [OLD] LibraryAssignee: x86-kernel (DEPRECATED) <x86-kernel>
Status: RESOLVED UPSTREAM    
Severity: critical Keywords: Inclusion
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Étienne Buira 2004-04-26 11:08:03 UTC
when /sbin/halt, or if i type "/etc/init.d/alsasound {stop,restart}", i see a not so nice rmmod segmentation fault when trying to unload snd-via82xx

Reproducible: Always
Steps to Reproduce:
/etc/init.d/alsasound start (in rc-scripts for me)
/etc/init.d/alsasound {stop,restart}
look the rmmod's crash :o/
Actual Results:  
 * Unloading ALSA...
 * Storing ALSA Mixer Levels
 * Unloading modules
Oops: 0002
 /sbin/rc: line 529:  5473 Segmentation fault      /sbin/rmmod ${MODULE} 2>/dev/null

Expected Results:  
snd-via82xx unloaded, and shutdown can be performed
Comment 1 Étienne Buira 2004-04-26 11:14:51 UTC
This bug avoid any /sbin/halt call (clean shutdown impossible by usual ways). I hope don't report known bug, but the query fails.
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2004-05-06 02:05:29 UTC
this is a kernel issue.  Please post your 'emerge info'
Comment 3 Étienne Buira 2004-05-10 00:58:59 UTC
my `emerge info` :

Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25)
=================================================================
System uname: 2.4.25 i686 mobile AMD Duron(tm) Processor
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /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="-O2 -march=athlon -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://212.219.247.15/sites/www.ibiblio.org/gentoo/ http://212.219.247.20/sites/www.ibiblio.org/gentoo/ http://212.219.247.16/sites/www.ibiblio.org/gentoo/ http://212.219.247.21/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi alsa apm arts avi berkdb cdr crypt cups dga directfb doc dvd encode esd fbcon foomaticdb gdbm gif gnome gpm gtk2 imagemagick imap imlib ipv6 jpeg libg++ libwww mad maildir mbox mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pcmcia pdflib perl png postgres python quicktime readline samba sdl slang spell ssl svga tcpd tetex theora tiff truetype unicode usb videos wmf wxwindows x86 xml xml2 xmms xosd xv zlib"

I hope that a better solution than commenting the for loop exist...

thanks
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2004-06-21 04:41:42 UTC
Which version of ALSA are you running? Please ensure it is the latest. If the problem still exists, please post the output of "dmesg" after attempting to unload the module.
Comment 5 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-06-21 13:04:29 UTC
This is a upstream issue, please verify that it is still a problem with the
2.6.7 kernel, and if so, please file a bug at bugzilla.kernel.org.