From owner-freebsd-questions@FreeBSD.ORG Sat Nov 19 21:09:05 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16D2816A41F for ; Sat, 19 Nov 2005 21:09:05 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id C389043D49 for ; Sat, 19 Nov 2005 21:09:04 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id A533C1A3C1C; Sat, 19 Nov 2005 13:09:04 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id C5C4B51279; Sat, 19 Nov 2005 16:09:03 -0500 (EST) Date: Sat, 19 Nov 2005 16:09:03 -0500 From: Kris Kennaway To: Doug Lee , freebsd-questions@freebsd.org Message-ID: <20051119210903.GC21199@xor.obsecurity.org> References: <20051119183236.GA1042@kirk.dlee.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lCAWRPmW1mITcIfM" Content-Disposition: inline In-Reply-To: <20051119183236.GA1042@kirk.dlee.org> User-Agent: Mutt/1.4.2.1i Cc: Subject: Re: deadlock caused by idprio? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Nov 2005 21:09:05 -0000 --lCAWRPmW1mITcIfM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Nov 19, 2005 at 01:32:36PM -0500, Doug Lee wrote: > I just ran a MySQL lookup process (written in Perl) as root prefixed > with "idprio 1." I expected it to take a while, but not several > minutes. After a while I decided to abort it, so I typed ^c in its > `screen' window. From then on (either from the ^c point or the idprio > run, I know not which), I could not create any new processes, nor > could I kill the running task. Any attempt to do either would hang > indefinitely. I could end processes and work within existing > processes as long as they didn't try to create new ones. I entered > the debugger (I use the alt method of ~^b) and typed, among other > things, "show lockedvnodes" and got one vnode which said "... with 22 > pending," and this count went up by 1 each time I tried creating a new > process. Sadly, I forgot to snapshot that screen, so I can't quote > the rest of that entry. I remember it said VDIR and type > something+VOBJECT, but I don't remember what the something was. > Unable to retrieve my system, I finally typed "panic" in the debugger > so at least the disks would sync. Other than "giving up on 4 > buffers," that went fine. >=20 > Any ideas what this is, and whether it's a bug? I thought idprio was > harmless as far as affecting other processes. No, it's known to cause deadlocks. I don't know if this is still the case on 6.0. Kris --lCAWRPmW1mITcIfM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDf5RvWry0BWjoQKURAjBfAJ4sA/PsewG6yz/kYQ98QPf56T5xIgCgltLg dXd8VPmXpDh3sj7nkRhhiKM= =hlem -----END PGP SIGNATURE----- --lCAWRPmW1mITcIfM--