From owner-freebsd-stable@FreeBSD.ORG Sat Dec 7 18:37:28 2013 Return-Path: Delivered-To: freebsd-stable@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 A0493854 for ; Sat, 7 Dec 2013 18:37:28 +0000 (UTC) Received: from relay02.pair.com (relay02.pair.com [209.68.5.16]) by mx1.freebsd.org (Postfix) with SMTP id 523A51174 for ; Sat, 7 Dec 2013 18:37:27 +0000 (UTC) Received: (qmail 21247 invoked from network); 7 Dec 2013 18:30:45 -0000 Received: from 87.58.146.155 (HELO x2.osted.lan) (87.58.146.155) by relay02.pair.com with SMTP; 7 Dec 2013 18:30:45 -0000 X-pair-Authenticated: 87.58.146.155 Received: from x2.osted.lan (localhost [127.0.0.1]) by x2.osted.lan (8.14.5/8.14.5) with ESMTP id rB7IUi2t019958; Sat, 7 Dec 2013 19:30:45 +0100 (CET) (envelope-from pho@x2.osted.lan) Received: (from pho@localhost) by x2.osted.lan (8.14.5/8.14.5/Submit) id rB7IUiQi019957; Sat, 7 Dec 2013 19:30:44 +0100 (CET) (envelope-from pho) Date: Sat, 7 Dec 2013 19:30:44 +0100 From: Peter Holm To: =?iso-8859-1?Q?=D6zkan?= KIRIK Subject: Re: stable/10 r258317 - UFS lock problem Message-ID: <20131207183044.GA19655@x2.osted.lan> References: <20131206201329.GK59496@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Konstantin Belousov , freebsd-stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Dec 2013 18:37:28 -0000 On Sat, Dec 07, 2013 at 08:24:32AM +0200, Özkan KIRIK wrote: > Hi, > > I'm trying to compile a debug kernel with these options : > > makeoptions DEBUG=-g > options INVARIANTS > options INVARIANT_SUPPORT > options WITNESS > options DEBUG_LOCKS > options DEBUG_VFS_LOCKS > options DIAGNOSTIC > > While compiling; compilations fails due to this error : > /usr/src/sys/kern/subr_vmem.c:1357:1: error: unused function 'vmem_dump' > [-Werror, -Wunused-function] > Did you forget "options DDB" ? - Peter > > I'll comment out this function and recompiled kernel. > Now, while booting, kernel panics. Error line is below; KDB stack > backtrace is attached as PNG screenshot. > > "panic: mtx_lock_spin: recursed on non-recursive mutex cnput_mtx @ > /usr/src/sys/kern/kern_cons.c:500" > > I think, i hit an other bug. > > Best wishes, > > Ozkan KIRIK > ePati Information Technologies > http://www.epati.com.tr/ > > > On Fri, Dec 6, 2013 at 10:13 PM, Konstantin Belousov wrote: > > > On Fri, Dec 06, 2013 at 08:10:55PM +0200, ?zkan KIRIK wrote: > > > Hi, > > > > > > I am using FreeBSD 10.0-BETA3 r258317 GENERIC kernel. > > > > > > I run "portsnap fetch extract". > > > While extracting files, extracting operation hangs, and i cant kill > > process. > > > > > > Output of : "ps ax | grep D+" ( uninterruptable process list ) > > > % ps ax | grep D+ > > > 28933 0 D+ 0:00.01 tar -xz --numeric-owner -f > > > > > /var/db/portsnap/files/77d41f10d2832f8450e4e02a4db5c0a6131c97d15076ed0c76e761c9ce58338d.gz > > > -C /usr/ports/emulators/qemu/ (bsdtar) > > > 29051 1 S+ 0:00.00 grep D+ > > > % > > > > > > > > > Because of D flag, process cannot be interrupted even by SIGKILL. > > > I cannot remove usr/ports folder while this process on D+ state. > > > If I run rm -r /usr/ports, rm process is flagged as D+ also. > > > > > > I tested this situation on both vmware workstation and different real > > > hardware installations. ( Sun Fire X4150, HP DL380G4, Sun X3 servers. ) > > > > > > Problem is repeatable. If you install FreeBSD on ZFS root, problem > > doesn't > > > occur. > > > > > > > > > # mount > > > /dev/da0p2 on / (ufs, local, journaled soft-updates) > > > devfs on /dev (devfs, local, multilabel) > > > > See > > > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug-deadlocks.html > > > _______________________________________________