panic: tmpfs_alloc_vp: type 0xffffff000143d380 0

From: Pawel Worach <pawel.worach_at_gmail.com>
Date: Wed, 5 Nov 2008 13:34:56 +0100
Hi,

Got the following panic after I built some ports with
WRKDIRPREFIX=/tmp/work where /tmp is tmpfs.

FreeBSD one 8.0-CURRENT FreeBSD 8.0-CURRENT #0 r184639M: Tue Nov  4
18:39:44 CET 2008     root_at_one:/usr/obj/usr/src/sys/IBMT61  amd64

panic: tmpfs_alloc_vp: type 0xffffff000143d380 0

Unread portion of the kernel message buffer:
panic: tmpfs_alloc_vp: type 0xffffff000143d380 0
cpuid = 0
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2a
panic() at panic+0x17d
tmpfs_alloc_vp() at tmpfs_alloc_vp+0x255
tmpfs_lookup() at tmpfs_lookup+0x17a
vfs_cache_lookup() at vfs_cache_lookup+0xda
VOP_LOOKUP_APV() at VOP_LOOKUP_APV+0x41
lookup() at lookup+0x4ab
namei() at namei+0x4a5
kern_statat() at kern_statat+0x7a
stat() at stat+0x22
syscall() at syscall+0x237
Xfast_syscall() at Xfast_syscall+0xab
--- syscall (188, FreeBSD ELF64, stat), rip = 0x80098bd7c, rsp =
0x7fffffffe318, rbp = 0x3 ---
Uptime: 32m30s
Physical memory: 503 MB
Dumping 121 MB: 106 90 74 58 42 26 10

Reading symbols from /boot/kernel/geom_eli.ko...Reading symbols from
/boot/kernel/geom_eli.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/geom_eli.ko
Reading symbols from /boot/kernel/snd_es137x.ko...Reading symbols from
/boot/kernel/snd_es137x.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/snd_es137x.ko
Reading symbols from /boot/kernel/sound.ko...Reading symbols from
/boot/kernel/sound.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/sound.ko
Reading symbols from /boot/kernel/snd_hda.ko...Reading symbols from
/boot/kernel/snd_hda.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/snd_hda.ko
Reading symbols from /boot/kernel/acpi_ibm.ko...Reading symbols from
/boot/kernel/acpi_ibm.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/acpi_ibm.ko
Reading symbols from /boot/kernel/if_iwn.ko...Reading symbols from
/boot/kernel/if_iwn.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/if_iwn.ko
Reading symbols from /boot/kernel/tmpfs.ko...Reading symbols from
/boot/kernel/tmpfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/tmpfs.ko
Reading symbols from /boot/kernel/linux.ko...Reading symbols from
/boot/kernel/linux.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/linux.ko
#0  doadump () at pcpu.h:196
196     pcpu.h: No such file or directory.
        in pcpu.h
(kgdb) #0  doadump () at pcpu.h:196
#1  0xffffffff802a6cc6 in boot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:420
#2  0xffffffff802a7162 in panic (fmt=Variable "fmt" is not available.
)
    at /usr/src/sys/kern/kern_shutdown.c:576
#3  0xffffffff8090ef64 in tmpfs_alloc_vp (mp=0xffffff000139f2f0,
    node=0xffffff000143d380, lkflag=525312, vpp=0xfffffffe528079a0,
    td=0xffffff00184f8a50)
    at /usr/src/sys/modules/tmpfs/../../fs/tmpfs/tmpfs_subr.c:382
#4  0xffffffff8090d56c in tmpfs_lookup (v=Variable "v" is not available.
)
    at /usr/src/sys/modules/tmpfs/../../fs/tmpfs/tmpfs_vnops.c:97
#5  0xffffffff80316930 in vfs_cache_lookup (ap=Variable "ap" is not available.
) at vnode_if.h:80
#6  0xffffffff804ea4df in VOP_LOOKUP_APV (vop=0xffffffff809101a0,
    a=0xfffffffe52807830) at vnode_if.c:99
#7  0xffffffff8031cb2d in lookup (ndp=0xfffffffe52807970) at vnode_if.h:54
#8  0xffffffff8031da67 in namei (ndp=0xfffffffe52807970)
    at /usr/src/sys/kern/vfs_lookup.c:235
#9  0xffffffff8032b64a in kern_statat (td=0xffffff00184f8a50,
flag=Variable "flag" is not available.
)
    at /usr/src/sys/kern/vfs_syscalls.c:2333
#10 0xffffffff8032b96c in stat (td=Variable "td" is not available.
) at /usr/src/sys/kern/vfs_syscalls.c:2284
#11 0xffffffff804c7096 in syscall (frame=0xfffffffe52807c90)
    at /usr/src/sys/amd64/amd64/trap.c:898
