Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 201109 - snd_aoa crash on unload
Summary: snd_aoa crash on unload
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-03 14:45 UTC by gringo
Modified: 2007-12-05 08:51 UTC (History)
0 users

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 gringo 2007-12-03 14:45:24 UTC
url describes the problem pretty well : alsa script isn´t able to stop the alsa service and is unusable after stopping the service.

Happens for me for at least two months now, tried several kernels / userspace combinations, but always in-kernel alsa driver.

emerge info :

Portage 2.1.3.9 (default-linux/ppc/ppc32/2007.0/desktop/G4, gcc-4.1.2/vanilla, glibc-2.6.1-r0, 2.6.24-rc6-grc1 ppc)
=================================================================
System uname: 2.6.23-rc6-grc1 ppc 7447A, altivec supported
Timestamp of tree: Sat, 06 Oct 2007 06:30:01 +0000
distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.4-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0_rc4-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="ppc ~ppc"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=7450 -mtune=7450 -pipe -maltivec -mabi=altivec -fivopts -fno-strict-aliasing"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mcpu=7450 -mtune=7450 -pipe -maltivec -mabi=altivec -fivopts -fno-strict-aliasing"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://192.168.1.200 http://ftp.udc.es/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="es_ES@euro"
LC_ALL="es_ES@euro"
LINGUAS="es es_ES de en en_US en_GB"
MAKEOPTS="-j12"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/xeffects /usr/portage/local/layman/sunrise /usr/local/overlay"
SYNC="rsync://192.168.1.200/portage"
USE="X aac acl alsa altivec bash-completion berkdb bitmap-fonts cairo cdr cli cracklib crypt cups cypt dbus dga divx4linux dri dvd dvdread emboss encode evo fam fbcon ffmpeg firefox flac fortran gdbm gif glitz gpm graphviz gtk gtk2 hal iconv ipv6 isdnlog jpeg kde kdeenablefinal kdehiddenvisibility mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly ogg oggvorbis opengl openmp pam pcmcia pcre pdf perl pertty pic png ppc pppd python qt3 qt3support qt4 quicktime radeon readline reflection samba sdl session spell spl ssl svg tcpd threads tiff truetype truetype-fonts type1-fonts unicode usb vorbis xcomposite xml xorg xv xvid zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES de en en_US en_GB" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

thanks !

Reproducible: Always

