From owner-freebsd-ia64@FreeBSD.ORG Wed Sep 25 14:04:03 2013 Return-Path: Delivered-To: freebsd-ia64@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 ESMTP id 3232A681; Wed, 25 Sep 2013 14:04:03 +0000 (UTC) (envelope-from davide.italiano@gmail.com) Received: from mail-vb0-x22a.google.com (mail-vb0-x22a.google.com [IPv6:2607:f8b0:400c:c02::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D5184281D; Wed, 25 Sep 2013 14:04:02 +0000 (UTC) Received: by mail-vb0-f42.google.com with SMTP id e12so4577680vbg.29 for ; Wed, 25 Sep 2013 07:04:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=OmIoRIIMKrs6J8FlIK1k8hfEO1DAPPy5YHUuqh6Pifw=; b=rwo46hpefhNnLDa11Ntm/hVQypZZkq9qVyCX/3h55380FYSeyk/0Qi24x+E02Y5LRo 1hfc0AfFD5sINra1/ZHzOrjg23XCtya11ptMky6Cf5sONyqSU5vt3CZuzzlUfvl4U8Fx w2u5g0a9NNhAxaLSXvfxPOtUQKWlUbQzbI8FfyPFtExdrPwl6IsP7CDWMVShDpY0ZB9W DoFHw/rpDWm1Q6mjDaGCwTdE4Xaa9Krz4X8XwGTxrbSa1KcxLrNLuz7wc2Lzg2sgDWT4 30pBDuHob8QPHgLeCydEVN4FLHPF6Lq8EMwFjNIwQxAhP8m5Z4yitfQ6jlWS3nJ7Ijq1 dwPQ== MIME-Version: 1.0 X-Received: by 10.221.51.206 with SMTP id vj14mr33248091vcb.17.1380117841980; Wed, 25 Sep 2013 07:04:01 -0700 (PDT) Received: by 10.220.65.132 with HTTP; Wed, 25 Sep 2013 07:04:01 -0700 (PDT) In-Reply-To: <201309250911.r8P9Bpax001371@mech-cluster241.men.bris.ac.uk> References: <201309250911.r8P9Bpax001371@mech-cluster241.men.bris.ac.uk> Date: Wed, 25 Sep 2013 16:04:01 +0200 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 14:04:03 -0000 On Wed, Sep 25, 2013 at 11:11 AM, Anton Shterenlikht wrote: > FreeBSD mech-as221.men.bris.ac.uk 10.0-ALPHA2 FreeBSD 10.0-ALPHA2 #8 r255811: Tue Sep 24 09:04:17 BST 2013 root@mech-as221.men.bris.ac.uk:/usr/obj/usr/src/sys/UZI ia64 > > panic: deadlkres: possible deadlock detected for 0xe000000012d07b00, blocked for 902743 ticks > > cpuid = 1 > KDB: stack backtrace: > db_trace_self(0x9ffc0000000c9ec0) at db_trace_self+0x40 > db_trace_self_wrapper(0x9ffc0000004d40b0) at db_trace_self_wrapper+0x70 > kdb_backtrace(0x9ffc000000bfb030, 0x9ffc00000045b350, 0x40c, 0x9ffc000000dd20a0) at kdb_backtrace+0xc0 > vpanic(0x9ffc000000aec840, 0xa0000000005cb518) at vpanic+0x260 > panic(0x9ffc000000aec840, 0x9ffc000000aecaa0, 0xe000000012d07b00, 0xdc657) at panic+0x80 > deadlkres(0xdc657, 0xe000000012d07b00, 0x9ffc000000aef478, 0x9ffc000000aec7d0) at deadlkres+0x420 > fork_exit(0x9ffc000000b441e0, 0x0, 0xa0000000005cb550) at fork_exit+0x120 > enter_userland() at enter_userland > KDB: enter: panic > [ thread pid 0 tid 100047 ] > Stopped at kdb_enter+0x92: [I2] addl r14=0xffffffffffe28fb0,gp ;; > db> > db> show msgbuf > > *skip* > > <118>Sep 24 09:36:02 mech-as221 su: mexas to root on /dev/pts/0 > lock order reversal: > 1st 0xa00000005f0518b8 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:3059 > 2nd 0xe000000012343000 dirhash (dirhash) @ /usr/src/sys/ufs/ufs/ufs_dirhash.c:284 > KDB: stack backtrace: > db_trace_self(0x9ffc0000000c9ec0) at db_trace_self+0x40 > db_trace_self_wrapper(0x9ffc0000004d40b0) at db_trace_self_wrapper+0x70 > kdb_backtrace(0x9ffc000000bfb030, 0x9ffc000000509870) at kdb_backtrace+0xc0 > _witness_debugger(0x1, 0x9ffc000000b01d10, 0x9ffc00000050d240, 0xb9d, 0x9ffc000000b2e268) at _witness_debugger+0x60 > witness_checkorder(0xe000000012343000, 0x9ffc000000b01660, 0x9ffc000000b2e268, 0x11c, 0x0) at witness_checkorder+0x15b0 > _sx_xlock(0xe000000012343000, 0x0, 0x9ffc000000b2e268, 0x11c) at _sx_xlock+0x120 > ufsdirhash_acquire(0xe0000000123bd308, 0xe000000012343000, 0x9ffc0000008d1920, 0x38b) at ufsdirhash_acquire+0x50 > ufsdirhash_remove(0xe0000000123bd308, 0xa000000060ecbd08, 0x1d08, 0xa00000008fea51e8) at ufsdirhash_remove+0x20 > ufs_dirremove(0xe0000000123d8000, 0xe0000000129e29d8, 0x0, 0x0) at ufs_dirremove+0x380 > ufs_remove(0xa00000008fea5380, 0xe0000000129e29d8, 0xa1c) at ufs_remove+0xe0 > VOP_REMOVE_APV(0x9ffc000000bc3180, 0xa00000008fea5380, 0xe0000000122f8678, 0x0, 0x9ffc0000005c2920, 0xa1c, 0x9ffc000000dd20a0) at VOP_REMOVE_APV+0x220 > kern_unlinkat(0xe0000000123e1200, 0xffffffffffffff9c, 0x7fffffffffffee36, 0x0, 0x0) at kern_unlinkat+0x3f0 > kern_unlink(0xe0000000123e1200, 0x7fffffffffffee36, 0x0) at kern_unlink+0x40 > sys_unlink(0xe0000000123e1200, 0xa00000008fea54e8, 0x9ffc000000988c80, 0x48d) at sys_unlink+0x30 > syscall(0xe0000000123de940, 0x7fffffffffffee36, 0x7fffffffffffeb00, 0xe0000000123e1200, 0x0, 0x0, 0x9ffc000000983f20, 0x8) at syscall+0x5e0 > epc_syscall_return() at epc_syscall_return > <6>pid 52065 (conftest), uid 0: exited on signal 11 (core dumped) > > db> show thread > Thread 100047 at 0xe000000011973b00: > proc (pid 0): 0x9ffc000000c15828 > name: deadlkres > stack: 0xa0000000005c4000-0xa0000000005cbfff > flags: 0x4 pflags: 0x200000 > state: RUNNING (CPU 1) > priority: 108 > container lock: sched lock 1 (0x9ffc000000c3de80) > db> 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 Thanks, -- Davide "A mathematical theory is not to be considered complete until you have made it so clear that you can explain it to the first man whom you meet on the street." (D. Hilbert)