Date: Tue, 11 Mar 2003 19:35:44 +0100 From: Thomas Quinot <thomas@FreeBSD.ORG> To: current@freebsd.org Subject: crash: bwrite: need chained iodone Message-ID: <20030311183543.GA48464@melusine.cuivre.fr.eu.org>
next in thread | raw e-mail | index | archive | help
-CURRENT as of this week-end on a Dell Inspiron 8200 laptop.
During desktop use :
panic: bremfree: removing a buffer not on a queue
panic messages:
---
panic: bwrite: buffer is not busy???
syncing disks, buffers remaining... panic: bremfree: removing a buffer not on a queue
Uptime: 9h18m39s
Dumping 511 MB
ata0: resetting devices ..
done
16[CTRL-C to abort] [CTRL-C to abort] [CTRL-C to abort] [CTRL-C to abort] [CTRL-C to abort] [CTRL-C to abort] 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 320 336 352 368 384 400 416 432 448 464 480 496
---
#0 doadump () at /usr/src/sys/kern/kern_shutdown.c:239
239 dumping++;
(kgdb) bt
#0 doadump () at /usr/src/sys/kern/kern_shutdown.c:239
#1 0xc01f4698 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:371
#2 0xc01f4903 in panic () at /usr/src/sys/kern/kern_shutdown.c:542
#3 0xc0231bf0 in bremfreel (bp=0xce6bd4e8) at /usr/src/sys/kern/vfs_bio.c:630
#4 0xc0231b25 in bremfree (bp=0x0) at /usr/src/sys/kern/vfs_bio.c:612
#5 0xc0233db3 in vfs_bio_awrite (bp=0x0) at /usr/src/sys/kern/vfs_bio.c:1682
#6 0xc02e346a in ffs_fsync (ap=0xe5db4910)
at /usr/src/sys/ufs/ffs/ffs_vnops.c:257
#7 0xc02e263e in ffs_sync (mp=0xc4152600, waitfor=2, cred=0xc1509f00,
td=0xc039f1a0) at vnode_if.h:612
#8 0xc024649b in sync (td=0xc039f1a0, uap=0x0)
at /usr/src/sys/kern/vfs_syscalls.c:138
#9 0xc01f42ec in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:280
#10 0xc01f4903 in panic () at /usr/src/sys/kern/kern_shutdown.c:542
#11 0xc0232072 in bwrite (bp=0xce5313e0) at /usr/src/sys/kern/vfs_bio.c:795
#12 0xc0232a7c in bawrite (bp=0x0) at /usr/src/sys/kern/vfs_bio.c:1138
#13 0xc023a02b in cluster_wbuild (vp=0xc4a21124, size=16384, start_lbn=44,
len=3) at /usr/src/sys/kern/vfs_cluster.c:996
#14 0xc02396ff in cluster_write (bp=0xce6bd4e8, filesize=753664, seqcount=18)
at /usr/src/sys/kern/vfs_cluster.c:596
#15 0xc02e3fec in ffs_write (ap=0xe5db4be0)
at /usr/src/sys/ufs/ffs/ffs_vnops.c:728
#16 0xc024e1b2 in vn_write (fp=0xc456921c, uio=0xe5db4c7c,
---Type <return> to continue, or q <return> to quit---
active_cred=0xc48e5780, flags=0, td=0xc46e2000) at vnode_if.h:417
#17 0xc0214008 in dofilewrite (td=0xc46e2000, fp=0xc456921c, fd=0,
buf=0x8e1e400, nbyte=0, offset=0, flags=0) at file.h:239
#18 0xc0213e49 in write (td=0xc46e2000, uap=0xe5db4d10)
at /usr/src/sys/kern/sys_generic.c:329
#19 0xc033a68e in syscall (frame=
{tf_fs = 47, tf_es = 47, tf_ds = 134742063, tf_edi = 677204256, tf_esi = 0, tf_ebp = -1077939928, tf_isp = -438612620, tf_ebx = 677216484, tf_edx = 20, tf_ecx = 0, tf_eax = 4, tf_trapno = 0, tf_err = 2, tf_eip = 677548851, tf_cs = 31, tf_eflags = 518, tf_esp = -1077939988, tf_ss = 47})
at /usr/src/sys/i386/i386/trap.c:1030
#20 0xc032a89d in Xint0x80_syscall () at {standard input}:138
---Can't read userspace from dump, or kernel process---
(kgdb) fr 3
#3 0xc0231bf0 in bremfreel (bp=0xce6bd4e8) at /usr/src/sys/kern/vfs_bio.c:630
630 panic("bremfree: removing a buffer not on a queue");
(kgdb) fr 11
#11 0xc0232072 in bwrite (bp=0xce5313e0) at /usr/src/sys/kern/vfs_bio.c:795
795 panic("bwrite: need chained iodone");
(kgdb) list
790 (bp->b_flags & B_ASYNC) &&
791 !vm_page_count_severe() &&
792 !buf_dirty_count_severe()) {
793 if (bp->b_iodone != NULL) {
794 printf("bp->b_iodone = %p\n", bp->b_iodone);
795 panic("bwrite: need chained iodone");
796 }
797
798 /* get a new block */
799 newbp = geteblk(bp->b_bufsize);
(kgdb) print bp->b_iodone
$1 = (void (*)(struct buf *)) 0xc0239320 <cluster_callback>
(kgdb) quit
I still have the crash dump at hand, if further forensics is necessary.
--
Thomas.Quinot@Cuivre.FR.EU.ORG
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030311183543.GA48464>