#12 0xffffffff804aab3b in Xfast_syscall ()
    at /usr/src/sys/amd64/amd64/exception.S:338
#13 0x000000080098bd7c in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb) f 3
#3  0xffffffff8090ef64 in tmpfs_alloc_vp (mp=0xffffff000139f2f0,
node=0xffffff000143d380, lkflag=525312, vpp=0xfffffffe528079a0,
    td=0xffffff00184f8a50) at
/usr/src/sys/modules/tmpfs/../../fs/tmpfs/tmpfs_subr.c:382
382                     panic("tmpfs_alloc_vp: type %p %d", node,
(int)node->tn_type);
(kgdb) p *mp
$1 = {mnt_mtx = {lock_object = {lo_name = 0xffffffff80528b3c "struct
mount mtx", lo_flags = 16973824, lo_data = 0,
      lo_witness = 0x0}, mtx_lock = 4}, mnt_gen = 1, mnt_list =
{tqe_next = 0x0, tqe_prev = 0xffffff000139f608},
  mnt_op = 0xffffffff80910620, mnt_vfc = 0xffffffff80910800,
mnt_vnodecovered = 0xffffff00013f5588, mnt_syncer =
0xffffff00013ed000,
  mnt_ref = 10, mnt_nvnodelist = {tqh_first = 0xffffff00013ed1d8,
tqh_last = 0xffffff0010e135b0}, mnt_nvnodelistsize = 10,
  mnt_writeopcount = 0, mnt_kern_flag = 536870912, mnt_flag = 4096,
mnt_noasync = 0, mnt_opt = 0xffffff00013253b0, mnt_optnew = 0x0,
  mnt_maxsymlinklen = 0, mnt_stat = {f_version = 537068824, f_type =
1, f_flags = 4096, f_bsize = 4096, f_iosize = 4096,
    f_blocks = 335705, f_bfree = 335696, f_bavail = 335696, f_files =
6138457, f_ffree = 6138441, f_syncwrites = 0,
    f_asyncwrites = 0, f_syncreads = 0, f_asyncreads = 0, f_spare =
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, f_namemax = 255, f_owner = 0,
    f_fsid = {val = {16842497, 1}}, f_charspare = '\0' <repeats 79 times>,
    f_fstypename = "tmpfs\000\000\000\000\000\000\000\000\000\000",
f_mntfromname = "tmpfs", '\0' <repeats 82 times>,
    f_mntonname = "/tmp", '\0' <repeats 83 times>}, mnt_cred =
0xffffff0001442000, mnt_data = 0xffffff000133f480, mnt_time = 0,
  mnt_iosize_max = 65536, mnt_export = 0x0, mnt_label = 0x0,
mnt_hashseed = 816498104, mnt_lockref = 0, mnt_secondary_writes = 0,
  mnt_secondary_accwrites = 0, mnt_susp_owner = 0x0, mnt_gjprovider =
0x0, mnt_explock = {lock_object = {
      lo_name = 0xffffffff80528b4d "explock", lo_flags = 91947008,
lo_data = 0, lo_witness = 0x0}, lk_lock = 1, lk_timo = 0,
    lk_pri = 80}}
