From dm@home.dinoex.sub.de  Sat Feb  7 02:14:35 2004
Return-Path: <dm@home.dinoex.sub.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id AE5B116A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  7 Feb 2004 02:14:35 -0800 (PST)
Received: from uucp.dinoex.sub.de (uucp.dinoex.sub.de [212.184.201.182])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7E91C43D1F
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  7 Feb 2004 02:14:34 -0800 (PST)
	(envelope-from dm@home.dinoex.sub.de)
Received: from home.dinoex.sub.de (home.dinoex.sub.de [217.6.200.196])
	by uucp.dinoex.sub.de (8.12.11/8.12.11) with ESMTP id i17AE8hu063183
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 7 Feb 2004 11:14:08 +0100 (CET)
	(envelope-from dm@home.dinoex.sub.de)
Received: (from dm@localhost)
	by home.dinoex.sub.de (8.12.11/8.12.10/Submit) id i17AEBAR088828;
	Sat, 7 Feb 2004 11:14:11 +0100 (CET)
	(envelope-from dm)
Message-Id: <200402071014.i17AEBAR088828@home.dinoex.sub.de>
Date: Sat, 7 Feb 2004 11:14:11 +0100 (CET)
From: dirk.meyer@dinoex.sub.org
Reply-To: dirk.meyer@dinoex.sub.org
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: dev/sound/pcm/dsp.c crrashes
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         62470
>Category:       kern
>Synopsis:       dev/sound/pcm/dsp.c crrashes
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 07 02:20:17 PST 2004
>Closed-Date:    Wed May 19 21:16:02 CEST 2004
>Last-Modified:  Wed May 19 21:16:02 CEST 2004
>Originator:     Dirk Meyer
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
privat
>Environment:

FreeBSD dip.dinoex.sub.de 5.2-CURRENT FreeBSD 5.2-CURRENT #9: Fri Jan 30 09:11:51 CET 2004     root@current.dinoex.sub.de:/usr/obj/usr/src/sys/GENERIC  i386

/etc/systcl.conf:
hw.snd.pcm0.vchans=16
hw.snd.maxautovchans=16

>Description:

Feb  7 10:21:29 dip kernel: malloc() of "256" with the following non-sleepable locks held:
Feb  7 10:21:29 dip kernel: exclusive sleep mutex pcm0 (sound cdev) r = 0 (0xc2a24d80) locked @ /usr/src/sys/dev/sound/pcm/dsp.c:213
Feb  7 10:21:29 dip kernel: malloc() of "256" with the following non-sleepable locks held:
Feb  7 10:21:29 dip kernel: exclusive sleep mutex pcm0 (sound cdev) r = 0 (0xc2a24d80) locked @ /usr/src/sys/dev/sound/pcm/dsp.c:213
Feb  7 10:24:35 dip syslogd: restart
Feb  7 10:24:35 dip syslogd: kernel boot file is /boot/kernel/kernel

[...]

