From owner-freebsd-ia64@FreeBSD.ORG Wed Sep 25 16:36:38 2013 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id AB9AB4D0; Wed, 25 Sep 2013 16:36:38 +0000 (UTC) (envelope-from davide.italiano@gmail.com) Received: from mail-ve0-x235.google.com (mail-ve0-x235.google.com [IPv6:2607:f8b0:400c:c01::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5927F2222; Wed, 25 Sep 2013 16:36:38 +0000 (UTC) Received: by mail-ve0-f181.google.com with SMTP id oy12so4816014veb.40 for ; Wed, 25 Sep 2013 09:36:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=LARSoMtLnWNORvDZonzeRx+n2/jHYvAbYzsW2NI1ocg=; b=a5gN5i6ce2xIaVpU5PzQKQPEZFzgNUGTGs7O8+pgw2s95d12n5gIVCnoGMXO/TVkqo N07XXo1uwHc+mdjQoPpd7UUBoNlvi3Fh0B0MU8XlVw2mDWlq9b9DVaKn9Ix2qW5i8GE+ f7O1j7pfV0B6xAk4YtujqSzk6HOx/wZIMH7kaAEIE5R9rAunSFzr9iz3T6SDtFcRsrOi pnwJyYmIUdZTJ1roRTO5tSf5eAzjO52EeyqK+/R4wipE8KuX5CPjsIpmDCT8ZFJ7SnTK +RaUEHSWOttUznSlS3HcNdohFLRfD8kUgmGlntaJl7+yTd9ev4WGmLh546LYBgaRhWyY poYg== MIME-Version: 1.0 X-Received: by 10.58.249.136 with SMTP id yu8mr851537vec.37.1380126997458; Wed, 25 Sep 2013 09:36:37 -0700 (PDT) Sender: davide.italiano@gmail.com Received: by 10.220.65.132 with HTTP; Wed, 25 Sep 2013 09:36:37 -0700 (PDT) In-Reply-To: <201309251530.r8PFUtMG002713@mech-cluster241.men.bris.ac.uk> References: <201309251530.r8PFUtMG002713@mech-cluster241.men.bris.ac.uk> Date: Wed, 25 Sep 2013 18:36:37 +0200 X-Google-Sender-Auth: CU4vXE2Cit2wi4uVK9acjSN06N0 Message-ID: Subject: Re: panic: ia64 r255811: deadlkres: possible deadlock detected for 0xe000000012d07b00, blocked for 902743 ticks From: Davide Italiano To: mexas@bris.ac.uk Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current , freebsd-ia64@freebsd.org X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Sep 2013 16:36:38 -0000 On Wed, Sep 25, 2013 at 5:30 PM, Anton Shterenlikht wrote: > >From davide.italiano@gmail.com Wed Sep 25 16:12:47 2013 >> >>Can you please paste the output of 'show locks', 'show alllocks', >>'show lockedvnods' at least? >>Ideally you should provide all the informations listed here. >>http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug-deadlocks.html > > ok, I'll need to study this. > > I've in the kernel: > > # Debugging support. Always need this: > options KDB # Enable kernel debugger support. > options KDB_TRACE # Print a stack trace for a panic. > # For full debugger support use (turn off in stable branch): > options DDB # Support DDB > options GDB # Support remote GDB > options DEADLKRES # Enable the deadlock resolver > options INVARIANTS # Enable calls of extra sanity checking > options INVARIANT_SUPPORT # required by INVARIANTS > options WITNESS # Enable checks to detect deadlocks and cycles > options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed > options MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones > > so I'm missing DEBUG_LOCKS, DEBUG_VFS_LOCKS and DIAGNOSTIC > from the handbook list. > > What about all debug options in GENERIC which are > not mentioned in your link? Specifically, do I need > to have DEADLKRES? > Yes, you need that option because it's DEADLKRES that triggers the panic. > I've never used trace. > Also, I'm getting a panic, so cannot run ps, I think. > You can run 'ps' from ddb prompt. As an advice I suggest you to setup textdump(4) on your machine and set up a script to gather the required informations, so that you can get those informations pretty easily for report. The manpage has detailed description about how to do this. > Thanks > > Anton -- Davide "There are no solved problems; there are only problems that are more or less solved" -- Henri Poincare