panic: vinvalbuf: dirty bufs on 6.1-RC

Anton Yuzhaninov citrin at citrin.ru
Tue Apr 11 16:59:07 UTC 2006


Hello,

I  have faced a panic when I use external HDD with USB interface after
disconnect mounted drive:

# uname -a
FreeBSD hius.citrin.ru 6.1-RC FreeBSD 6.1-RC #0: Sun Apr  9 11:51:55 MSD 2006     citrin at hius.citrin.ru:/data/usr/obj/data/usr/src/sys/NK  i386
# kgdb -c /var/crash/vmcore.0 kernel.debug

[...........]

Unread portion of the kernel message buffer:
panic: vinvalbuf: dirty bufs
Uptime: 1d11h18m11s
(da0:dead_sim0:0:0:0): Synchronize cache failed, status == 0x8, scsi status == 0x0
Dumping 125 MB (2 chunks)
  chunk 0: 1MB (160 pages) ... ok
  chunk 1: 125MB (31984 pages) 109 93 77 61 45 29 13

#0  doadump () at pcpu.h:165
165             __asm __volatile("movl %%fs:0,%0" : "=r" (td));
(kgdb) bt
#0  doadump () at pcpu.h:165
During symbol reading, Incomplete CFI data; unspecified registers at 0xc050c371.
#1  0xc050c879 in boot (howto=0x104) at /data/usr/src/sys/kern/kern_shutdown.c:402
#2  0xc050cb54 in panic (fmt=0xc06a6812 "vinvalbuf: dirty bufs") at /data/usr/src/sys/kern/kern_shutdown.c:558
#3  0xc056a246 in bufobj_invalbuf (bo=0xc1b90a50, flags=0x1, td=0xc17d3780, slpflag=0x0, slptimeo=0x0)
    at /data/usr/src/sys/kern/vfs_subr.c:1011
#4  0xc056a4bd in vinvalbuf (vp=0xc1b90990, flags=0x1, td=0xc17d3780, slpflag=0x0, slptimeo=0x0)
    at /data/usr/src/sys/kern/vfs_subr.c:1078
#5  0xc056d03d in vgonel (vp=0xc1b90990) at /data/usr/src/sys/kern/vfs_subr.c:2432
#6  0xc056cf56 in vgone (vp=0xc1b90990) at /data/usr/src/sys/kern/vfs_subr.c:2387
#7  0xc04b8140 in devfs_delete (dm=0xc1628080, de=0xc1a74b00) at /data/usr/src/sys/fs/devfs/devfs_devs.c:244
#8  0xc04b8374 in devfs_populate_loop (dm=0xc1628080, cleanup=0x0) at /data/usr/src/sys/fs/devfs/devfs_devs.c:352
#9  0xc04b85da in devfs_populate (dm=0xc1628080) at /data/usr/src/sys/fs/devfs/devfs_devs.c:448
#10 0xc04ba54b in devfs_lookupx (ap=0x0) at /data/usr/src/sys/fs/devfs/devfs_vnops.c:512
#11 0xc04ba6a7 in devfs_lookup (ap=0xcc3859c8) at /data/usr/src/sys/fs/devfs/devfs_vnops.c:576
#12 0xc0684723 in VOP_LOOKUP_APV (vop=0xc06cd780, a=0xcc3859c8) at vnode_if.c:99
#13 0xc0564315 in lookup (ndp=0xcc385bcc) at vnode_if.h:56
#14 0xc0563b86 in namei (ndp=0xcc385bcc) at /data/usr/src/sys/kern/vfs_lookup.c:203
#15 0xc0578ddb in vn_open_cred (ndp=0xcc385bcc, flagp=0xcc385ccc, cmode=0x100, cred=0xc1a1ce00, fdidx=0x3)
    at /data/usr/src/sys/kern/vfs_vnops.c:125
#16 0xc0578d6e in vn_open (ndp=0x0, flagp=0xcc385ccc, cmode=0x100, fdidx=0x3) at /data/usr/src/sys/kern/vfs_vnops.c:91
#17 0xc0570f1c in kern_open (td=0xc17d3780, path=0x0, pathseg=UIO_USERSPACE, flags=0x602, mode=0x1b6)
    at /data/usr/src/sys/kern/vfs_syscalls.c:1002
#18 0xc0570e1a in open (td=0xc17d3780, uap=0xcc385d04) at /data/usr/src/sys/kern/vfs_syscalls.c:968
#19 0xc067225b in syscall (frame=
      {tf_fs = 0x3b, tf_es = 0x3b, tf_ds = 0x3b, tf_edi = 0x2, tf_esi = 0x806716c, tf_ebp = 0xbfbfebb8, tf_isp = 0xcc385d64, tf_ebx = 0x80670b0, tf_edx = 0xbfbfebd0, tf_ecx = 0x0, tf_eax = 0x5, tf_trapno = 0xc, tf_err = 0x2, tf_eip = 0x28198383, tf_cs = 0x33, tf_eflags = 0x246, tf_esp = 0xbfbfeb1c, tf_ss = 0x3b}) at /data/usr/src/sys/i386/i386/trap.c:981
#20 0xc065fc7f in Xint0x80_syscall () at /data/usr/src/sys/i386/i386/exception.s:200
#21 0x00000033 in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb)

I can provide further information if need.

-- 
 WBR,
 Anton Yuzhaninov.


More information about the freebsd-stable mailing list