NetBSD Problem Report #45927

From www@NetBSD.org  Sun Feb  5 01:07:40 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 2D16663DE62
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  5 Feb 2012 01:07:40 +0000 (UTC)
Message-Id: <20120205010739.8064363BCF4@www.NetBSD.org>
Date: Sun,  5 Feb 2012 01:07:39 +0000 (UTC)
From: nonakap@gmail.com
Reply-To: nonakap@gmail.com
To: gnats-bugs@NetBSD.org
Subject: panic: kernel diagnostic assertion "sc->sc_dvlock < 0" failed
X-Send-Pr-Version: www-1.0

>Number:         45927
>Category:       kern
>Synopsis:       panic: kernel diagnostic assertion "sc->sc_dvlock < 0" failed
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 05 01:10:00 +0000 2012
>Closed-Date:    Thu Feb 23 22:55:27 +0000 2012
>Last-Modified:  Thu Feb 23 22:55:27 +0000 2012
>Originator:     NONAKA Kimihiro
>Release:        5.99.64
>Organization:
>Environment:
NetBSD koharu.myhome.local 5.99.64 NetBSD 5.99.64 (TPX201) #1796: Sun Feb  5 08:59:11 JST 2012  root@koharu.myhome.local:/usr/obj.i386/sys/arch/i386/compile/TPX201 i386
>Description:
panic: kernel diagnostic assertion "sc->sc_dvlock < 0" failed: file "/usr/src/sys/dev/audio.c", line 2681 

>How-To-Repeat:
I think that happens if you mmap the audio device.

For example, this problem occurs in my environment, when you launch a Xnp2 have enabled the SDL_mixer.
cd xnp2-20120204/x11 && configure && make && ./xnp2
# Xnp2: http://www.asahi-net.or.jp/~aw9k-nnk/np2/xnp2-20120204.tar.bz2

>Fix:

>Release-Note:

>Audit-Trail:
 Module Name:    src
 Committed By:   nonaka
 Date:           Tue Feb 21 20:53:34 UTC 2012

 Modified Files:
       src/sys/dev: audio.c

 Log Message:
 kern/45927: fix incorrect assert.


 To generate a diff of this commit:
 cvs rdiff -u -r1.257 -r1.258 src/sys/dev/audio.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: nonaka@NetBSD.org
State-Changed-When: Thu, 23 Feb 2012 22:55:27 +0000
State-Changed-Why:
I've fixed it.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.