From owner-freebsd-stable Sun Jul 28 8:35:29 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 826B537B400 for ; Sun, 28 Jul 2002 08:35:16 -0700 (PDT) Received: from arthur.nitro.dk (213.237.101.114.adsl.kh.worldonline.dk [213.237.101.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 960F543E5E for ; Sun, 28 Jul 2002 08:35:14 -0700 (PDT) (envelope-from simon@arthur.nitro.dk) Received: by arthur.nitro.dk (Postfix, from userid 1000) id 477D010BFEC; Sun, 28 Jul 2002 17:35:04 +0200 (CEST) Date: Sun, 28 Jul 2002 17:35:04 +0200 From: "Simon L. Nielsen" To: freebsd-stable@FreeBSD.ORG Subject: Kernel panic writeing to FAT32 Message-ID: <20020728153502.GD342@nitro.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tsOsTdHNUZQcU9Ye" Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --tsOsTdHNUZQcU9Ye Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello My FreeBSD (4.6(.1) recent RELENG_4_6) crashes/panics when I try to write d= ata to it. I can reproduce it easily by a simple "echo 123 > /mnt/newdata/testfile" - where /mnt/newdata is the FAT32 partion. I have previusly written files to the partion without problems and I can write to another FAT32 partion I have (on another harddisk) without crashes. The FAT32 partion is /dev/ad0s5. If anybody can see the problem i'm very willing to try patches... If you ne= ed more information please just mail me. The mail is a bit big, but I wanted to make sure I included as much to help debugging the problem as posible. Btw. when I was doing the crashdump I had to type "panic" and "continue" a = few times before it would write the crashdump.. Is this normal? [root@arthur:simon] uname -a FreeBSD arthur.bofh 4.6.1-RELEASE FreeBSD 4.6.1-RELEASE #0: Sun Jul 28 16:3= 9:50 CEST 2002 root@arthur.bofh:/usr/obj/usr/src/sys/ARTHUR-D i386 [root@arthur:simon] fdisk ad0 ******* Working on device /dev/ad0 ******* parameters extracted from in-core disklabel are: cylinders=3D9732 heads=3D255 sectors/track=3D63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=3D9732 heads=3D255 sectors/track=3D63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 7,(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX) start 63, size 41945652 (20481 Meg), flag 0 beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 254/ sector 63 The data for partition 2 is: sysid 15,(Extended DOS, LBA) start 41945715, size 62910540 (30718 Meg), flag 0 beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 254/ sector 63 The data for partition 3 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 104856255, size 51488325 (25140 Meg), flag 80 (active) beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 254/ sector 63 The data for partition 4 is: [root@arthur:~] gdb -k /kernel.debug /var/crash/vmcore.0 GNU gdb 4.18 (FreeBSD) Copyright 1998 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 condition= s. 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-unknown-freebsd"... IdlePTD at phsyical address 0x005b2000 initial pcb at physical address 0x004cde60 panicstr: from debugger panic messages: --- Fatal trap 12: page fault while in kernel mode fault virtual address =3D 0xe16f0ffc fault code =3D supervisor read, page not present instruction pointer =3D 0x8:0xc023395f stack pointer =3D 0x10:0xcddd6d04 frame pointer =3D 0x10:0xcddd6d14 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 189 (csh) interrupt mask =3D none Fatal trap 12: page fault while in kernel mode fault virtual address =3D 0xe16f0ffc fault code =3D supervisor read, page not present instruction pointer =3D 0x8:0xc023395f stack pointer =3D 0x10:0xcddd6d04 frame pointer =3D 0x10:0xcddd6d14 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 189 (csh) interrupt mask =3D none panic: from debugger Fatal trap 12: page fault while in kernel mode fault virtual address =3D 0xe16f0ffc fault code =3D supervisor read, page not present instruction pointer =3D 0x8:0xc023395f stack pointer =3D 0x10:0xcddd6d04 frame pointer =3D 0x10:0xcddd6d14 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 189 (csh) interrupt mask =3D none Fatal trap 12: page fault while in kernel mode fault virtual address =3D 0xe16f0ffc fault code =3D supervisor read, page not present instruction pointer =3D 0x8:0xc023395f stack pointer =3D 0x10:0xcddd6d04 frame pointer =3D 0x10:0xcddd6d14 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 189 (csh) interrupt mask =3D none Fatal trap 12: page fault while in kernel mode fault virtual address =3D 0xe16f0ffc fault code =3D supervisor read, page not present instruction pointer =3D 0x8:0xc023395f stack pointer =3D 0x10:0xcddd6d04 frame pointer =3D 0x10:0xcddd6d14 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 189 (csh) interrupt mask =3D none Fatal trap 12: page fault while in kernel mode fault virtual address =3D 0xe16f0ffc fault code =3D supervisor read, page not present instruction pointer =3D 0x8:0xc023395f stack pointer =3D 0x10:0xcddd6d04 frame pointer =3D 0x10:0xcddd6d14 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 189 (csh) interrupt mask =3D none panic: from debugger Uptime: 1m16s dumping to dev #ad/0x40001, offset 1572992 dump ata0: resetting devices .. done 255 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240 239 238 237= 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 220 219 21= 8=20 217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199= 198 197 196 195 194 193 192 191 190 189 188 187 186 185 184 183 182 181 18= 0=20 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161= 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 14= 2=20 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123= 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 10= 4=20 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80= 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55= 5 4 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 2= 9 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 = 1=20 0=20 --- #0 dumpsys () at /usr/src/sys/kern/kern_shutdown.c:487 487 if (dumping++) { (kgdb) where #0 dumpsys () at /usr/src/sys/kern/kern_shutdown.c:487 #1 0xc01f8633 in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:3= 16 #2 0xc01f8a71 in panic (fmt=3D0xc03dada4 "from debugger") at /usr/src/sys/kern/kern_shutdown.c:595 #3 0xc014c771 in db_panic (addr=3D-1071433377, have_addr=3D0, count=3D-1,= =20 modif=3D0xcddd6b70 "") at /usr/src/sys/ddb/db_command.c:435 #4 0xc014c711 in db_command (last_cmdp=3D0xc04504f8, cmd_table=3D0xc045033= 8,=20 aux_cmd_tablep=3D0xc04ac378) at /usr/src/sys/ddb/db_command.c:333 #5 0xc014c7d6 in db_command_loop () at /usr/src/sys/ddb/db_command.c:457 #6 0xc014e913 in db_trap (type=3D12, code=3D0) at /usr/src/sys/ddb/db_trap= .c:71 #7 0xc03a0826 in kdb_trap (type=3D12, code=3D0, regs=3D0xcddd6cc4) at /usr/src/sys/i386/i386/db_interface.c:158 #8 0xc03b05f8 in trap_fatal (frame=3D0xcddd6cc4, eva=3D3782152188) at /usr/src/sys/i386/i386/trap.c:961 #9 0xc03b02d1 in trap_pfault (frame=3D0xcddd6cc4, usermode=3D0, eva=3D3782= 152188) at /usr/src/sys/i386/i386/trap.c:859 #10 0xc03afe77 in trap (frame=3D{tf_fs =3D 16, tf_es =3D 16, tf_ds =3D 16,= =20 tf_edi =3D 15288, tf_esi =3D -1049686016, tf_ebp =3D -841126636,=20 tf_isp =3D -841126672, tf_ebx =3D -1049690112, tf_edx =3D 134217727,= =20 tf_ecx =3D 31, tf_eax =3D -2147483648, tf_trapno =3D 12, tf_err =3D 0= ,=20 tf_eip =3D -1071433377, tf_cs =3D 8, tf_eflags =3D 68246, tf_esp =3D = 268435455,=20 tf_ss =3D 268435455}) at /usr/src/sys/i386/i386/trap.c:458 #11 0xc023395f in updatefats (pmp=3D0xc16f0000, bp=3D0xc6808450, fatbn=3D15= 288) at /usr/src/sys/msdosfs/msdosfs_fat.c:353 ---Type to continue, or q to quit--- #12 0xc0233fea in fatchain (pmp=3D0xc16f0000, start=3D1952833, count=3D0,= =20 fillwith=3D4294967295) at /usr/src/sys/msdosfs/msdosfs_fat.c:674 #13 0xc0234109 in chainalloc (pmp=3D0xc16f0000, start=3D1952832, count=3D1,= =20 fillwith=3D4294967295, retcluster=3D0xcddd6ddc, got=3D0xcddd6dd8) at /usr/src/sys/msdosfs/msdosfs_fat.c:748 #14 0xc0234306 in clusteralloc (pmp=3D0xc16f0000, start=3D0, count=3D1,=20 fillwith=3D4294967295, retcluster=3D0xcddd6ddc, got=3D0xcddd6dd8) at /usr/src/sys/msdosfs/msdosfs_fat.c:842 #15 0xc0234779 in extendfile (dep=3D0xc1838e00, count=3D1, bpp=3D0x0, ncp= =3D0x0,=20 flags=3D0) at /usr/src/sys/msdosfs/msdosfs_fat.c:1034 #16 0xc0237959 in msdosfs_write (ap=3D0xcddd6e64) at /usr/src/sys/msdosfs/msdosfs_vnops.c:732 #17 0xc022d536 in vn_write (fp=3D0xc17864c0, uio=3D0xcddd6ed4, cred=3D0xc18= 31b00,=20 flags=3D0, p=3D0xcc2aa220) at vnode_if.h:363 #18 0xc0207ee9 in dofilewrite (p=3D0xcc2aa220, fp=3D0xc17864c0, fd=3D1,=20 buf=3D0x8128720, nbyte=3D4, offset=3D-1, flags=3D0) at /usr/src/sys/sys= /file.h:162 #19 0xc0207da0 in write (p=3D0xcc2aa220, uap=3D0xcddd6f80) at /usr/src/sys/kern/sys_generic.c:329 #20 0xc03b08ed in syscall2 (frame=3D{tf_fs =3D 47, tf_es =3D 47, tf_ds =3D = 47,=20 tf_edi =3D 135719928, tf_esi =3D 0, tf_ebp =3D -1077954372,=20 tf_isp =3D -841125932, tf_ebx =3D 10, tf_edx =3D 1, tf_ecx =3D 135126= 434,=20 tf_eax =3D 4, tf_trapno =3D 22, tf_err =3D 2, tf_eip =3D 134966396, t= f_cs =3D 31,=20 tf_eflags =3D 659, tf_esp =3D -1077954400, tf_ss =3D 47}) at /usr/src/sys/i386/i386/trap.c:1167 ---Type to continue, or q to quit--- #21 0xc03a16f5 in Xint0x80_syscall () #22 0x805d9d0 in ?? () #23 0x8054b82 in ?? () #24 0x805486b in ?? () #25 0x80534b4 in ?? () #26 0x8060a0b in ?? () #27 0x8060c49 in ?? () #28 0x804a84b in ?? () #29 0x8049a77 in ?? () #30 0x8048135 in ?? () [simon@arthur:~] cat /var/run/dmesg.boot=20 Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.6.1-RELEASE #0: Sun Jul 28 16:39:50 CEST 2002 root@arthur.bofh:/usr/obj/usr/src/sys/ARTHUR-D Timecounter "i8254" frequency 1193182 Hz CPU: AMD Athlon(tm) Processor (604.23-MHz 686-class CPU) Origin =3D "AuthenticAMD" Id =3D 0x621 Stepping =3D 1 Features=3D0x183f9ff AMD Features=3D0xc0400000 real memory =3D 268369920 (262080K bytes) avail memory =3D 255414272 (249428K bytes) Preloaded elf kernel "kernel" at 0xc0593000. netsmb_dev: loaded Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 7 entries at 0xc00f8120 apm0: on motherboard apm: found APM BIOS v1.2, connected at v1.2 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 5.0 irq 11 isab0: at device 4.0 on pci0 isa0: on isab0 atapci0: port 0xffa0-0xffaf at device 4.1 on = pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xd000-0xd01f irq 9 at device 4.2 o= n pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xd400-0xd41f irq 9 at device 4.3 o= n pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered ichsmb0: at device 4.4 on pci0 device_probe_and_attach: ichsmb0 attach returned 6 sym0: <860> port 0xd800-0xd8ff mem 0xefffff00-0xefffffff irq 10 at device 1= 5.0 on pci0 sym0: Symbios NVRAM, ID 7, Fast-20, SE, parity checking sym0: open drain IRQ line driver sym0: using LOAD/STORE-based firmware. sym0: SCAN AT BOOT disabled for targets 0 1 2 3 5 6. xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xcc00-0xcc7f mem 0xeffffe80-0= xeffffeff irq 9 at device 16.0 on pci0 xl0: Ethernet address: 00:10:4b:9d:f0:f9 miibus0: on xl0 xlphy0: <3Com internal media interface> on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto orm0: