From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 13 20:51:51 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CFD0DBF4 for ; Thu, 13 Feb 2014 20:51:51 +0000 (UTC) Received: from mail-ob0-x233.google.com (mail-ob0-x233.google.com [IPv6:2607:f8b0:4003:c01::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9A684129D for ; Thu, 13 Feb 2014 20:51:51 +0000 (UTC) Received: by mail-ob0-f179.google.com with SMTP id wo20so12923781obc.10 for ; Thu, 13 Feb 2014 12:51:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=G5mpQ6cIqY3viCbPxNwU9dAQAQwJbf+tZ4J0nJ/rGyE=; b=LOySa7juAwT7FXj2wXn1N9yvXVF51rd89Q71RSaNwESri+OofLbDbpofwK2WojTQg4 kqxtk9tSCYtpgxUpE6sC5R39c7tX/6OJvnZtGGaDGU68S/K7Z5bQ4tWDcqb+MitUpZIG yKz7Y4V4bFLIhJ7UNDAso/OO21J2URehEbyczKNYfp/tZ8rHoXgeuhodqCOAoZejQD50 k5YGXjLevkJAHK1rBYqH9flrVKxM1MtCTkKfQYJm2WXQFJh4XGMhpWM7DVDy7w8y9U+f MzqEpx/cfa5SnmL8AYVEsz/u4W/RaRi2zTDNmu8eWep+5lOrahS7/ZyUVXtasw6vNqA6 ORFw== MIME-Version: 1.0 X-Received: by 10.60.54.202 with SMTP id l10mr2868117oep.29.1392324710747; Thu, 13 Feb 2014 12:51:50 -0800 (PST) Received: by 10.182.74.4 with HTTP; Thu, 13 Feb 2014 12:51:50 -0800 (PST) Date: Thu, 13 Feb 2014 12:51:50 -0800 Message-ID: Subject: Debugging rw lock From: Vijay Singh To: hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Feb 2014 20:51:51 -0000 I am running into an issue where an rw lock is read locked and never unlocked, and causes a system to livelock. I was wondering if its possible to figure out which thread owns the read lock? It's the tcp pcbinfo lock. (kgdb-amd64-7.4-08) show_rwlock rw name : tcp class: rw flags: {SLEEP, INITED, WITNESS, RECURSE, UPGRADABLE} state: RLOCK: 1 locks waiters: writers Any help is appreciated. -vijay