From owner-freebsd-current@FreeBSD.ORG Mon Aug 18 06:54:23 2003 Return-Path: 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 BBCCE37B401 for ; Mon, 18 Aug 2003 06:54:23 -0700 (PDT) Received: from mail.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id D87C443FDD for ; Mon, 18 Aug 2003 06:54:22 -0700 (PDT) (envelope-from freebsd@soith.com) Received: from www.fastmail.fm (localhost [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id 97329E421F; Mon, 18 Aug 2003 09:54:21 -0400 (EDT) Received: from 10.202.2.132 ([10.202.2.132] helo=www.fastmail.fm) by messagingengine.com with SMTP; Mon, 18 Aug 2003 09:54:21 -0400 Received: by www.fastmail.fm (Postfix, from userid 99) id 61D7E374D0; Mon, 18 Aug 2003 09:54:20 -0400 (EDT) Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MIME::Lite 1.2 (F2.71; T1.001; A1.51; B2.12; Q2.03) From: "Aaron Wohl" To: current@freebsd.org Date: Mon, 18 Aug 2003 07:54:20 -0600 X-Epoch: 1061214861 X-Sasl-enc: Z7C7ff0WuM5d9tg8BFWUug Message-Id: <20030818135420.61D7E374D0@www.fastmail.fm> Subject: repeatable ufs2 softupdate panic ffs_alloccg: map corrupted X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2003 13:54:24 -0000 I got a couple of kernel crashes this morning when amanda tried to allocate disk space. I guessed which structure this was writing to, unounted it and did a fsck -f -y on it. Remounted it and all is happy now. It corrected three block counts that where off. This was in 5.1 -current less than a week old Shouldnt it have forced a regular fsck at boot time on its own? Or how come the background fsck didnt complain about it? panic: ffs_alloccg: map corrupted panic messages: --- dmesg: kvm_read: --- warning: failed to read linker file data at 0xcc02aa00 #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:240 240 dumping++; (kgdb) where #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:240 #1 0xc030bd6b in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:372 #2 0xc030c176 in panic () at /usr/src/sys/kern/kern_shutdown.c:550 #3 0xc0352a71 in bremfreel (bp=0xd82a6628) at /usr/src/sys/kern/vfs_bio.c:644 #4 0xc0352945 in bremfree (bp=0x0) at /usr/src/sys/kern/vfs_bio.c:626 #5 0xc035c921 in vop_stdfsync (ap=0xe6d867c0) at /usr/src/sys/kern/vfs_default.c:740 #6 0xc02d1870 in spec_fsync (ap=0xe6d867c0) at /usr/src/sys/fs/specfs/spec_vnops.c:417 #7 0xc02d0b48 in spec_vnoperate (ap=0x0) at /usr/src/sys/fs/specfs/spec_vnops.c:122 #8 0xc0428417 in ffs_sync (mp=0xcbda6400, waitfor=2, cred=0xc6752e80, td=0xc05a3960) at vnode_if.h:627 #9 0xc0368c2b in sync (td=0xc05a3960, uap=0x0) at /usr/src/sys/kern/vfs_syscalls.c:142 #10 0xc030b8bf in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:281 #11 0xc030c176 in panic () at /usr/src/sys/kern/kern_shutdown.c:550 #12 0xc0410e41 in ffs_mapsearch (fs=0xcc013800, cgp=0xdf150000, bpref=8589934592, allocsiz=8) at /usr/src/sys/ufs/ffs/ffs_alloc.c:2041 #13 0xc040f414 in ffs_alloccgblk (ip=0xcbdb06c0, bp=0xd82a6628, bpref=120663592) at /usr/src/sys/ufs/ffs/ffs_alloc.c:1405 #14 0xc040f043 in ffs_alloccg (ip=0xcbdb06c0, cg=1283, bpref=120663592, size=16384) at /usr/src/sys/ufs/ffs/ffs_alloc.c:1302 #15 0xc040e9f7 in ffs_hashalloc (ip=0xcbdb06c0, cg=1283, pref=0, size=16384, allocator=0xc040eee0 ) at /usr/src/sys/ufs/ffs/ffs_alloc.c:1155 #16 0xc040c8d7 in ffs_alloc (ip=0xcbdb06c0, lbn=274445, bpref=120663592, size=16384, cred=0xcc2e9280, bnp=0xe6d86a58) at /usr/src/sys/ufs/ffs/ffs_alloc.c:157 #17 0xc04122c0 in ffs_balloc_ufs1 (vp=0xcb93e7fc, startoffset=0, size=16384, cred=0xcc2e9280, flags=2130706432, bpp=0xe6d86b9c) at /usr/src/sys/ufs/ffs/ffs_balloc.c:311 #18 0xc0429b67 in ffs_write (ap=0xe6d86be0) at /usr/src/sys/ufs/ffs/ffs_vnops.c:698 #19 0xc0371183 in vn_write (fp=0xcc42bcc0, uio=0xe6d86c7c, active_cred=0xcc2e9280, flags=0, td=0xcb907e40) at vnode_if.h:432 #20 0xc0333ce8 in dofilewrite (td=0xcb907e40, fp=0xcc42bcc0, fd=0, buf=0x50238000, nbyte=0, offset=0, flags=0) at /usr/src/sys/sys/file.h:249 #21 0xc0333b1e in write (td=0xcb907e40, uap=0xe6d86d10) at /usr/src/sys/kern/sys_generic.c:330 #22 0xc0492253 in syscall (frame= {tf_fs = 47, tf_es = 47, tf_ds = -1078001617, tf_edi = 240, tf_esi = 4, tf_ebp = -1077938056, tf_isp = -422023820, tf_ebx = 1208604828, tf_edx = 240, tf_ecx = 32768, tf_eax = 4, tf_trapno = 22, tf_err = 2, tf_eip = 1209550783, tf_cs = 31, tf_eflags = 514, tf_esp = -1077938116, tf_ss = 47}) at /usr/src/sys/i386/i386/trap.c:1008 #23 0xc047988d in Xint0x80_syscall () at {standard input}:145 ---Can't read userspace from dump, or kernel process---