Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 216141 - sys-kernel/gentoo-sources Modul snd_cs4232 unable handle nullpointer
Summary: sys-kernel/gentoo-sources Modul snd_cs4232 unable handle nullpointer
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-04 06:03 UTC by Thomas Rausch
Modified: 2008-05-27 23:32 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 Thomas Rausch 2008-04-04 06:03:44 UTC
Since 2.6.23 kernel comes at the start of the UDEV system with my Thinkpad 600 Toshiba always the error (dmesg-Output):

cs4232-pnpbios 00:06: activated
BUG: unable to handle kernel NULL pointer dereference at virtual address 00000154
printing eip: c029b455 *pde = 00000000 
Oops: 0000 [#1] 
Modules linked in: snd_cs4232 snd_opl3_lib snd_hwdep snd_cs4231_lib snd_pcm snd_timer snd_page_alloc snd_mpu401_uart snd_rawmidi snd_seq_device button snd processor soundcore uhci_hcd usbcore floppy

Pid: 1124, comm: modprobe Not tainted (2.6.24-gentoo-r4 #1)
EIP: 0060:[<c029b455>] EFLAGS: 00010282 CPU: 0
EAX: 00000000 EBX: cccf8800 ECX: 00000000 EDX: cccf8800
ESI: 00000000 EDI: 00000000 EBP: cccf8800 ESP: cdbe5e38
 DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
Process modprobe (pid: 1124, ti=cdbe4000 task=ccc9e560 task.ti=cdbe4000)
Stack: 00000000 cccf8800 00000000 00000000 00000000 cea86493 fffffff4 cccf8800 
       cdaa8e00 cdaa8fb8 cea8695a cea86a4c cd8ff000 cd8ff000 00000001 cea87280 
       cd8ff088 c029a470 cd8ff000 00000000 cea8729c c02a59a7 000000d0 cd8ff04c 
Call Trace:
 [<cea86493>] <0> [<cea8695a>] <0> [<c029a470>] <0> [<c02a59a7>] <0> [<c0344361>] <0> [<c02a5ab4>] <0> [<c02a5af8>] <0> [<c02a4f87>] <0> [<c02a580f>] <0> [<c02a5ab4>] <0> [<c02a526d>] <0> [<cea8c02f>] <0> [<c0129205>] <0> [<c011fd01>] <0> [<c0116456>] <0> [<c0103b3e>] <0> [<c0340000>] <0> =======================
Code: 89 d8 e8 2a f9 ff ff 85 c0 89 c2 75 0c c7 83 54 01 00 00 01 00 00 00 b2 01 5b 89 d0 c3 55 89 d5 57 56 89 c6 53 83 ec 04 89 0c 24 <83> b8 54 01 00 00 00 0f 85 06 01 00 00 f6 80 58 01 00 00 08 0f 
EIP: [<c029b455>]  SS:ESP 0068:cdbe5e38
---[ end trace c36c2e0ea6463fa2 ]---


Reproducible: Always




emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r4 i686)
=================================================================
System uname: 2.6.24-gentoo-r4 i686 Pentium II (Deschutes)
Timestamp of tree: Thu, 03 Apr 2008 06:30:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-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/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ 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/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/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://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.mneisen.org/ ftp://ftp.mneisen.org/gentoo "
LANG="de_DE@euro"
LINGUAS="de en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://192.168.1.5/gentoo-portage"
USE="7zip X Xaw3d a52 aac aalib ace acl acpi activefilter addbookmarks adns adsl afs aim aio akode alac alias alsa altenburgcards amr amrnb amrwb animgif ao aotuv apache2 apm arts artswrappersuid async athena audacious audiofile audit automount autoreplace background bash-completion berkdb binfilter bl bzip2 calendar caps cdaudio cdb cddb cdinstall cdio cdparanoia cdrom cdsound chardet chm chroot cjk cli clock-screen clvm cman connectionstatus cracklib crypt css ctrlmenu cups cursors cvs cvsgraph dbase dbus dga dhcp dialup directfb disassembler disk-partition divx djbfft dlz dmi dnd dnsdb dri dts dv dvd dvdnav dvdr dvdread emf emovix enca encode enscript examples exif extensions extra-algorithms extrafilters extras fam fame fasttrack fat fax fbcon fbdev fbsplash ffmpeg fftw firebird firefox flac flash flatfile flite font-server fontconfig foomaticdb fortran freetext freetts ftp ftruncate gdbm gdl gdm geldkarte general genericjb geoip geos german gif gimp gimpprint gmedia gmtfull gmthigh gmtsuppl gmttria gnokii gnome gnome-print gnuplot gnutella gocr gphoto2 gpm gps grammar gs gsm gtk gulm h323 hal hbci hddtemp hdri hfs high-ints highlight html http httpd ibam ibmacpi ical icons iconv icq id3 id3tag idn image imagemagick imap imlib inifile injection inkjar innkeywords insecure-savers iodbc ioemu ion3-voidupstreamsupport-truetype ipf-transparent ipfilter ipppd ipv6 ipw3945 ipw4965 irc irmc isdnlog itrax jabber jad java javascript jbig jingle jpeg jpeg2k jpgraph jrtplib jsapi kde kdecards kdepim kdm kdrive keyring kipi kmid lame largefile largeterminal lash latex libcaca libdsk libgcrypt lirc live lm_sensors logitech-mouse lyrics lyx lzo lzw mad madwifi mbrola mcal md5sum mdb midi mime mimencode mixer mjpeg mmx mng mouse mozilla mp2 mp3 mp3rtp mp4 mp4live mpd mpeg mpeg2 mplayer msn msnextras mudflap multiuser musepack nas ncurses netcdf netpbm network nfconntrack nfs nls nntp nptl nptlonly nsplugin nspr ntfs ntp odbc ogg openexr opengl openmp oscar pam pcmcia pcre pda pdf perl png ppds pppd python qt3 qt3support qt4 rdesktop readline reflection session smartcard sndfile sockets socks5 sox speech speex spell spl ssl sysfs syslog tcpd tiff transcode truetype unicode usb vcd vorbis wifi win32codecs wmf x86 xcomposite xml xorg xpm xscreensaver xvid yahoo zeroconf zip zlib" ALSA_CARDS="snd-cs4236" 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en_GB" USERLAND="GNU" VIDEO_CARDS="neomagic"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Mike Pagano gentoo-dev 2008-04-04 20:37:01 UTC
Can you generate this oops with a kernel compiled with CONFIG_DEBUG_KERNEL
enabled to get full backtracing support.

Can you tell me if you have tested with the latest development kernel, 2.6.25_rc8 as of this writing.
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2008-04-04 23:21:40 UTC
you probably don't need CONFIG_DEBUG_KERNEL but you do need CONFIG_KALLSYMS
Comment 3 Thomas Rausch 2008-04-05 08:15:48 UTC
The outputs with CONFIG_DEBUG_KERNEL and CONFIG_KALLSYMS for the kernel 2.6.24-gentoo-r4, 2.6.24-r4 and 2.6.25_rc8 come "immediately". Bogomips: 600 ;-)
Comment 4 Thomas Rausch 2008-04-06 22:23:59 UTC
Here is the log for linux-2.6.24-gentoo-r4:

CONFIG_DEBUG_KERNEL=y
CONFIG_KALLSYMS=y
CONFIG_KALLSYMS_ALL=y
# CONFIG_KALLSYMS_EXTRA_PASS is not set

---------------------------------
cs4232-pnpbios 00:06: activated
BUG: unable to handle kernel NULL pointer dereference at virtual address 00000214
printing eip: c02c5737 *pde = 00000000 
Oops: 0000 [#1] 
Modules linked in: snd_cs4232 snd_opl3_lib snd_hwdep snd_cs4231_lib snd_pcm snd_timer snd_page_alloc snd_mpu401_uart snd_rawmidi snd_seq_device snd soundcore button uhci_hcd processor usbcore floppy

Pid: 1306, comm: modprobe Not tainted (2.6.24-gentoo-r4 #2)
EIP: 0060:[<c02c5737>] EFLAGS: 00010282 CPU: 0
EIP is at pnp_manual_config_dev+0x11/0x142
EAX: 00000000 EBX: cd936908 ECX: 00000000 EDX: cd936908
ESI: 00000000 EDI: 00000000 EBP: ccd0fdd8 ESP: ccd0fdc4
 DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
Process modprobe (pid: 1306, ti=ccd0e000 task=ccdde150 task.ti=ccd0e000)
Stack: 00000000 cd936908 cd936908 00000000 00000000 ccd0fdf0 ceae34c4 ceae39a3 
       cd936908 ccda12a0 ccda1540 ccd0fe10 ceae39b6 cd8fb000 cd8fb000 00000000 
       00000001 cd8fb000 ceae5ac0 ccd0fe24 c02c46d5 cd8fb000 00000000 ceae5adc 
Call Trace:
 [<c01043bd>] show_trace_log_lvl+0x1a/0x2f
 [<c010446f>] show_stack_log_lvl+0x9d/0xa5
 [<c0104519>] show_registers+0xa2/0x171
 [<c01046df>] die+0xf7/0x1c8
 [<c010f0a8>] do_page_fault+0x42b/0x513
 [<c037b402>] error_code+0x6a/0x70
 [<ceae34c4>] snd_cs423x_pnp_init_wss+0xd1/0x168 [snd_cs4232]
 [<ceae39b6>] snd_cs4232_pnpbios_detect+0xad/0x127 [snd_cs4232]
 [<c02c46d5>] pnp_device_probe+0x66/0x85
 [<c02d0823>] driver_probe_device+0xe8/0x168
 [<c02d09b9>] __driver_attach+0x6a/0xa1
 [<c02cfd29>] bus_for_each_dev+0x36/0x5b
 [<c02d066f>] driver_attach+0x19/0x1b
 [<c02d0048>] bus_add_driver+0x73/0x1aa
 [<c02d0b95>] driver_register+0x67/0x6c
 [<c02c44dd>] pnp_register_driver+0x17/0x19
 [<ce86d032>] alsa_card_cs423x_init+0x32/0x74 [snd_cs4232]
 [<c01381e9>] sys_init_module+0x1142/0x1262
 [<c0103d5a>] sysenter_past_esp+0x5f/0xa5
 =======================
Code: f9 ff ff 85 c0 89 c2 75 0c c7 83 14 02 00 00 01 00 00 00 b2 01 5b 89 d0 5d c3 55 89 e5 57 56 89 c6 53 83 ec 08 89 55 f0 89 4d ec <83> b8 14 02 00 00 00 0f 85 16 01 00 00 f6 80 18 02 00 00 08 0f 
EIP: [<c02c5737>] pnp_manual_config_dev+0x11/0x142 SS:ESP 0068:ccd0fdc4
---[ end trace 303aa116298d424b ]---

The other logs (vanilla 2.6.24.4 und 2.6.25_rc8) come "immediately".
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2008-05-02 17:16:16 UTC
Please do the following for the kernel that you posted the oops from above:

emerge -n gdb
cd /usr/src/linux-whatever
rm -f sound/isa/cs4232.o
make CONFIG_DEBUG_INFO=y sound/isa/cs4232.o
gdb sound/isa/cs4232.o

Then at the gdb prompt:

list *snd_cs423x_pnp_init_wss+0xd1

and post the output here

Thanks
Comment 6 Mike Pagano gentoo-dev 2008-05-27 23:32:45 UTC
Please reopen when you've had the chance to perform the steps outlined in Comment  #5