Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131782 - alsa-driver-1.0.11 kernel oops
Summary: alsa-driver-1.0.11 kernel oops
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-30 04:09 UTC by Robert Wolf
Modified: 2006-10-01 22:23 UTC (History)
4 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 Robert Wolf 2006-04-30 04:09:13 UTC
Hi all. First of all, sorry for reporting here and not in Alsa-project bug tracking system, but I'm not able to register there (I've registered, but the server hasn't sent me a password).

I have problem with alsa-driver-1.0.11, when I compile with vanilla-sources-2.6.15.1 the driver snd-intel8x0 makes kernel oops.

Can you anyone pass this error to Alsa team or tell me, where can be some problem? I have motherboard GA-K8N-SLI with nVidia sound (driver snd-intel8x0). If you need, I will copy lspci or other dump of system config.

Here is the Oops:

Apr 29 09:23:46 flow Unable to handle kernel NULL pointer dereference at virtual address 00000049
Apr 29 09:23:46 flow printing eip:
Apr 29 09:23:46 flow f99c7eb2
Apr 29 09:23:46 flow *pde = 00000000
Apr 29 09:23:46 flow Oops: 0000 [#1]
Apr 29 09:23:46 flow PREEMPT 
Apr 29 09:23:46 flow Modules linked in: snd_intel8x0 ipt_state ipt_REJECT iptable_filter iptable_nat ip_nat ip_conntrack nfnetlink ip_tables vmnet parport_pc parport vmmon snd_pcm_oss snd_mixer_oss snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_ymfpci snd_via82xx_modem snd_via82xx snd_trident snd_sonicvibes snd_rme9652 snd_rme96 snd_rme32 snd_pcxhr snd_nm256 snd_mona snd_mixart snd_mia snd_maestro3 snd_layla24 snd_layla20 snd_korg1212 snd_indigoio snd_indigodj snd_indigo snd_ice1724 snd_ak4114 snd_ice1712 snd_ice17xx_ak4xxx snd_ak4xxx_adda snd_cs8427 snd_i2c snd_hdspm snd_hdsp snd_hda_codec snd_gina24 snd_gina20 snd_fm801 snd_es1968 snd_es1938 snd_ens1371 snd_ens1370 snd_ak4531_codec snd_emu10k1x snd_emu10k1 snd_util_mem snd_echo3g snd_darla24 snd_darla20 snd_cs46xx snd_cs4281 snd_cmipci snd_ca0106 snd_bt87x snd_azt3328 snd_au8830 snd_au8820 snd_au8810 snd_atiixp_modem snd_atiixp firmware_class snd_als4000 snd_sb_common gameport snd_opl3_lib snd_hwdep snd_mpu401_uart snd_rawmidi snd_seq_device snd_ali5451 snd_ad1889 snd_ac97_codec snd_pcm snd_timer snd_page_alloc snd_ac97_bus snd soundcore dm_mod cloop unionfs cifs shfs fuse ppp_mppe ppp_generic slhc rtc tun spca5xx videodev ndiswrapper ohci_hcd ehci_hcd it87 hwmon_vid eeprom i2c_isa i2c_dev i2c_nforce2 i2c_core nvidia_agp fglrx agpgart svgalib_helper forcedeth tsdev
Apr 29 09:23:46 flow CPU:    0
Apr 29 09:23:46 flow EIP:    0060:[<f99c7eb2>]    Tainted: P      VLI
Apr 29 09:23:46 flow EFLAGS: 00210202   (2.6.15.1) 
Apr 29 09:23:46 flow EIP is at intel8x0_measure_ac97_clock+0x2b/0x2ba [snd_intel8x0]
Apr 29 09:23:46 flow eax: 00000001   ebx: c2a60c00   ecx: 00000000   edx: f99c9398
Apr 29 09:23:46 flow esi: 00000000   edi: c2a60c31   ebp: f68c2000   esp: c8141e68
Apr 29 09:23:46 flow ds: 007b   es: 007b   ss: 0068
Apr 29 09:23:46 flow Process modprobe (pid: 16750, threadinfo=c8140000 task=f5f28070)
Apr 29 09:23:46 flow Stack: f99c9399 c8141e80 f99c8849 c2a60c44 00000050 c2a60c00 00000000 c2a60c31 
Apr 29 09:23:46 flow f99cb844 f99c885d f68c2000 f68c2000 ffffffed c1b05000 f99cc540 f99cc568 
Apr 29 09:23:46 flow c0247779 c1b05000 f99cb844 c02477af f99cc540 c1b05000 f99cb844 f99cc540 
Apr 29 09:23:46 flow Call Trace:
Apr 29 09:23:46 flow [<f99c8849>] snd_intel8x0_probe+0x13b/0x17a [snd_intel8x0]
Apr 29 09:23:46 flow [<f99c885d>] snd_intel8x0_probe+0x14f/0x17a [snd_intel8x0]
Apr 29 09:23:46 flow [<c0247779>] pci_call_probe+0xf/0x12
Apr 29 09:23:46 flow [<c02477af>] __pci_device_probe+0x33/0x47
Apr 29 09:23:46 flow [<c02477e2>] pci_device_probe+0x1f/0x34
Apr 29 09:23:46 flow [<c029b03e>] driver_probe_device+0x37/0x81
Apr 29 09:23:46 flow [<c029b0e8>] __driver_attach+0x0/0x36
Apr 29 09:23:46 flow [<c029b10c>] __driver_attach+0x24/0x36
Apr 29 09:23:46 flow [<c029a8a2>] bus_for_each_dev+0x47/0x6d
Apr 29 09:23:46 flow [<c0239bc3>] kobject_add+0x83/0xa2
Apr 29 09:23:46 flow [<c029b132>] driver_attach+0x14/0x18
Apr 29 09:23:46 flow [<c029b0e8>] __driver_attach+0x0/0x36
Apr 29 09:23:46 flow [<c029ac7a>] bus_add_driver+0x54/0x96
Apr 29 09:23:46 flow [<c029b475>] driver_register+0x34/0x39
Apr 29 09:23:46 flow [<c02479c2>] __pci_register_driver+0x77/0x88
Apr 29 09:23:46 flow [<f990b00f>] alsa_card_intel8x0_init+0xf/0x12 [snd_intel8x0]
Apr 29 09:23:46 flow [<c012db8a>] sys_init_module+0xaf/0x1ae
Apr 29 09:23:46 flow [<c0102b93>] sysenter_past_esp+0x54/0x75
Apr 29 09:23:46 flow Code: 55 57 56 53 83 ec 14 8b 6c 24 28 8b 85 a8 02 00 00 81 78 14 80 bb 00 00 0f 85 94 02 00 00 8b 45 2c 8b 80 b8 00 00 00 85 c0 74 09 <81> 78 48 ff 7f 00 00 77 0f 68 80 8c 9c f9 68 f1 09 00 00 e9 e2 


Thank you.
Comment 1 Martin 2006-05-01 00:33:59 UTC
I don't know much about kernel oopses. But I do know that I get an kernel oops when unloading ALSA modules from the kernel. I use suspend2-sources 2.6.16-r4 and alsa-drivers 1.0.11. Using suspend2-sources 2.6.15-r8 and alsa-drivers 1.0.10 everything seemed to work alright.

Since the oops seems to be somewhat different, here's my one:

[17179633.260000] Oops: 0000 [#1]
[17179633.260000] PREEMPT
[17179633.260000] Modules linked in: ipt_MASQUERADE iptable_nat ip_nat iptable_mangle xt_tcpudp xt_state iptable_filter ip_tables x_tables snd_pcm_oss snd_mixer_oss snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_via82xx snd_mpu401_uart snd_rawmidi snd_seq_device snd_intel8x0 snd_ac97_codec snd_ac97_bus snd_pcm snd_timer snd snd_page_alloc rtc it87 hwmon_vid eeprom i2c_dev i2c_isa i2c_viapro svgalib_helper nvidia i2c_core
[17179633.260000] CPU:    0
[17179633.260000] EIP:    0060:[<e2232e00>]    Tainted: P      VLI
[17179633.260000] EFLAGS: 00010202   (2.6.16-suspend2-r4 #5)
[17179633.260000] EIP is at snd_pcm_oss_proc_free_setup_list+0x20/0x50 [snd_pcm_oss]
[17179633.260000] eax: 00000003   ebx: 64627573   ecx: dee58a20   edx: dffef300
[17179633.260000] esi: 64627573   edi: dec2fcdc   ebp: d8d41f0c   esp: d8d41efc
[17179633.260000] ds: 007b   es: 007b   ss: 0068
[17179633.260000] Process rmmod (pid: 9969, threadinfo=d8d40000 task=d90b8a90)
[17179633.260000] Stack: <0>de63bee0 dec2fcdc 00000000 bffb22c0 d8d41f20 e2233377 dec2fcdc dec2fc00
[17179633.260000]        e22387ec d8d41f38 e223360e dec2fc00 d8d41f58 d9dbf6fc dec2fc04 d8d41f58
[17179633.260000]        e215397a dec2fc00 e2238ac0 00000000 e223620a e22387ec 00000001 d8d40000
[17179633.260000] Call Trace:
[17179633.260000]  [<e2233377>] snd_pcm_oss_proc_done+0x47/0x50 [snd_pcm_oss]
[17179633.260000]  [<e223360e>] snd_pcm_oss_unregister_minor+0x3e/0x70 [snd_pcm_oss]
[17179633.260000]  [<e215397a>] snd_pcm_notify+0x4a/0xb0 [snd_pcm]
[17179633.260000]  [<e223620a>] alsa_pcm_oss_exit+0x1a/0x1c [snd_pcm_oss]
[17179633.260000]  [<c0134bde>] sys_delete_module+0x14e/0x160
[17179633.260000]  [<c015de00>] sys_munmap+0x50/0x80
[17179633.260000]  [<c01031c5>] syscall_call+0x7/0xb
[17179633.260000] Code: de 8d 76 00 8d bc 27 00 00 00 00 55 89 e5 57 56 53 83 ec 04 8b 7d 08 8b 77 14 85 f6 74 28 c7 47 14 00 00 00 00 8d b6 00 00 00 00 <8b> 5e 10 8b 06 89 04 24 e8 03 6b f3 dd 89 34 24 89 de e8 f9 6a
[17179633.260000]  /etc/init.d/alsasound: line 137:  9969 Speicherzugriffsfehler  /sbin/rmmod ${MODULE} >&/dev/null

After oops my computer does not hang, and I tried to get the console with the oops-dump to work again. Strangely there was absolutely no way of killing the hanging rmmod. Not even signal 9 worked.

I do not know whether this is an issue of the kernel (suspend2) or alsa. In case I'm reporting to the false person I'm begging your pardon.

Thanks for the good work so far!
Comment 2 Markus Wagner 2006-05-10 03:05:00 UTC
Got the same problem here using alsa-driver-1.0.11 with any stable gentoo-sources 2.6.16.

Everything went just fine. System is booting, modules are loaded and
sound is playing.

But while trying to unload the alsa-modules I get a segfault
/etc/init.d/alsasound stop
 * Storing ALSA Mixer Levels ...

                                                             [ ok ]
 * Unloading ALSA ...

                                                             [ ok ]
 * Unloading ALSA modules ...
/etc/init.d/alsasound: line 137:  9185 Segmentation fault
/sbin/rmmod ${MODULE} >&/dev/null

and dmesg reports:
Unable to handle kernel NULL pointer dereference at virtual address 00000000
 printing eip:
f8ec0737
*pde = 00000000
Oops: 0000 [#1]
PREEMPT SMP
Modules linked in: w83627hf hwmon_vid hwmon eeprom i2c_isa i2c_i801
i2c_core snd_mixer_oss snd_seq_oss snd_seq_midi_event snd_seq
snd_seq_device snd_intel8x0 snd_ac97_codec snd_ac97_bus snd_pcm
snd_timer snd soundcore snd_page_alloc vfat fat rtc usb_storage scsi_mod
ehci_hcd uhci_hcd usbcore fglrx intel_agp agpgart
CPU:    0
EIP:    0060:[<f8ec0737>]    Tainted: P      VLI
EFLAGS: 00010282   (2.6.16-gentoo-r7 #1)
EIP is at snd_mixer_oss_notify_handler+0x37/0x23a [snd_mixer_oss]
eax: 00000000   ebx: f723d00b   ecx: ffffffff   edx: f8ec2180
esi: 00000000   edi: f2f4d400   ebp: f4412000   esp: f4413ea4
ds: 007b   es: 007b   ss: 0068
Process rmmod (pid: 9185, threadinfo=f4412000 task=f7c38540)
Stack: <0>f7c38540 c18074a0 00000000 c18074a0 00000202 f7cc6a90 c039ce30
c02ca92d
       c039ce2c 00000282 f7cc6a90 00000000 f4413f08 c18074a0 00000000
c18074a0
       00000001 00000001 00000000 00000282 f7cc6a90 fffffff0 bfe69f90
f4413f14
Call Trace:
 [<c02ca92d>] wait_for_completion+0xc2/0xca
 [<c0117373>] wake_up_process+0x1e/0x20
 [<c0132bde>] kthread_stop_sem+0x70/0xa8
 [<c0132b6a>] kthread_stop+0x17/0x1b
 [<c013ca70>] stop_machine_run+0x30/0x38
 [<f8ec0b74>] alsa_mixer_oss_exit+0x38/0x42 [snd_mixer_oss]
 [<c0138842>] sys_delete_module+0x14b/0x15a
 [<c01532ea>] sys_munmap+0x45/0x66
 [<c0102df3>] sysenter_past_esp+0x54/0x75
Code: 24 b0 00 00 00 8b bc 24 ac 00 00 00 85 c0 74 7b 83 e8 01 74 51 8b
9f 10 02 00 00 31 c0 85 db 74 3a c7 44 24 08 00 00 00 00 8b 03 <8b> 00
c7 04 24 05 00 00 00 89 44 24 04 e8 e3 e5 fa ff 8b 83 e4
 <6>ACPI: PCI interrupt for device 0000:00:1f.5 disabled
Badness in remove_proc_entry at fs/proc/generic.c:707
 [<c0196e89>] remove_proc_entry+0x171/0x178
 [<f8e6b8f8>] snd_info_unregister+0x39/0x5e [snd]
 [<f8e6b49a>] snd_info_card_free+0x50/0x61 [snd]
 [<f8e69d67>] snd_card_free+0xdb/0x2c3 [snd]
 [<c02ca92d>] wait_for_completion+0xc2/0xca
 [<c02c9baf>] klist_release+0x0/0x72
 [<c01e4cfc>] kobject_put+0x1e/0x22
 [<c01e4cd4>] kobject_release+0x0/0xa
 [<c01e5512>] kref_put+0x3e/0x88
 [<f8eb16d2>] snd_intel8x0_remove+0x19/0x2b [snd_intel8x0]
 [<c01ee584>] pci_device_remove+0x35/0x37
 [<c023c1a9>] __device_release_driver+0xb0/0xdd
 [<c023c2af>] driver_detach+0xaa/0xac
 [<c023ba69>] bus_remove_driver+0x3e/0x61
 [<c023c61d>] driver_unregister+0x10/0x1c
 [<c01ee7bd>] pci_unregister_driver+0x13/0x20
 [<f8eb16f3>] alsa_card_intel8x0_exit+0xf/0x13 [snd_intel8x0]
 [<c0138842>] sys_delete_module+0x14b/0x15a
 [<c01532ea>] sys_munmap+0x45/0x66
 [<c0102df3>] sysenter_past_esp+0x54/0x75

Back to 2.6.15 and alsa-driver 1.0.10 everything works fine again.

I haven't tried to compile 1.0.11 against the 2.6.15 kernel but on every
2.6.16 kernel I've got the same error.

After the error my system is still responding until a application tries
to access the sound-device.

emerge --info
Portage 2203-svn (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-gentoo-r7 i686)
=================================================================
System uname: 2.6.16-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -mtune=prescott -march=prescott -fomit-frame-pointer -pipe -mmmx -msse -msse2 -mfpmath=sse"
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/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mtune=prescott -march=prescott -fomit-frame-pointer -pipe -mmmx -msse -msse2 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://130.59.10.35/mirror/gentoo/ ftp://gentoo.inode.at/source/"
LANG="de_DE"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -s"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa apm artswrappersuid audiofile automount avi bash-completion bcmath bitmap-fonts bl browserplugin bzip2 ccache cdda cddb cdinstall cdio cdparanoia cdr cdrom cle266 cli corba cpudetection crosscompile crypt css cups curl dba divx4linux dri dv dvd dvdr dvdread emboss encode esd exif expat fam fame ffmpeg foomaticdb fortran freeytype gd gdbm gif glut gstreamer gtk gtk2 i8x0 idn imagemagick imlib isdnlog jpeg lcms libg++ libwww logrotate mad md5sum mikmod mmx mmx2 mng motif mozcalendar mozilla mp3 mpeg ncurses nis nls nptl ogg opengl oss pam pcre pdflib perl png pppd python qt quicktime readline reflection samba sdl session spell spl sse sse2 ssl subtitles tiff truetype truetype-fonts type1-fonts udev unicode usb utf8 v4l vcd vorbis win32codecs xine xml xml2 xmms xorg xv xvid zlib video_cards_radeon linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS, PORTDIR_OVERLAY

I've just reported the issue in the alsa bugtrackingsystem.

Thanks for your help.
Comment 3 Christian Fuß 2006-07-11 14:59:32 UTC
This Bug affected >= inux-2.6.16-gentoo-r12

on linux-2.6.16-gentoo-r11, alsa-driver 1.0.11 works fine
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-01 22:23:50 UTC
Please try to see if recent versions are still a problem, and if they are, report this upstream.