NetBSD Problem Report #46063
From www@NetBSD.org Tue Feb 21 08:25:25 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 EA75663E043
for <gnats-bugs@gnats.NetBSD.org>; Tue, 21 Feb 2012 08:25:24 +0000 (UTC)
Message-Id: <20120221082524.5370363BCF4@www.NetBSD.org>
Date: Tue, 21 Feb 2012 08:25:24 +0000 (UTC)
From: skrll@netbsd.org
Reply-To: skrll@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: Locking problem in ttwrite with tty_lock
X-Send-Pr-Version: www-1.0
>Number: 46063
>Category: kern
>Synopsis: Locking problem in ttwrite with tty_lock
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Feb 21 08:30:00 +0000 2012
>Originator: Nick Hudson
>Release: -current
>Organization:
>Environment:
NetBSD a7000 6.99.3 NetBSD 6.99.3 (GENERIC) #0: Mon Feb 20 13:17:50 GMT 2012 nick@kenny:/u/obj/acorn32/usr/src/sys/arch/acorn32/compile/GENERIC acorn32
kenny$
>Description:
A console bell on my NetBSD/acorn32 A7000 triggers KASSERT at
http://nxr.netbsd.org/source/xref/src/sys/kern/kern_synch.c#682
as the tty_lock is held in ttwrite
http://nxr.netbsd.org/source/xref/src/sys/kern/tty.c#2125
when calling ttstart at line 2176. The stack trace is
ttwrite -> wsdisplayopen -> wsemul_vt100_output -> wsdisplay_emulbell -> wsdiaply_internal_ioctl -> wsmouse_add_mux -> wskbd_cnbell -> pckbd_ioctl -> audiobell -> audioclose -> audio_close -> audiodrain -> audio_waitio -> vw_wait_sig -> sleepq_block -> mi_switch
>How-To-Repeat:
Make an acorn32 machine beep.
>Fix:
tweak tty_locking
(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.