From owner-freebsd-current Fri Nov 8 2: 0: 2 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 595EE37B401 for ; Fri, 8 Nov 2002 02:00:00 -0800 (PST) Received: from mid-1.inet.it (mid-1.inet.it [213.92.5.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD3BC43E3B for ; Fri, 8 Nov 2002 01:59:58 -0800 (PST) (envelope-from andrea@acampi.inet.it) Received: from [::ffff:213.92.1.165] by mid-1.inet.it via I-SMTP-4.3.0-430 id ::ffff:213.92.1.165+7nDC9omDdmhy; Fri, 08 Nov 2002 10:59:56 +0100 Received: by acampi.inet.it (Postfix, from userid 1000) id 2D7511555E; Fri, 8 Nov 2002 10:59:56 +0100 (CET) Date: Fri, 8 Nov 2002 10:59:56 +0100 From: Andrea Campi To: current@freebsd.org Subject: Deadlock during buildworld Message-ID: <20021108095956.GA44675@webcom.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi all, for months now I've been having a reproducible hang under load (make -j4 buildworld on a uniprocessor with plenty of RAM). I transcribed some info which might be useful to debug it; it seems to me this is a deadlock (am I right?). I'll leave the laptop in ddb so I can provide more info. This is last week current; I had seen a few commits I thought might fix this but no. db> show locked Locked vnodes 0xc202ca68: tag ufs, type VDIR, usecont 1, writecount 0, refcount 2, flags (VV_OBJBUF), lock type ufs: EXCL (count 1) by pid 53304 ino 31744, on dev ad2s2f (4, 16) 0xc27e04a0: tag ufs, type VREG, usecount 18, writecount 0, refcount 1, flags (VV_TEXT|VV_OBJBUF), lock type ufs: EXCL (count 1) by pid 53301 with 3 pending ino 87582, on dev ad2s2f (4, 16) 0xc2c13940: tag ufs, type VREG, usecount 18, writecount 0, refcount 1, flags (VV_TEXT|VV_OBJBUF), lock type ufs: EXCL (count 1) by pid 53302 with 3 pending ino 33113, on dev ad2s2f (4, 16) db> trace 53301 mi_switch(c303f340,44,0,0,0) at mi_switch+0x15e msleep(c0d260b4,c03aece8,44,c0349f69,0) at msleep+0x4e1 acquire(c0d260b4,1000000,600,c0d26078,d035) at acquire+0xa7 lockmgr(...) at lockmgt+0x3c8 _vm_map_lock(...) at _vm_map_lock+0x32 kmem_free_wakeup(...) at kmem_free_wakeup+0x2a execve syscall Xint080_syscall --- syscall(0, FreeBSD ELF32, nosys), eip = 0x80480c0, esp = 0xbfbff8dc, ebp = 0 db> trace 53302 mi_switch(c1f77a90,44,0,0,0) at mi_switch+0x15e msleep(c0d260b4,c03aece8,44,c0349f69,0) at msleep+0x4e1 acquire(c0d260b4,1000000,600,c0d26078,d035) at acquire+0xa7 lockmgr(...) at lockmgt+0x3c8 _vm_map_lock(...) at _vm_map_lock+0x32 kmem_free_wakeup(...) at kmem_free_wakeup+0x2a execve syscall Xint080_syscall --- syscall(0, FreeBSD ELF32, nosys), eip = 0x80480c0, esp = 0xbfbff8dc, ebp = 0 db> trace 53304 mi_switch(c22aa8f0,50,0,1000,0) at mi_switch+0x15e msleep(c2c13a04,c03af920,50,c0348e2f,0) at msleep+0x4e1 acquire(c2c13a04,1000040,600,c201b6f0,d035) at acquire+0xa7 lockmgr(...) at lockmgt+0x3c8 vop_stdlock(...) at vop_stdlock+0x2c ufs_vnoperate(...) at ufs_vnoperate+0x18 vn_lock(...) at vn_lock+0x11e vget(...) at vget+0x100 vfs_cache_lookup(...) at vfs_cache_lookup+0x1ed ufs_vnoperate(...) at ufs_vnoperate+0x18 lookup(...) at lookup+0x302 namei(...) at namei+0x20b execve syscall Xint080_syscall --- syscall(0, FreeBSD ELF32, nosys), eip = 0x80480c0, esp = 0xbfbff8dc, ebp = 0 Bye, Andrea To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message