Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Sep 2010 16:38:40 +0400 (MSD)
From:      Dmitry Morozovsky <marck@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/150859: [tmpfs] tmpfs on stable/8-amd64 panic 
Message-ID:  <201009221238.o8MCcebJ053362@woozle.rinet.ru>
Resent-Message-ID: <201009221300.o8MD0Et6096724@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         150859
>Category:       kern
>Synopsis:       [tmpfs] tmpfs on stable/8-amd64 panic
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 22 13:00:13 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Morozovsky
>Release:        FreeBSD [78]-STABLE {i386,amd64}
>Organization:
Cronyx Plus LLC (RiNet ISP)
>Environment:
System: FreeBSD 8-STABLE, 7-STABLE 


>Description:

tmpfs on active usage (ports tinderbox over it) panicked with the details below.

8.1-STABLE FreeBSD 8.1-STABLE #2 r212822M: Mon Sep 20 22:05:13 MSD 2010

(kgdb) bt
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:248
#1  0xffffffff801a16ac in db_fncall (dummy1=Variable "dummy1" is not available.
) at /usr/src/sys/ddb/db_command.c:548
#2  0xffffffff801a19e1 in db_command (last_cmdp=0xffffffff8070f080, cmd_table=Variable "cmd_table" is not available.
) at /usr/src/sys/ddb/db_command.c:445
#3  0xffffffff801a1c30 in db_command_loop () at /usr/src/sys/ddb/db_command.c:498
#4  0xffffffff801a3c79 in db_trap (type=Variable "type" is not available.
) at /usr/src/sys/ddb/db_main.c:229
#5  0xffffffff802e055e in kdb_trap (type=3, code=0, tf=0xffffff81ddf53f60) at /usr/src/sys/kern/subr_kdb.c:535
#6  0xffffffff804febe6 in trap (frame=0xffffff81ddf53f60) at /usr/src/sys/amd64/amd64/trap.c:562
#7  0xffffffff804e33b4 in calltrap () at /usr/src/sys/amd64/amd64/exception.S:224
#8  0xffffffff802e06fd in kdb_enter (why=0xffffffff8055c85c "panic", msg=0xa <Address 0xa out of bounds>) at cpufunc.h:63
#9  0xffffffff802af43b in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:573
#10 0xffffffff80c24f5e in tmpfs_alloc_vp (mp=0xffffff000a230000, node=0xffffff001f8fa7e0, lkflag=525312, vpp=0xffffff81ddf542f0)
    at /usr/src/sys/modules/tmpfs/../../fs/tmpfs/tmpfs_subr.c:383
#11 0xffffffff80c23572 in tmpfs_lookup (v=Variable "v" is not available.
) at /usr/src/sys/modules/tmpfs/../../fs/tmpfs/tmpfs_vnops.c:95
#12 0xffffffff8032c4e0 in vfs_cache_lookup (ap=Variable "ap" is not available.
) at vnode_if.h:80
#13 0xffffffff8052a6b0 in VOP_LOOKUP_APV (vop=0xffffffff80c26260, a=0xffffff81ddf542d0) at vnode_if.c:123
#14 0xffffffff8024df8f in null_lookup (ap=0xffffff81ddf543d0) at vnode_if.h:54
#15 0xffffffff8052a6b0 in VOP_LOOKUP_APV (vop=0xffffffff806b4de0, a=0xffffff81ddf543d0) at vnode_if.c:123
#16 0xffffffff803337a2 in lookup (ndp=0xffffff81ddf54850) at vnode_if.h:54
#17 0xffffffff803348aa in namei (ndp=0xffffff81ddf54850) at /usr/src/sys/kern/vfs_lookup.c:269
#18 0xffffffff8034cb6c in vn_open_cred (ndp=0xffffff81ddf54850, flagp=0xffffff81ddf54958, cmode=0, vn_open_flags=Variable "vn_open_flags" is not available.
) at /usr/src/sys/kern/vfs_vnops.c:188
#19 0xffffffff8032f25f in vop_stdvptocnp (ap=Variable "ap" is not available.
) at /usr/src/sys/kern/vfs_default.c:761
#20 0xffffffff8024e615 in null_vptocnp (ap=0xffffff81ddf54a20) at /usr/src/sys/fs/nullfs/null_vnops.c:780
#21 0xffffffff8032b4c8 in vn_vptocnp_locked (vp=0xffffff81ddf54ab0, cred=0xffffff02161cb700, buf=0xffffff01d476d900 "", buflen=0xffffff81ddf54aac) at vnode_if.h:1544
#22 0xffffffff8032b72d in vn_fullpath1 (td=0xffffff00a46897c0, vp=0xffffff01024c7588, rdir=0xffffff000a06f938, buf=0xffffff01d476d900 "", retbuf=0xffffff81ddf54b20, buflen=255)
    at /usr/src/sys/kern/vfs_cache.c:1175
#23 0xffffffff8032b98e in kern___getcwd (td=0xffffff00a46897c0, buf=0x800c06208 <Address 0x800c06208 out of bounds>, bufseg=UIO_USERSPACE, buflen=256)
    at /usr/src/sys/kern/vfs_cache.c:940
#24 0xffffffff804fe76f in syscall (frame=0xffffff81ddf54c80) at /usr/src/sys/amd64/amd64/trap.c:945
#25 0xffffffff804e3692 in Xfast_syscall () at /usr/src/sys/amd64/amd64/exception.S:377
#26 0x0000000800936e3c in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb) up 10
#10 0xffffffff80c24f5e in tmpfs_alloc_vp (mp=0xffffff000a230000, node=0xffffff001f8fa7e0, lkflag=525312, vpp=0xffffff81ddf542f0)
    at /usr/src/sys/modules/tmpfs/../../fs/tmpfs/tmpfs_subr.c:383
383                     panic("tmpfs_alloc_vp: type %p %d", node, (int)node->tn_type);
(kgdb) l
378                     if (node->tn_dir.tn_parent == node)
379                             vp->v_vflag |= VV_ROOT;
380                     break;
381
382             default:
383                     panic("tmpfs_alloc_vp: type %p %d", node, (int)node->tn_type);
384             }
385
386             vnode_pager_setsize(vp, node->tn_size);
387             error = insmntque(vp, mp);


>How-To-Repeat:

<configure ports tinderbox (ports-mgmt/tinderbox)>

mount -t mptfs tmpfs /path/to/tinderbox/build

/usr/local/tb/scripts/tc rinderbuild -nullfs -b your-build-name


>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009221238.o8MCcebJ053362>