Feb  7 10:48:18 dip kernel: malloc() of "256" with the following non-sleepable locks held:
Feb  7 10:48:18 dip kernel: exclusive sleep mutex pcm0 (sound cdev) r = 0 (0xc29b2500) locked @ /usr/src/sys/dev/sound/pcm/dsp.c:213
Feb  7 10:49:30 dip kernel: malloc() of "256" with the following non-sleepable locks held:
Feb  7 10:49:30 dip kernel: exclusive sleep mutex pcm0 (sound cdev) r = 0 (0xc29b2500) locked @ /usr/src/sys/dev/sound/pcm/dsp.c:213
Feb  7 10:52:46 dip syslogd: restart
Feb  7 10:52:46 dip syslogd: kernel boot file is /boot/kernel/kernel
Feb  7 10:52:46 dip kernel: kernel trap 9 with interrupts disabled
Feb  7 10:52:46 dip kernel: 
Feb  7 10:52:46 dip kernel: 
Feb  7 10:52:46 dip kernel: Fatal trap 9: general protection fault while in kernel mode
Feb  7 10:52:46 dip kernel: cpuid = 0; apic id = 00
Feb  7 10:52:46 dip kernel: instruction pointer = 0x8:0xc08027f5
Feb  7 10:52:46 dip kernel: stack pointer               = 0x10:0xcc7b5bb0
Feb  7 10:52:46 dip kernel: frame pointer               = 0x10:0xcc7b5bcc
Feb  7 10:52:46 dip kernel: code segment                = base 0x0, limit 0xfffff, type 0x1b
Feb  7 10:52:46 dip kernel: = DPL 0, pres 1, def32 1, gran 1
Feb  7 10:52:46 dip kernel: processor eflags    = resume, IOPL = 0
Feb  7 10:52:46 dip kernel: current process             = 27 (swi8: tty:sio clock)
Feb  7 10:52:46 dip kernel: trap number         = 9
Feb  7 10:52:46 dip kernel: panic: general protection fault
Feb  7 10:52:46 dip kernel: at line 821 in file /usr/src/sys/i386/i386/trap.c
Feb  7 10:52:46 dip kernel: cpuid = 0; 
Feb  7 10:52:46 dip kernel: 
Feb  7 10:52:46 dip kernel: syncing disks, buffers remaining... 1998 1998 1998 1998 1998 1998 1998 1998 1998 1998 19
98 1998 1998 1998 1998 1998 1998 1998 1998 1998 
Feb  7 10:52:46 dip kernel: giving up on 13 buffers
Feb  7 10:52:46 dip kernel: Uptime: 26m18s
Feb  7 10:52:46 dip kernel: Dumping 223 MB
Feb  7 10:52:46 dip kernel: 16 32 48 64 80 96 112 128 144 160 176 192 208
Feb  7 10:52:46 dip kernel: Dump complete
Feb  7 10:52:46 dip kernel: pfs_vncache_unload(): 1 entries remaining
Feb  7 10:52:46 dip kernel: Automatic reboot in 15 seconds - press a key on the console to abort
Feb  7 10:52:46 dip kernel: Rebooting...

panic messages:
---
Fatal trap 9: general protection fault while in kernel mode
cpuid = 0; apic id = 00
instruction pointer     = 0x8:0xc08027f5
stack pointer           = 0x10:0xcc7b5bb8
frame pointer           = 0x10:0xcc7b5bd4
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = resume, IOPL = 0
current process         = 27 (swi8: tty:sio clock)
trap number             = 9
panic: general protection fault
at line 821 in file /usr/src/sys/i386/i386/trap.c
cpuid = 0; 

syncing disks, buffers remaining... 
giving up on 622 buffers
Uptime: 53m28s
Dumping 223 MB
---
(kgdb) bt
#0  0xc063e0ab in doadump ()
#1  0xc063e743 in boot ()
#2  0xc063eb79 in __panic ()
#3  0xc0800026 in trap_fatal ()
#4  0xc07ffa12 in trap ()
#5  0xc08027f5 in atpic_handle_intr ()


panic messages:
---
Fatal trap 9: general protection fault while in kernel mode
cpuid = 0; apic id = 00
instruction pointer     = 0x8:0xc08027f5
stack pointer           = 0x10:0xcc7b5bb0
frame pointer           = 0x10:0xcc7b5bcc
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = resume, IOPL = 0
current process         = 27 (swi8: tty:sio clock)
trap number             = 9
panic: general protection fault
at line 821 in file /usr/src/sys/i386/i386/trap.c
cpuid = 0; 

syncing disks, buffers remaining... 
giving up on 13 buffers
Uptime: 26m18s
Dumping 223 MB
---
(kgdb) bt
#0  0xc063e0ab in doadump ()
#1  0xc063e743 in boot ()
#2  0xc063eb79 in __panic ()
#3  0xc0800026 in trap_fatal ()
#4  0xc07ffa12 in trap ()
#5  0xc08027f5 in atpic_handle_intr ()
#6  0xc0802bf7 in Xatpic_intr11 ()

>How-To-Repeat:

	any use of sound directly or over sdl.
	user play a soundfile and system crashes.
	soundfile can be local or fetched over nfs mount.

>Fix:

	was working in:
	FreeBSD 5.2-CURRENT #7: Sun Dec 14 10:38:15 CET 2003

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dinoex 
State-Changed-When: Wed May 19 21:15:44 CEST 2004 
State-Changed-Why:  
fixed in 5.2-CURRENT from May 17th 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62470 
>Unformatted:
