From owner-freebsd-current@FreeBSD.ORG Fri Jul 13 08:26:26 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AA5FB16A400 for ; Fri, 13 Jul 2007 08:26:26 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 327F913C4BC for ; Fri, 13 Jul 2007 08:26:25 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by ug-out-1314.google.com with SMTP id o4so581820uge for ; Fri, 13 Jul 2007 01:26:25 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=ISTHR4QiALyH6dagtN5igaCoQs13FJjUEr5tqlHdtj4Njm2+7W5p0l+uiaz5aJ0COVIx/kcKuo141zHzlBLldxLyK3D/mbVyXW5+5s3zVwkRVAg3FaNXx3eib76/QBfa0GHx870s2UaGsQLDq35fdtotbczBG4M8brDxrd9vQP8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=Nv8dLkuGmKN2hhZz3PAbWRETZZs8eAZlggh/8lqgSj1nTSR2XDXMu9P5XqNHAJPC7Pw8xBQvSyYaeRoq6qgD77LXJgwBjkQqo+A/gSDdDD/QNIqwj4jAOK6srVdp6k01H9ux6/SigoT6/LAVhExJcCrLoT6OQjJGtogYz0wtBHs= Received: by 10.82.162.14 with SMTP id k14mr1606292bue.1184315184949; Fri, 13 Jul 2007 01:26:24 -0700 (PDT) Received: from ?172.31.5.25? ( [89.97.252.178]) by mx.google.com with ESMTP id d26sm11291889nfh.2007.07.13.01.26.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 13 Jul 2007 01:26:24 -0700 (PDT) Message-ID: <46973708.2040401@FreeBSD.org> Date: Fri, 13 Jul 2007 10:25:44 +0200 From: Attilio Rao User-Agent: Thunderbird 1.5 (X11/20060526) MIME-Version: 1.0 To: Hans Petter Selasky References: <46970DF7.3000803@elischer.org> <46972B28.1010409@FreeBSD.org> <200707131021.59966.hselasky@c2i.net> In-Reply-To: <200707131021.59966.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: Attilio Rao Cc: freebsd-current@freebsd.org, Julian Elischer , FreeBSD Current Subject: Re: crash in tty code in 6.1.. fixed since? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: attilio@FreeBSD.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2007 08:26:26 -0000 Hans Petter Selasky wrote: > > If TTY was not Giant locked, you would have had an error there if another > mutex was locked, and the problem would have been solved years ago :-) Not sure what you mean, but the first evidence is that you would have explicitly drop/pickup the mutex so that you would have handled the race not trasparently as Giant does. Moreover, it seems that tty should be partially locked with a sleeping primitive (sx probabilly). Attilio