From owner-freebsd-hardware@FreeBSD.ORG Fri Jul 21 00:00:20 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E4CB16A4DF for ; Fri, 21 Jul 2006 00:00:19 +0000 (UTC) (envelope-from jrhett@mail.meer.net) Received: from outbound0.sv.meer.net (outbound0.mx.meer.net [209.157.153.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id A292C43D4C for ; Fri, 21 Jul 2006 00:00:19 +0000 (GMT) (envelope-from jrhett@mail.meer.net) Received: from mail.meer.net (mail.meer.net [209.157.152.14]) by outbound0.sv.meer.net (8.12.10/8.12.6) with ESMTP id k6L00Jih065965 for ; Thu, 20 Jul 2006 17:00:19 -0700 (PDT) (envelope-from jrhett@mail.meer.net) Received: from mail.meer.net (mail.meer.net [209.157.152.14]) by mail.meer.net (8.13.3/8.13.3/meer) with ESMTP id k6L00IO5001758 for ; Thu, 20 Jul 2006 17:00:18 -0700 (PDT) (envelope-from jrhett@mail.meer.net) Received: (from jrhett@localhost) by mail.meer.net (8.13.3/8.13.3) id k6L00IBI001757 for freebsd-hardware@freebsd.org; Thu, 20 Jul 2006 17:00:18 -0700 (PDT) (envelope-from jrhett) Date: Thu, 20 Jul 2006 17:00:18 -0700 From: Jo Rhett To: freebsd-hardware@freebsd.org Message-ID: <20060721000018.GA99237@svcolo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.9i Subject: device busy -- no locks? X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jul 2006 00:00:20 -0000 root@scapa 45# tip com1 /dev/cuad0: Device busy link down Hm. Really? root@scapa 46# ls /var/spool/lock root@scapa 47# fstat /dev/ttyd0 USER CMD PID FD MOUNT INUM MODE SZ|DV R/W NAME root@scapa 48# ps -ajwx |grep d0 root 12 0 0 0 0 WL ?? 0:00.05 [irq1: atkbd0] root 372 0 0 0 0 DL ?? 0:00.24 [md0] No locks? No processes using it. Okay, this is uncool. And yet "ktrace tip com1" and "kdump -f ktrace.out" clearly show: 50461 tip CALL open(0x8059030,0x6,0) 50461 tip NAMI "/dev/cuad0" 50461 tip RET open -1 errno 16 Device busy Where is this lock hiding? What process has this device locked? NOTE: at this time I am suspecting that CD is being misread (it's not present - I have a break out box on the line) and that this problem is somehow tied to that. This problem appears at random after login has exerted itself on the system. I've disabled the getty on ttyd0 and login has timed out, but it continues to show "device busy". root@scapa 51# uname -a FreeBSD scapa.sv 6.0-RELEASE FreeBSD 6.0-RELEASE #4: Fri Nov 11 13:29:33 PST 2005 root@barrel.svcolo.com:/usr/obj/usr/src/sys/GENERIC i386 -- Jo Rhett senior geek SVcolo : Silicon Valley Colocation