From owner-freebsd-current Tue Mar 11 19:17:46 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2AF737B404; Tue, 11 Mar 2003 19:17:44 -0800 (PST) Received: from mail.chesapeake.net (chesapeake.net [205.130.220.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCB8F43F85; Tue, 11 Mar 2003 19:17:43 -0800 (PST) (envelope-from jroberson@chesapeake.net) Received: from localhost (jroberson@localhost) by mail.chesapeake.net (8.11.6/8.11.6) with ESMTP id h2C3HhR72219; Tue, 11 Mar 2003 22:17:43 -0500 (EST) (envelope-from jroberson@chesapeake.net) Date: Tue, 11 Mar 2003 22:17:43 -0500 (EST) From: Jeff Roberson To: Thomas Quinot Cc: current@FreeBSD.ORG Subject: Re: crash: bwrite: need chained iodone In-Reply-To: <20030311183543.GA48464@melusine.cuivre.fr.eu.org> Message-ID: <20030311221505.C43514-100000@mail.chesapeake.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I've trimmed to the relavent part of the stack. On Tue, 11 Mar 2003, Thomas Quinot wrote: > #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 to continue, or q 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--- > > #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 > (kgdb) quit Can you please print bp? I'd like to know what all of the members are. A cluster buf should NEVER have BX_BKGRDWRITE set. This is totally bogus. > I still have the crash dump at hand, if further forensics is necessary. > Thanks! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message