Re: [ANN] unionfs patchset-11 release

From: Fabian Keil <freebsd-listen_at_fabiankeil.de>
Date: Wed, 26 Apr 2006 15:15:57 +0200
Daichi GOTO <daichi_at_freebsd.org> wrote:

> Kris Kennaway wrote:
> > I still get a panic immediately upon use:
> 
> OKey.
> 
> Maybe we fixed your panic. Please try attached file as
> /usr/src/sys/fs/unionfs/union_vnops.c :)

Looks like the attachment was filtered.


I got a different panic on
FreeBSD TP51.local 6.1-RC FreeBSD 6.1-RC #22: Wed Apr 26 13:25:57 CEST 2006
after mounting an empty directory above /usr/src,
applying a patch and using find's -type f option shortly afterwards
to show the files in the directory on top: 

Unread portion of the kernel message buffer:
panic: initiate_write_filepage: dir inum 0 != new 24971
KDB: enter: panic
Locked vnodes

0xc3cf7770: tag ufs, type VDIR
    usecount 1, writecount 0, refcount 4 mountedhere 0
    flags ()
    v_object 0xc392539c ref 0 pages 0
     lock type ufs: EXCL (count 1) by thread 0xc334ec00 (pid 41)
        ino 24936, on dev ad0s3e

0xc3cf7880: tag unionfs, type VDIR
    usecount 36, writecount 0, refcount 36 mountedhere 0
    flags ()
    v_object 0xc392539c ref 0 pages 0
     lock type ufs: EXCL (count 1) by thread 0xc334ec00 (pid 41)
union_vp=0xc3cf7880, uppervp=0xc3cf7770, lowervp=0xc3cee550
union: upper
0xc3cf7770: tag ufs, type VDIR
    usecount 1, writecount 0, refcount 4 mountedhere 0
    flags ()
    v_object 0xc392539c ref 0 pages 0
     lock type ufs: EXCL (count 1) by thread 0xc334ec00 (pid 41)
        ino 24936, on dev ad0s3e
union: lower
0xc3cee550: tag ufs, type VDIR
    usecount 1, writecount 0, refcount 3 mountedhere 0
    flags ()
    
        ino 943568, on dev ad0s3f
exclusive sleep mutex Softdep Lock r = 0 (0xc07839c0) locked _at_ /usr/src/sys/ufs/ffs/ffs_softdep.c:3730
exclusive sleep mutex Giant r = 0 (0xc072f640) locked _at_ /usr/src/sys/kern/vfs_subr.c:1608
panic: from debugger
Uptime: 20m58s
Dumping 511 MB (2 chunks)
  chunk 0: 1MB (159 pages) ... ok
  chunk 1: 511MB (130656 pages) 495 479 463 447 431 415 399 383 367 351 335 319 303 287 271 255 239 223 207 191 175 159 143 127 111 95 
79 63 47 31 15

#0  doadump () at pcpu.h:165
165     pcpu.h: No such file or directory.
        in pcpu.h
(kgdb) where
#0  doadump () at pcpu.h:165
#1  0xc054a865 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:402
#2  0xc054ab27 in panic (fmt=0xc06c9423 "from debugger") at /usr/src/sys/kern/kern_shutdown.c:558
#3  0xc047f523 in db_panic (addr=-1068086451, have_addr=0, count=-1, modif=0xd564b95c "") at /usr/src/sys/ddb/db_command.c:438
#4  0xc047f49c in db_command (last_cmdp=0xc072b3e4, cmd_table=0x0, aux_cmd_tablep=0xc06f28c4, aux_cmd_tablep_end=0xc06f28c8)
    at /usr/src/sys/ddb/db_command.c:350
#5  0xc047f58d in db_command_loop () at /usr/src/sys/ddb/db_command.c:458
#6  0xc048143d in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_main.c:221
#7  0xc0564dd7 in kdb_trap (type=0, code=0, tf=0xd564baa8) at /usr/src/sys/kern/subr_kdb.c:473
#8  0xc069e4d2 in trap (frame=
      {tf_fs = -1066532856, tf_es = 40, tf_ds = -714866648, tf_edi = 1, tf_esi = -1066511478, tf_ebp = -714818832, tf_isp = -714818860,
 tf_ebx = -714818776, tf_edx = 0, tf_ecx = -1056878592, tf_eax = 18, tf_trapno = 3, tf_err = 0, tf_eip = -1068086451, tf_cs = 32, tf_ef
lags = 642, tf_esp = -1066558175, tf_ss = -1066564882}) at /usr/src/sys/i386/i386/trap.c:593
#9  0xc068feda in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#10 0xc0564b4d in kdb_enter (msg=0x12 <Address 0x12 out of bounds>) at cpufunc.h:60
#11 0xc054aabf in panic (fmt=0xc06e538a "%s: dir inum %d != new %d") at /usr/src/sys/kern/kern_shutdown.c:542
#12 0xc0634021 in initiate_write_filepage (pagedep=0xc354b580, bp=0xcd7c7e18) at /usr/src/sys/ufs/ffs/ffs_softdep.c:3834
#13 0xc0633d1c in softdep_disk_io_initiation (bp=0xcd7c7e18) at /usr/src/sys/ufs/ffs/ffs_softdep.c:3740
#14 0xc063c8c4 in ffs_geom_strategy (bo=0xc358aa50, bp=0xcd7c7e18) at buf.h:422
#15 0xc0648db7 in ufs_strategy (ap=0x12) at /usr/src/sys/ufs/ufs/ufs_vnops.c:1942
#16 0xc06b47c8 in VOP_STRATEGY_APV (vop=0xc0719380, a=0xd564bbec) at vnode_if.c:1796
#17 0xc059965c in bufstrategy (bo=0xc3cf7830, bp=0x12) at vnode_if.h:928
#18 0xc05946e6 in bufwrite (bp=0xcd7c7e18) at buf.h:415
#19 0xc0594c31 in bawrite (bp=0x12) at buf.h:399
#20 0xc063cb82 in ffs_syncvnode (vp=0xc3cf7770, waitfor=3) at /usr/src/sys/ufs/ffs/ffs_vnops.c:256
#21 0xc063c8fc in ffs_fsync (ap=0xd564bca4) at /usr/src/sys/ufs/ffs/ffs_vnops.c:179
#22 0xc06b416c in VOP_FSYNC_APV (vop=0x12, a=0x0) at vnode_if.c:1020
#23 0xc05a59d6 in sync_vnode (bo=0xc3cf7830, td=0xc334ec00) at vnode_if.h:537
#24 0xc05a5cbf in sched_sync () at /usr/src/sys/kern/vfs_subr.c:1676
#25 0xc053401c in fork_exit (callout=0xc05a5a82 <sched_sync>, arg=0x12, frame=0x12) at /usr/src/sys/kern/kern_fork.c:805

Fabian
-- 
http://www.fabiankeil.de/

Received on Wed Apr 26 2006 - 11:16:15 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:55 UTC