From owner-freebsd-current@FreeBSD.ORG Wed May 4 05:40:27 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84D24106564A for ; Wed, 4 May 2011 05:40:27 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2E3E78FC08 for ; Wed, 4 May 2011 05:40:26 +0000 (UTC) Received: by vxc34 with SMTP id 34so1092854vxc.13 for ; Tue, 03 May 2011 22:40:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to:cc :content-type; bh=AlVVEFLPoAh2CXMN2TT4HjR3wZiyGnJAapypTy3fmhc=; b=wgkGaFm+a9nktfbqC/CClb/hoOE3m0si4fq0qZ5m1M6iU0FOpi0/ht/fxGb/ah6emm Vz9exx+TOKi04AQQqTFfgMeWLDbhKWkGldmkze6ZOuBQEjlySTqhzikF5+qUvrdEmHXG QvS64U7gkGWp92GQGzFR8Mqh23bmYFURzImpg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=vMDiQ3NOmt6AIS5VFPPaQ1nAyKSvoSCGttdd5Q3HFE0R+Pgx2A6LpFq3nJ4nEat8/B f0S37Z3TeebY1vxljzKkGwnVED+2aQqdIZ/NlQRI4Rub3C3Dy3Pynxo92c5Vw7RBTXq8 Ry3blHqiairdN1P4PdfONYfx0Wd/wKz9hFyHk= MIME-Version: 1.0 Received: by 10.52.176.194 with SMTP id ck2mr808501vdc.248.1304487626484; Tue, 03 May 2011 22:40:26 -0700 (PDT) Received: by 10.220.199.130 with HTTP; Tue, 3 May 2011 22:40:26 -0700 (PDT) Date: Tue, 3 May 2011 22:40:26 -0700 Message-ID: From: Garrett Cooper To: Jeff Roberson , Marshall Kirk McKusick Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Current Subject: Nasty non-recursive lockmgr panic on softdep only enabled UFS partition when filesystem full X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2011 05:40:27 -0000 Hi Jeff and Dr. McKusick, Ran into this panic when /usr ran out of space doing a make universe on amd64/r221219 (it took ~15 minutes for the panic to occur after the filesystem ran out of space -- wasn't quite sure what it was doing at the time): pid 24486 (ld), uid 0 inumber 9993 on /usr: filesystem full pid 24511 (config), uid 0 inumber 361082 on /usr: filesystem full pid 24494 (make), uid 0 inumber 1886295 on /usr: filesystem full panic: __lockmgr_args: recursing on non recursive lockmgr bufwait @ /usr/src/sys/ufs/ffs/ffs_softdep.c:11025 (kgdb) #0 doadump () at pcpu.h:224 #1 0xffffffff802af22c in db_fncall (dummy1=Variable "dummy1" is not available. ) at /usr/src/sys/ddb/db_command.c:548 #2 0xffffffff802af561 in db_command (last_cmdp=0xffffffff808f93c0, cmd_table=Variable "cmd_table" is not available. ) at /usr/src/sys/ddb/db_command.c:445 #3 0xffffffff802af7a9 in db_command_loop () at /usr/src/sys/ddb/db_command.c:498 #4 0xffffffff802b1737 in db_trap (type=Variable "type" is not available. ) at /usr/src/sys/ddb/db_main.c:229 #5 0xffffffff803f7d48 in kdb_trap (type=3, code=0, tf=0xffffff834e4c8ef0) at /usr/src/sys/kern/subr_kdb.c:533 #6 0xffffffff80599da5 in trap (frame=0xffffff834e4c8ef0) at /usr/src/sys/amd64/amd64/trap.c:590 #7 0xffffffff80584ef3 in calltrap () at /usr/src/sys/amd64/amd64/exception.S:228 #8 0xffffffff803f7baf in kdb_enter (why=0xffffffff806178cf "panic", msg=0xa
) at cpufunc.h:63 #9 0xffffffff803c4b6f in panic (fmt=Variable "fmt" is not available. ) at /usr/src/sys/kern/kern_shutdown.c:584 #10 0xffffffff803af3ac in __lockmgr_args (lk=0x100, flags=0, ilk=0xfffffe00b95766c0, wmesg=Variable "wmesg" is not available. ) at /usr/src/sys/kern/kern_lock.c:720 #11 0xffffffff8054240b in softdep_sync_metadata (vp=0xfffffe017fe5d000) at lockmgr.h:97 #12 0xffffffff80548e90 in ffs_syncvnode (vp=0xfffffe017fe5d000, waitfor=Variable "waitfor" is not available. ) at /usr/src/sys/ufs/ffs/ffs_vnops.c:331 #13 0xffffffff8053be23 in softdep_request_cleanup (fs=0xfffffe00086ef000, vp=0xfffffe00b95765a0, cred=Variable "cred" is not available. ) at /usr/src/sys/ufs/ffs/ffs_softdep.c:11392 #14 0xffffffff80523895 in ffs_realloccg (ip=0xfffffe00b9285bd0, lbprev=0, bprev=10092847, bpref=10723304, osize=2048, nsize=4096, flags=65536, cred=0xfffffe026e905a00, bpp=0xffffff834e4c95f0) at /usr/src/sys/ufs/ffs/ffs_alloc.c:423 #15 0xffffffff805266de in ffs_balloc_ufs2 (vp=0xfffffe00b95765a0, startoffset=Variable "startoffset" is not available. ) at /usr/src/sys/ufs/ffs/ffs_balloc.c:699 #16 0xffffffff8054fbfb in ufs_direnter (dvp=0xfffffe00b95765a0, tvp=0xfffffe00701c4000, dirp=0xffffff834e4c97b0, cnp=Variable "cnp" is not available. ) at /usr/src/sys/ufs/ufs/ufs_lookup.c:910 #17 0xffffffff80557af8 in ufs_mkdir (ap=0xffffff834e4c9a90) at /usr/src/sys/ufs/ufs/ufs_vnops.c:1961 #18 0xffffffff805d666b in VOP_MKDIR_APV (vop=0xffffffff808c2a40, a=0xffffff834e4c9a90) at vnode_if.c:1534 #19 0xffffffff80457eb8 in kern_mkdirat (td=0xfffffe0149df4000, fd=-100, path=0x6096e0
, segflg=Variable "segflg" is not available. ) at vnode_if.h:665 #20 0xffffffff80404cd1 in syscallenter (td=0xfffffe0149df4000, sa=0xffffff834e4c9bb0) at /usr/src/sys/kern/subr_trap.c:344 #21 0xffffffff8059996e in syscall (frame=0xffffff834e4c9c50) at /usr/src/sys/amd64/amd64/trap.c:910 #22 0xffffffff805851bd in Xfast_syscall () at /usr/src/sys/amd64/amd64/exception.S:384 #23 0x0000000800b3798c in ?? () Previous frame inner to this frame (corrupt stack?) (kgdb) $ sudo tunefs -p /usr tunefs: POSIX.1e ACLs: (-a) disabled tunefs: NFSv4 ACLs: (-N) disabled tunefs: MAC multilabel: (-l) disabled tunefs: soft updates: (-n) enabled tunefs: soft update journaling: (-j) disabled tunefs: gjournal: (-J) disabled tunefs: trim: (-t) disabled tunefs: maximum blocks per file in a cylinder group: (-e) 2048 tunefs: average file size: (-f) 16384 tunefs: average number of files in a directory: (-s) 64 tunefs: minimum percentage of free space: (-m) 8% tunefs: optimization preference: (-o) time tunefs: volume label: (-L) Let me know what other commands you would like for me to run in kgdb. Thanks, -Garrett