Subject: kern/20597: when LFS blocksize != 8192
To: None <gnats-bugs@gnats.netbsd.org>
From: None <koie@suri.co.jp>
List: netbsd-bugs
Date: 03/06/2003 00:17:01
>Number:         20597
>Category:       kern
>Synopsis:       when LFS blocksize != 8192
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 06 00:18:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     KOIE Hidetaka
>Release:        NetBSD 1.6P
>Organization:
surigiken
>Environment:
NetBSD skipjack.koie.org 1.6P NetBSD 1.6P (TP235) #7: Wed Mar  5 13:14:32 JST 2003  koie@skipjack.koie.org:/usr/obj/sys/arch/i386/compile/TP235 i386

>Description:
I did newfs_lfs -b 16384 -f 2048 and mount.
after a while, reaper and ioflushd cause panic.

skipjack# gdb netbsd.gdb.1
GNU gdb 5.0nb1
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386--netbsdelf"...Deprecated bfd_read called at /usr/src/gnu/dist/toolchain/gdb/dbxread.c line 2638 in elfstab_build_psymtabs
Deprecated bfd_read called at /usr/src/gnu/dist/toolchain/gdb/dbxread.c line 976 in fill_symbuf
target
(gdb) 
Suspended
skipjack# gdb -k
-k: obsolete option.  For kernel debugging, start gdb
with just the kernel name as an argument (no core file)
and then use the gdb command `target kcore COREFILE'.
skipjack# fg
gdb netbsd.gdb.1
target kcore netbsd.1.core
panic: amap_wipeout: corrupt amap
#0  0x1 in ?? ()
(gdb) bt
#0  0x1 in ?? ()
#1  0xc02950d6 in cpu_reboot (howto=256, bootstr=0x0)
    at /usr/src/sys/arch/i386/i386/machdep.c:863
#2  0xc01f1837 in db_sync_cmd () at /usr/src/sys/ddb/db_command.c:723
#3  0xc01f143c in db_command (last_cmdp=0xc037bc58, cmd_table=0xc032eaa0)
    at /usr/src/sys/ddb/db_command.c:456
#4  0xc01f103b in db_command_loop () at /usr/src/sys/ddb/db_command.c:247
#5  0xc01f4b2c in db_trap (type=1, code=0) at /usr/src/sys/ddb/db_trap.c:97
#6  0xc0292ad7 in kdb_trap (type=1, code=0, regs=0xdbee2e1c)
    at /usr/src/sys/arch/i386/i386/db_interface.c:224
#7  0xc029c737 in trap (frame={tf_gs = -605159408, tf_fs = -1071513552, 
      tf_es = 16, tf_ds = 16, tf_edi = -1070355222, tf_esi = 256, 
      tf_ebp = -605147556, tf_ebx = -605147512, tf_edx = -1070387431, 
      tf_ecx = 3840, tf_eax = 4652, tf_trapno = 1, tf_err = 0, 
      tf_eip = -1071043648, tf_cs = 8, tf_eflags = 514, tf_esp = -605147524, 
      tf_ss = -1071501224, tf_vm86_es = 14, tf_vm86_ds = -605099840, 
      tf_vm86_fs = 14, tf_vm86_gs = -1069839360})
    at /usr/src/sys/arch/i386/i386/trap.c:285
#8  0xc0102cd2 in calltrap ()
#9  0xc0223058 in panic (fmt=0xc033acea "amap_wipeout: corrupt amap")
    at /usr/src/sys/kern/subr_prf.c:229
#10 0xc027e06b in amap_wipeout (amap=0xdbeee8c0)
    at /usr/src/sys/uvm/uvm_amap.c:668
---Type <return> to continue, or q <return> to quit---
#11 0xc027d6f3 in amap_unref (amap=0xdbeee8c0, offset=0, len=14, all=0)
    at /usr/src/sys/uvm/uvm_amap_i.h:257
#12 0xc0285333 in uvm_unmap_detach (first_entry=0xdc231d90, flags=0)
    at /usr/src/sys/uvm/uvm_map.c:328
#13 0xc02870ea in uvmspace_free (vm=0xdc24c004)
    at /usr/src/sys/uvm/uvm_map.c:3168
#14 0xc0282134 in uvm_proc_exit (p=0xdc1d6354)
    at /usr/src/sys/uvm/uvm_glue.c:353
#15 0xc020a54d in reaper (arg=0xdbeb7500) at /usr/src/sys/kern/kern_exit.c:591
(gdb) 

>How-To-Repeat:
newfs_lfs -b 16384 -f 2048 /dev/rwd0k
mount -t lfs /dev/rwd0k /work
(wait for panic)

>Fix:
I don't know.

>Release-Note:
>Audit-Trail:
>Unformatted: