Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jun 2009 16:47:14 -0800
From:      Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: 7.2-RELEASE panics with snd_ds1 loaded.
Message-ID:  <200906081647.15069.mel.flynn%2Bfbsd.questions@mailing.thruhere.net>
In-Reply-To: <86skifqn2x.fsf@chateau.d.lf>
References:  <86skifqn2x.fsf@chateau.d.lf>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 04 June 2009 21:14:14 Ashish SHUKLA wrote:
> Hi all,
>
> I've recently installed 7.2-RELEASE few weeks ago and noticed that it
> panics after few minutes of loading snd_ds1 (driver for Yamaha PCI sound
> card), and playing music on it. I've not added snd_ds1 to my loader.conf
> so as soon as I explicitly kldload it and start playing music (or try to
> access sound card like using gnome-sound-recorder) it panics after few
> minutes.
>
> Following are the backtraces of the panics.
>
> ,----
>
> | (kgdb) core-file /var/crash/vmcore.0
> |
> | Unread portion of the kernel message buffer:
> |
> |
> | Fatal trap 9: general protection fault while in kernel mode
> | cpuid = 0; apic id = 00
> | instruction pointer     = 0x8:0xffffffff807c5f22
> | stack pointer           = 0x10:0xfffffffebf031a00
> | frame pointer           = 0x10:0xffff804000020048
> | code segment            = base 0x0, limit 0xfffff, type 0x1b
> |                         = DPL 0, pres 1, long 1, def32 0, gran 1
> | processor eflags        = interrupt enabled, resume, IOPL = 0
> | current process         = 72310 (sshd)
> | trap number             = 9
> | panic: general protection fault
> | cpuid = 0
> | Uptime: 6h25m1s
> | Physical memory: 2025 MB
> | Dumping 386 MB: 371 355 339 323 307 291 275 259 243 227 211 195 179 163
> | 147 131 115 99 83 67 51 35 19 3
> |
> | Reading symbols from /boot/kernel/geom_journal.ko...Reading symbols from
> | /boot/GENERIC/geom_journal.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/geom_journal.ko
> | Reading symbols from /boot/kernel/linprocfs.ko...Reading symbols from
> | /boot/GENERIC/linprocfs.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/linprocfs.ko
> | Reading symbols from /boot/kernel/linux.ko...Reading symbols from
> | /boot/GENERIC/linux.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/linux.ko
> | Reading symbols from /boot/kernel/pf.ko...Reading symbols from
> | /boot/GENERIC/pf.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/pf.ko
> | Reading symbols from /boot/kernel/blank_saver.ko...Reading symbols from
> | /boot/GENERIC/blank_saver.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/blank_saver.ko
> | Reading symbols from /boot/kernel/ng_socket.ko...Reading symbols from
> | /boot/GENERIC/ng_socket.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/ng_socket.ko
> | Reading symbols from /boot/kernel/netgraph.ko...Reading symbols from
> | /boot/GENERIC/netgraph.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/netgraph.ko
> | Reading symbols from /boot/kernel/ng_mppc.ko...Reading symbols from
> | /boot/GENERIC/ng_mppc.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/ng_mppc.ko
> | Reading symbols from /boot/kernel/rc4.ko...Reading symbols from
> | /boot/GENERIC/rc4.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/rc4.ko
> | Reading symbols from /boot/kernel/ng_iface.ko...Reading symbols from
> | /boot/GENERIC/ng_iface.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/ng_iface.ko
> | Reading symbols from /boot/kernel/ng_ppp.ko...Reading symbols from
> | /boot/GENERIC/ng_ppp.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/ng_ppp.ko
> | Reading symbols from /boot/kernel/ng_tee.ko...Reading symbols from
> | /boot/GENERIC/ng_tee.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/ng_tee.ko
> | Reading symbols from /boot/kernel/ng_ether.ko...Reading symbols from
> | /boot/GENERIC/ng_ether.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/ng_ether.ko
> | Reading symbols from /boot/kernel/ng_pppoe.ko...Reading symbols from
> | /boot/GENERIC/ng_pppoe.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/ng_pppoe.ko
> | Reading symbols from /boot/kernel/i915.ko...Reading symbols from
> | /boot/GENERIC/i915.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/i915.ko
> | Reading symbols from /boot/kernel/drm.ko...Reading symbols from
> | /boot/GENERIC/drm.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/drm.ko
> | Reading symbols from /boot/kernel/snd_ds1.ko...Reading symbols from
> | /boot/GENERIC/snd_ds1.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/snd_ds1.ko
> | Reading symbols from /boot/kernel/sound.ko...Reading symbols from
> | /boot/GENERIC/sound.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/sound.ko
> | #0  doadump () at pcpu.h:195
> | 195     pcpu.h: No such file or directory.
> |         in pcpu.h
> | (kgdb) bt
> | #0  doadump () at pcpu.h:195
> | #1  0x0000000000000004 in ?? ()
> | #2  0xffffffff8050df19 in boot (howto=260) at
> | /usr/src/sys/kern/kern_shutdown.c:418 #3  0xffffffff8050e322 in panic
> | (fmt=0x104 <Address 0x104 out of bounds>) at
> | /usr/src/sys/kern/kern_shutdown.c:574 #4  0xffffffff807d2193 in
> | trap_fatal (frame=0xffffff00038bb370, eva=Variable "eva" is not
> | available. ) at /usr/src/sys/amd64/amd64/trap.c:757
> | #5  0xffffffff807d2ce5 in trap (frame=0xfffffffebf031950) at
> | /usr/src/sys/amd64/amd64/trap.c:558 #6  0xffffffff807b700e in calltrap ()
> | at /usr/src/sys/amd64/amd64/exception.S:209 #7  0xffffffff807c5f22 in
> | pmap_remove_pages (pmap=0xffffff00696730f8) at
> | /usr/src/sys/amd64/amd64/pmap.c:3812 #8  0xffffffff8073e708 in
> | vmspace_exit (td=0xffffff00038bb370) at /usr/src/sys/vm/vm_map.c:404 #9 
> | 0xffffffff804e92b0 in exit1 (td=0xffffff00038bb370, rv=65280) at
> | /usr/src/sys/kern/kern_exit.c:306 #10 0xffffffff804ea68e in sys_exit
> | (td=Variable "td" is not available. ) at
> | /usr/src/sys/kern/kern_exit.c:110
> | #11 0xffffffff807d27e7 in syscall (frame=0xfffffffebf031c80) at
> | /usr/src/sys/amd64/amd64/trap.c:900 #12 0xffffffff807b721b in
> | Xfast_syscall () at /usr/src/sys/amd64/amd64/exception.S:330 #13
> | 0x000000080132850c in ?? ()
> | Previous frame inner to this frame (corrupt stack?)
>
> `----
>
> ,----
>
> | (kgdb) core-file /var/crash/vmcore.1
> |
> | Unread portion of the kernel message buffer:
> |
> |
> | Fatal trap 12: page fault while in kernel mode
> | cpuid = 1; apic id = 01
> | fault virtual address   = 0x258
> | fault code              = supervisor read data, page not present
> | instruction pointer     = 0x8:0xffffffff8050119d
> | stack pointer           = 0x10:0xfffffffebf1c2950
> | frame pointer           = 0x10:0xffffff00341f6a50
> | code segment            = base 0x0, limit 0xfffff, type 0x1b
> |                         = DPL 0, pres 1, long 1, def32 0, gran 1
> | processor eflags        = interrupt enabled, resume, IOPL = 0
> | current process         = 34352 (ruby18)
> | trap number             = 12
> | panic: page fault
> | cpuid = 1
> | Uptime: 2h59m0s
> | Physical memory: 2025 MB
> | Dumping 336 MB: 321 305 289 273 257 241 225 209 193 177 161 145 129 113
> | 97 81 65 49 33 17 1
> |
> | Reading symbols from /boot/kernel/geom_journal.ko...Reading symbols from
> | /boot/GENERIC/geom_journal.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/geom_journal.ko
> | Reading symbols from /boot/kernel/linprocfs.ko...Reading symbols from
> | /boot/GENERIC/linprocfs.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/linprocfs.ko
> | Reading symbols from /boot/kernel/linux.ko...Reading symbols from
> | /boot/GENERIC/linux.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/linux.ko
> | Reading symbols from /boot/kernel/pf.ko...Reading symbols from
> | /boot/GENERIC/pf.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/pf.ko
> | Reading symbols from /boot/kernel/blank_saver.ko...Reading symbols from
> | /boot/GENERIC/blank_saver.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/blank_saver.ko
> | Reading symbols from /boot/kernel/i915.ko...Reading symbols from
> | /boot/GENERIC/i915.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/i915.ko
> | Reading symbols from /boot/kernel/drm.ko...Reading symbols from
> | /boot/GENERIC/drm.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/drm.ko
> | Reading symbols from /boot/kernel/ng_socket.ko...Reading symbols from
> | /boot/GENERIC/ng_socket.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/ng_socket.ko
> | Reading symbols from /boot/kernel/netgraph.ko...Reading symbols from
> | /boot/GENERIC/netgraph.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/netgraph.ko
> | Reading symbols from /boot/kernel/ng_mppc.ko...Reading symbols from
> | /boot/GENERIC/ng_mppc.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/ng_mppc.ko
> | Reading symbols from /boot/kernel/rc4.ko...Reading symbols from
> | /boot/GENERIC/rc4.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/rc4.ko
> | Reading symbols from /boot/kernel/ng_iface.ko...Reading symbols from
> | /boot/GENERIC/ng_iface.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/ng_iface.ko
> | Reading symbols from /boot/kernel/ng_ppp.ko...Reading symbols from
> | /boot/GENERIC/ng_ppp.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/ng_ppp.ko
> | Reading symbols from /boot/kernel/ng_tee.ko...Reading symbols from
> | /boot/GENERIC/ng_tee.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/ng_tee.ko
> | Reading symbols from /boot/kernel/ng_ether.ko...Reading symbols from
> | /boot/GENERIC/ng_ether.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/ng_ether.ko
> | Reading symbols from /boot/kernel/ng_pppoe.ko...Reading symbols from
> | /boot/GENERIC/ng_pppoe.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/ng_pppoe.ko
> | Reading symbols from /boot/kernel/snd_ds1.ko...Reading symbols from
> | /boot/GENERIC/snd_ds1.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/snd_ds1.ko
> | Reading symbols from /boot/kernel/sound.ko...Reading symbols from
> | /boot/GENERIC/sound.ko.symbols...done. done.
> | Loaded symbols for /boot/kernel/sound.ko
> | #0  doadump () at pcpu.h:195
> | 195     in pcpu.h
> | (kgdb) bt
> | #0  doadump () at pcpu.h:195
> | #1  0x0000000000000004 in ?? ()
> | #2  0xffffffff8050df19 in boot (howto=260) at
> | /usr/src/sys/kern/kern_shutdown.c:418 #3  0xffffffff8050e322 in panic
> | (fmt=0x104 <Address 0x104 out of bounds>) at
> | /usr/src/sys/kern/kern_shutdown.c:574 #4  0xffffffff807d2193 in
> | trap_fatal (frame=0xffffff00341f6a50, eva=Variable "eva" is not
> | available. ) at /usr/src/sys/amd64/amd64/trap.c:757
> | #5  0xffffffff807d2565 in trap_pfault (frame=0xfffffffebf1c28a0,
> | usermode=0) at /usr/src/sys/amd64/amd64/trap.c:673 #6  0xffffffff807d2ea4
> | in trap (frame=0xfffffffebf1c28a0) at /usr/src/sys/amd64/amd64/trap.c:444
> | #7  0xffffffff807b700e in calltrap () at
> | /usr/src/sys/amd64/amd64/exception.S:209 #8  0xffffffff8050119d in
> | _mtx_lock_sleep (m=0xffffff003439aca8, tid=18446742975072397904,
> | opts=Variable "opts" is not available. ) at
> | /usr/src/sys/kern/kern_mutex.c:339
> | #9  0xffffffff8054465a in sleepq_catch_signals (wchan=0xffffff00341a1000)
> | at /usr/src/sys/kern/subr_sleepqueue.c:392 #10 0xffffffff80544f9b in
> | sleepq_wait_sig (wchan=Variable "wchan" is not available. ) at
> | /usr/src/sys/kern/subr_sleepqueue.c:594
> | #11 0xffffffff8051624e in _sleep (ident=0xffffff00341a1000,
> | lock=0xffffff00341a12b0, priority=180, wmesg=0xffffffff808b162e "piperd",
> | timo=0) at /usr/src/sys/kern/kern_synch.c:228
> | #12 0xffffffff8054cd60 in pipe_read (fp=0xffffff00341c9300,
> | uio=0xfffffffebf1c2b10, active_cred=Variable "active_cred" is not
> | available. ) at /usr/src/sys/kern/sys_pipe.c:689
> | #13 0xffffffff8054a32d in dofileread (td=0xffffff00341f6a50, fd=4,
> | fp=0xffffff00341c9300, auio=0xfffffffebf1c2b10, offset=Variable "offset"
> | is not available. ) at file.h:245
> | #14 0xffffffff8054a69e in kern_readv (td=0xffffff00341f6a50, fd=4,
> | auio=0xfffffffebf1c2b10) at /usr/src/sys/kern/sys_generic.c:193 #15
> | 0xffffffff8054a78c in read (td=0xffffff003439aca8,
> | uap=0xffffff00341f6a50) at /usr/src/sys/kern/sys_generic.c:109 #16
> | 0xffffffff807d27e7 in syscall (frame=0xfffffffebf1c2c80) at
> | /usr/src/sys/amd64/amd64/trap.c:900 #17 0xffffffff807b721b in
> | Xfast_syscall () at /usr/src/sys/amd64/amd64/exception.S:330 #18
> | 0x0000000800d860dc in ?? ()
> | Previous frame inner to this frame (corrupt stack?)
>
> `----
>
> Any ideas how to resolve this ?

Nothing points to the sound module specifically. The first trace is unusable 
(frames missing) and the second trace panics in sleep, which maybe points to 
the sound module and interrupts. Are you not able to panic the system without 
that sound module loaded? It looks too random to blame one module, more 
hardware, but it's possible the module exposes a bug elsewhere. From this 
though, it is hard to tell.
-- 
Mel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906081647.15069.mel.flynn%2Bfbsd.questions>