(kgdb) p *node
$2 = {tn_entries = {le_next = 0xffffff001855fc40, le_prev =
0xffffff001854c9a0}, tn_type = VNON, tn_id = 323, tn_status = 0,
  tn_size = 2608, tn_uid = 0, tn_gid = 0, tn_mode = 420, tn_flags = 0,
tn_links = 0, tn_atime = {tv_sec = 1225890653, tv_nsec = 0},
  tn_mtime = {tv_sec = 1225890653, tv_nsec = 0}, tn_ctime = {tv_sec =
1225890653, tv_nsec = 0}, tn_birthtime = {tv_sec = 1225890653,
    tv_nsec = 0}, tn_gen = 2381436011, tn_vnode = 0x0, tn_interlock =
{lock_object = {
      lo_name = 0xffffffff809100a6 "tmpfs node interlock", lo_flags =
16973824, lo_data = 0, lo_witness = 0x0}, mtx_lock = 4},
  tn_vpstate = 1, tn_spec = {tn_rdev = 26841288, tn_dir = {tn_parent =
0xffffff00019990c8, tn_dirhead = {tqh_first = 0x1,
        tqh_last = 0xffffff000143d440}, tn_readdir_lastn = 0,
tn_readdir_lastp = 0x0}, tn_link = 0xffffff00019990c8 "G¡T\200ÿÿÿÿ",
    tn_reg = {tn_aobj = 0xffffff00019990c8, tn_aobj_pages = 1},
tn_fifo = {tn_fo_read = 0xffffff00019990c8, tn_fo_write = 0x1}}}
(kgdb) p *vpp
$3 = (struct vnode *) 0x0
(kgdb) p *td
$4 = {td_lock = 0xffffffff806f6540, td_proc = 0xffffff0018617860,
td_plist = {tqe_next = 0x0, tqe_prev = 0xffffff0018617870},
  td_runq = {tqe_next = 0x0, tqe_prev = 0xffffffff806f6788}, td_slpq =
{tqe_next = 0x0, tqe_prev = 0xffffff00011981c0}, td_lockq = {
    tqe_next = 0x0, tqe_prev = 0x0}, td_cpuset = 0xffffff000119bdc8,
td_sel = 0xffffff000195b380,
  td_sleepqueue = 0xffffff00011981c0, td_turnstile =
0xffffff00013d8630, td_umtxq = 0xffffff001843e400, td_tid = 100098,
  td_sigqueue = {sq_signals = {__bits = {0, 0, 0, 0}}, sq_kill =
{__bits = {0, 0, 0, 0}}, sq_list = {tqh_first = 0x0,
      tqh_last = 0xffffff00184f8af0}, sq_proc = 0xffffff0018617860,
sq_flags = 1}, td_flags = 65542, td_inhibitors = 0,
  td_pflags = 0, td_dupfd = 0, td_sqqueue = 0, td_wchan = 0x0,
td_wmesg = 0x0, td_lastcpu = 0 '\0', td_oncpu = 0 '\0',
  td_owepreempt = 0 '\0', td_tsqueue = 0 '\0', td_locks = 1,
td_rw_rlocks = 0, td_lk_slocks = 0, td_blocked = 0x0,
  td_lockname = 0x0, td_contested = {lh_first = 0x0}, td_sleeplocks =
0x0, td_intr_nesting_level = 0, td_pinned = 2,
  td_ucred = 0xffffff0001736a00, td_estcpu = 0, td_slptick = 0, td_ru
= {ru_utime = {tv_sec = 0, tv_usec = 0}, ru_stime = {
      tv_sec = 0, tv_usec = 0}, ru_maxrss = 1704, ru_ixrss = 33936,
ru_idrss = 277548, ru_isrss = 38784, ru_minflt = 107,
    ru_majflt = 0, ru_nswap = 0, ru_inblock = 0, ru_oublock = 0,
ru_msgsnd = 0, ru_msgrcv = 0, ru_nsignals = 0, ru_nvcsw = 0,
    ru_nivcsw = 0}, td_incruntime = 0, td_runtime = 0, td_pticks =
303, td_sticks = 303, td_iticks = 0, td_uticks = 0,
  td_uuticks = 0, td_usticks = 0, td_intrval = 0, td_oldsigmask =
{__bits = {0, 0, 0, 0}}, td_sigmask = {__bits = {0, 0, 0, 0}},
  td_generation = 0, td_sigstk = {ss_sp = 0x0, ss_size = 0, ss_flags =
4}, td_xsig = 0, td_profil_addr = 0, td_profil_ticks = 0,
  td_name = "sh\000lient", '\0' <repeats 11 times>, td_fpop = 0x0,
td_dbgflags = 0, td_rqindex = 32 ' ', td_base_pri = 128 '\200',
  td_priority = 128 '\200', td_pri_class = 3 '\003', td_user_pri = 190
'¾', td_base_user_pri = 190 '¾', td_pcb = 0xfffffffe52807d50,
  td_state = TDS_RUNNING, td_retval = {0, 16842497}, td_slpcallout =
{c_links = {sle = {sle_next = 0x0}, tqe = {tqe_next = 0x0,
        tqe_prev = 0xfffffffe4a5b6370}}, c_time = 37493, c_arg =
0xffffff00184f8a50, c_func = 0xffffffff802dc578 <sleepq_timeout>,
    c_lock = 0x0, c_flags = 16, c_cpu = 0}, td_frame =
0xfffffffe52807c90, td_kstack_obj = 0xffffff00019e2640,
  td_kstack = 18446744066503753728, td_kstack_pages = 4,
td_altkstack_obj = 0x0, td_altkstack = 0, td_altkstack_pages = 0,
  td_critnest = 0, td_md = {md_spinlock_count = 0, md_saved_flags =
582}, td_sched = 0xffffff00184f8d90, td_ar = 0x0,
  td_syscalls = 245774, td_lprof = {{lh_first = 0x0}, {lh_first =
0x0}}, td_dtrace = 0x0, td_errno = 0}
(kgdb)

-- 
Pawel
Received on Wed Nov 05 2008 - 12:04:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:37 UTC