Steps to Reproduce:
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-12-03 20:00:03 UTC
Don't refer to forums.g.o. for bug description.
Comment 2 gringo 2007-12-04 10:19:00 UTC
(In reply to comment #1)
> Don't refer to forums.g.o. for bug description.
> 

oops, sorry, i copy/paste here the info from the thread :

Alsa works after booting but cant be stopped accurately nor restarted. The first time you try to stop it, it just hangs and the second time :

(/root)-(18:2,1Gb)-->stop alsasound
* Storing ALSA Mixer Levels ... [ ok ]
* Killing processes using ALSA ... [ ok ]
* Unloading ALSA modules ...
ERROR: Removing 'snd_aoa_codec_tas': Device or resource busy
/etc/init.d/alsasound: line 95: 24967 Segmentation Fault rmmod --wait "$1"
ERROR: Removing 'snd_aoa_fabric_layout': Device or resource busy
ERROR: Removing 'snd_aoa': Resource temporarily unavailable
ERROR: Removing 'snd': Resource temporarily unavailable
ERROR: Removing 'snd_aoa_fabric_layout': Device or resource busy
ERROR: Removing 'snd_aoa_fabric_layout': Device or resource busy
ERROR: Removing 'snd_aoa': Resource temporarily unavailable
ERROR: Removing 'snd_aoa_fabric_layout': Device or resource busy
ERROR: Removing 'snd_aoa_fabric_layout': Device or resource busy
ERROR: Removing 'snd_aoa': Resource temporarily unavailable
ERROR: Removing 'snd': Resource temporarily unavailable

after this alsa is apparently unusuable :

(/root)-(18:2,1Gb)-->start alsasound
* Loading ALSA modules ...
* Loading: snd-seq ... [ ok ]
* Restoring Mixer Levels ...
alsactl: load_state:1341: Cannot find soundcard '0'...
* Errors while restoring defaults, ignoring

although all needed modules are loaded again.

segfault kernel log :

266 Unable to handle kernel paging request for data at address 0x00000000
267 Faulting instruction address: 0xf212417c
268 Oops: Kernel access of bad area, sig: 11 [#1]
269 PREEMPT PowerMac
270 Modules linked in: cpufreq_ondemand cpufreq_userspace cpufreq_powersave radeon drm therm_adt746x i2c_powermac i2c_dev us 270 bhid hid arc4 ecb blkcipher cryptomgr snd_aoa_fabric_layout snd_aoa b43 firmware_class rng_core mac80211 cfg80211 sungem 270 sungem_phy snd_aoa_i2sbus snd_pcm ehci_hcd snd_timer snd_page_alloc snd soundcore yenta_socket snd_aoa_soundbus ohci_hc 270 d rsrc_nonstatic usbcore pcmcia_core ssb
271 NIP: f212417c LR: f2124174 CTR: 00000000
272 REGS: e049ddf0 TRAP: 0300 Not tainted (2.6.24-rc3-zen3)
273 MSR: 00009032 <EE,ME,IR,DR> CR: 24000482 XER: 00000000
274 DAR: 00000000, DSISR: 40000000
275 TASK = eaf74600[32053] 'rmmod' THREAD: e049c000
276 GPR00: 00000000 e049dea0 eaf74600 001000c0 e0486600 00000001 00000000 00000000
277 GPR08: 00000000 00000000 24004488 e049c000 00000000 1001c110 00000010 100a0000
278 GPR16: 00000008 100c0000 100a0000 100c0000 00000000 bfaade70 bfab0b7f 00000000
279 GPR24: 00000000 00000000 00000000 00000000 00000080 f212c6e4 f2128178 ffffffc0
280 NIP [f212417c] aoa_fabric_unregister+0x4c/0x90 [snd_aoa]
281 LR [f2124174] aoa_fabric_unregister+0x44/0x90 [snd_aoa]
282 Call Trace:
283 [e049dea0] [f2124174] aoa_fabric_unregister+0x44/0x90 [snd_aoa] (unreliable)
284 [e049deb0] [f212aeb4] aoa_fabric_layout_exit+0x28/0x5ec [snd_aoa_fabric_layout]
285 [e049ded0] [c0057fdc] sys_delete_module+0x1bc/0x204
286 [e049df40] [c0013a28] ret_from_syscall+0x0/0x38
287 --- Exception: c01 at 0xff3062c
288 LR = 0x100025c0
289 Instruction dump:
290 40be0060 3d20f213 81698178 3bc98178 3bebffc0 4800001c 801f0048 2f800000
291 419e0008 4bfffe91 813f0040 3be9ffc0 <801f0040> 2f800000 419e0008 7c00022c

thanks !
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-12-04 10:57:10 UTC

*** This bug has been marked as a duplicate of bug 170907 ***
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2007-12-04 11:51:32 UTC
not a dup: if you can crash the kernel by running a command (rmmod snd_aoa) then it's a kernel bug
Comment 5 gringo 2007-12-04 14:18:39 UTC
just checked 170907 and indeed it describes more or less the same problem i´m seeing here. Just guessing but could it be possible that i just catched the segfault and no one on the other bugreport did ?

Do you guys want me to open a new bug upstream ?

thanks !
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2007-12-04 21:04:11 UTC
The other bug isn't a kernel crash, it's genuinely the init script trying to unload the modules in the wrong order. You may also run into the issue described there after we fix the kernel crash, but for now the crash is the first obstacle.

Yes, please file this upstream on the alsa bug tracker and post the new URL here.
Comment 7 gringo 2007-12-05 08:51:41 UTC
(In reply to comment #6)
> Yes, please file this upstream on the alsa bug tracker and post the new URL
> here.
> 

done : http://bugtrack.alsa-project.org/alsa-bug/view.php?id=3631

thanks !