Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jul 2003 11:21:35 +0400
From:      "Andrew L. Neporada" <andr@dgap.mipt.ru>
To:        freebsd-hackers@freebsd.org
Subject:   4.8 panic "ffs_clusteralloc: map mismatch"
Message-ID:  <20030716072135.GA80585@nas.dgap.mipt.ru>

next in thread | raw e-mail | index | archive | help

--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I have been experiencing several "ffs_clusteralloc: map mismatch" kernel=20
panics (always while heavy r/w activity on ad0). PC in question has=20
SuperMicro P3TDL3 motherboard,
2 ide + 1 scsi HDD and 4 nics (full dmesg & kernel config attached).

Panic messages:

gw3# gdb -k kernel.debug 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"...Deprecated bfd_read cal=
led at /data/FreeBSD/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/g=
db/dbxread.c line 2627 in elfstab_build_psymtabs
Deprecated bfd_read called at /data/FreeBSD/src/gnu/usr.bin/binutils/gdb/..=
/../../../contrib/gdb/gdb/dbxread.c line 933 in fill_symbuf

IdlePTD at phsyical address 0x0031d000
initial pcb at physical address 0x00293280
panicstr: ffs_clusteralloc: map mismatch
panic messages:
---
panic: ffs_clusteralloc: map mismatch

syncing disks... 14 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9=20
giving up on 7 buffers
Uptime: 2d14h39m49s

dumping to dev #da/0x20001, offset 1048704
dump 511 510 509 508 507 506 505 504 503 502 501 500 499 498 497 496 495 49=
4 493 492 491 490 489 488 487 486 485 484 483 482 481 480 479 478 477 476 4=
75 474 473 472 471 470 469 468 467 466 465 464 463 462 461 460 459 458 457 =
456 455 454 453 452 451 450 449 448 447 446 445 444 443 442 441 440 439 438=
 437 436 435 434 433 432 431 430 429 428 427 426 425 424 423 422 421 420 41=
9 418 417 416 415 414 413 412 411 410 409 408 407 406 405 404 403 402 401 4=
00 399 398 397 396 395 394 393 392 391 390 389 388 387 386 385 384 383 382 =
381 380 379 378 377 376 375 374 373 372 371 370 369 368 367 366 365 364 363=
 362 361 360 359 358 357 356 355 354 353 352 351 350 349 348 347 346 345 34=
4 343 342 341 340 339 338 337 336 335 334 333 332 331 330 329 328 327 326 3=
25 324 323 322 321 320 319 318 317 316 315 314 313 312 311 310 309 308 307 =
306 305 304 303 302 301 300 299 298 297 296 295 294 293 292 291 290 289 288=
 287 286 285 284 283 282 281 280 279 278 277 276 275 274 273 272 271 270 26=
9 268 267 266 265 264 263 262 261 260 259 258 257 256 255 254 253 252 251 2=
50 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 218 217 216 215 214 213=
 212 211 210 209 208 207 206 205 204 203 202 201 200 199 198 197 196 195 19=
4 193 192 191 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 1=
75 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 142 141 140 139 138=
 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 120 11=
9 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 1=
00 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 54 53 52 51 =
50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 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 0=20
---
#0  dumpsys () at /data/FreeBSD/src/sys/kern/kern_shutdown.c:487
487		if (dumping++) {
(kgdb) bt
#0  dumpsys () at /data/FreeBSD/src/sys/kern/kern_shutdown.c:487
#1  0xc016c2f0 in boot (howto=3D256)
    at /data/FreeBSD/src/sys/kern/kern_shutdown.c:316
#2  0xc016c73d in panic (fmt=3D0xc0257480 "ffs_clusteralloc: map mismatch")
    at /data/FreeBSD/src/sys/kern/kern_shutdown.c:595
#3  0xc01d94b9 in ffs_clusteralloc (ip=3D0xc1ff3200, cg=3D252, bpref=3D2297=
9280,=20
    len=3D2) at /data/FreeBSD/src/sys/ufs/ffs/ffs_alloc.c:1285
#4  0xc01d889b in ffs_hashalloc (ip=3D0xc1ff3200, cg=3D252, pref=3D22979280=
, size=3D2,=20
    allocator=3D0xc01d92a4 <ffs_clusteralloc>)
    at /data/FreeBSD/src/sys/ufs/ffs/ffs_alloc.c:863
#5  0xc01d8029 in ffs_reallocblks (ap=3D0xd50addd0)
    at /data/FreeBSD/src/sys/ufs/ffs/ffs_alloc.c:442
#6  0xc0197586 in cluster_write (bp=3D0xcbcbfa3c, filesize=3D868057088,=20
    seqcount=3D127) at vnode_if.h:1077
#7  0xc01e465b in ffs_write (ap=3D0xd50ade74)
    at /data/FreeBSD/src/sys/ufs/ufs/ufs_readwrite.c:556
#8  0xc01a25e6 in vn_write (fp=3D0xc1669080, uio=3D0xd50adee0, cred=3D0xc19=
8bf00,=20
    flags=3D0, p=3D0xd4f42d00) at vnode_if.h:363
#9  0xc017ba62 in dofilewrite (p=3D0xd4f42d00, fp=3D0xc1669080, fd=3D4,=20
    buf=3D0x8059300, nbyte=3D65536, offset=3D-1, flags=3D0)
    at /data/FreeBSD/src/sys/sys/file.h:163
#10 0xc017b913 in write (p=3D0xd4f42d00, uap=3D0xd50adf80)
    at /data/FreeBSD/src/sys/kern/sys_generic.c:329
---Type <return> to continue, or q <return> to quit---
#11 0xc022438d in syscall2 (frame=3D{tf_fs =3D 1292828719, tf_es =3D 134545=
455,=20
      tf_ds =3D -1078001617, tf_edi =3D 65536, tf_esi =3D 134583040,=20
      tf_ebp =3D -1077937356, tf_isp =3D -720707628, tf_ebx =3D 65536, tf_e=
dx =3D 3,=20
      tf_ecx =3D 2, tf_eax =3D 4, tf_trapno =3D 7, tf_err =3D 2, tf_eip =3D=
 134562780,=20
      tf_cs =3D 31, tf_eflags =3D 659, tf_esp =3D -1077937416, tf_ss =3D 47=
})
    at /data/FreeBSD/src/sys/i386/i386/trap.c:1175
#12 0xc02151c5 in Xint0x80_syscall ()
#13 0x8048a95 in ?? ()
#14 0x804856a in ?? ()
#15 0x804813e in ?? ()
(kgdb) up 3
#3  0xc01d94b9 in ffs_clusteralloc (ip=3D0xc1ff3200, cg=3D252, bpref=3D2297=
9280,=20
    len=3D2) at /data/FreeBSD/src/sys/ufs/ffs/ffs_alloc.c:1285
1285				panic("ffs_clusteralloc: map mismatch");
(kgdb) print *ip
$1 =3D {i_lock =3D {lk_interlock =3D {lock_data =3D 0}, lk_flags =3D 1088,=
=20
    lk_sharecount =3D 0, lk_waitcount =3D 0, lk_exclusivecount =3D 1, lk_pr=
io =3D 8,=20
    lk_wmesg =3D 0xc025946a "inode", lk_timo =3D 6, lk_lockholder =3D 12967=
},=20
  i_hash =3D {le_next =3D 0xc1658c00, le_prev =3D 0xc156a4c0}, i_vnode =3D =
0xd48ee780,=20
  i_devvp =3D 0xd45f4400, i_flag =3D 134, i_dev =3D 0xc15b1b00, i_number =
=3D 4793632,=20
  i_effnlink =3D 1, inode_u =3D {fs =3D 0xc2488800, e2fs =3D 0xc2488800}, i=
_dquot =3D {
    0x0, 0x0}, i_modrev =3D 968546188163669, i_lockf =3D 0x0, i_count =3D 0=
,=20
  i_endoff =3D 0, i_diroff =3D 0, i_offset =3D 0, i_ino =3D 0, i_reclen =3D=
 0,=20
  i_spare =3D {0, 0, 0}, i_dirhash =3D 0x0, i_din =3D {di_mode =3D 33188,=
=20
    di_nlink =3D 1, di_u =3D {oldids =3D {0, 0}, inumber =3D 0}, di_size =
=3D 868057088,=20
    di_atime =3D 1058327210, di_atimensec =3D 0, di_mtime =3D 1058327251,=
=20
    di_mtimensec =3D 0, di_ctime =3D 1058327251, di_ctimensec =3D 0, di_db =
=3D {
      22329744, 22329752, 22329760, 22329768, 22329776, 22329784, 22329792,=
=20
      22329800, 22329808, 22329816, 22329824, 22329832}, di_ib =3D {1953756=
8,=20
      20514256, 0}, di_flags =3D 0, di_blocks =3D 1695872, di_gen =3D 11776=
41074,=20
    di_uid =3D 0, di_gid =3D 0, di_spare =3D {0, 0}}}
(kgdb) quit

--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="dmesg.boot"

Copyright (c) 1992-2003 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.8-RELEASE #2: Sun Jul 13 16:47:12 MSD 2003
    root@gw3.rvs:/data/FreeBSD/obj/data/FreeBSD/src/sys/GW3
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 1199427366 Hz
CPU: Intel(R) Pentium(R) III CPU             1200MHz (1199.43-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x6b1  Stepping = 1
  Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 536805376 (524224K bytes)
avail memory = 519630848 (507452K bytes)
Preloaded elf kernel "kernel" at 0xc02fe000.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 9 entries at 0xc00f5230
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <ServerWorks NB6635 3.0LE host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
xl0: <3Com 3c905-TX Fast Etherlink XL> port 0xc000-0xc03f irq 5 at device 1.0 on pci0
xl0: Ethernet address: 00:60:97:a1:6d:f6
miibus0: <MII bus> on xl0
nsphy0: <DP83840 10/100 media interface> on miibus0
nsphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pci0: <Tseng Labs ET6000/ET6100 graphics accelerator> at 4.0 irq 11
fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0xc400-0xc43f mem 0xfe900000-0xfe9fffff,0xfeafe000-0xfeafefff irq 9 at device 6.0 on pci0
fxp0: Ethernet address 00:30:48:25:38:80
inphy0: <i82555 10/100 media interface> on miibus1
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: <ServerWorks IB6566 PCI to ISA bridge> at device 15.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <ServerWorks ROSB4 ATA33 controller> port 0xffa0-0xffaf at device 15.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <OHCI USB controller> at 15.2 irq 10
pcib1: <ServerWorks NB6635 3.0LE host to PCI bridge> on motherboard
pci1: <PCI bus> on pcib1
xl1: <3Com 3c905C-TX Fast Etherlink XL> port 0xe000-0xe07f mem 0xfebfe800-0xfebfe87f irq 11 at device 1.0 on pci1
xl1: Ethernet address: 00:04:79:67:8c:07
miibus2: <MII bus> on xl1
xlphy0: <3c905C 10/100 internal PHY> on miibus2
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl2: <3Com 3c905C-TX Fast Etherlink XL> port 0xe400-0xe47f mem 0xfebfec00-0xfebfec7f irq 11 at device 2.0 on pci1
xl2: Ethernet address: 00:04:79:67:8a:b7
miibus3: <MII bus> on xl2
xlphy1: <3c905C 10/100 internal PHY> on miibus3
xlphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ahc0: <Adaptec aic7892 Ultra160 SCSI adapter> port 0xe800-0xe8ff mem 0xfebff000-0xfebfffff irq 10 at device 3.0 on pci1
aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
orm0: <Option ROMs> at iomem 0xc0000-0xc7fff,0xcd800-0xcdfff,0xce000-0xce7ff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
DUMMYNET initialized (011031)
IP packet filtering initialized, divert enabled, rule-based forwarding enabled, default to deny, logging limited to 100 packets/entry by default
ad0: 19092MB <ST320414A> [38792/16/63] at ata0-master UDMA33
ad2: 57241MB <ST360021A> [116301/16/63] at ata1-master UDMA33
Waiting 4 seconds for SCSI devices to settle
Mounting root from ufs:/dev/da0s1a
da0 at ahc0 bus 0 target 0 lun 0
da0: <SEAGATE ST318405LW 0105> Fixed Direct Access SCSI-3 device 
da0: 160.000MB/s transfers (80.000MHz, offset 63, 16bit), Tagged Queueing Enabled
da0: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C)
fxp0: promiscuous mode enabled

--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=GW3

machine		i386
cpu		I686_CPU
ident		GW3
maxusers	64

options		DDB
options		DDB_UNATTENDED
makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols

options 	MATH_EMULATE		#Support for x87 emulation
options 	INET			#InterNETworking
options 	FFS			#Berkeley Fast Filesystem
options 	FFS_ROOT		#FFS usable as root device [keep this!]
options 	SOFTUPDATES		#Enable FFS soft updates support
options 	UFS_DIRHASH		#Improve performance on big directories
options 	MFS			#Memory Filesystem
options 	MD_ROOT			#MD is a potential root device
options 	PROCFS			#Process filesystem
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	SCSI_DELAY=4000		#Delay (in ms) before probing SCSI
options 	UCONSOLE		#Allow users to grab the console
options 	USERCONFIG		#boot -c editor
options 	VISUAL_USERCONFIG	#visual boot -c editor
options 	KTRACE			#ktrace(1) support
options 	SYSVSHM			#SYSV-style shared memory
options 	SYSVMSG			#SYSV-style message queues
options 	SYSVSEM			#SYSV-style semaphores
options 	P1003_1B		#Posix P1003_1B real-time extensions
options 	_KPOSIX_PRIORITY_SCHEDULING
options		ICMP_BANDLIM		#Rate limit bad replies
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev

options		AHC_REG_PRETTY_PRINT	# Print register bitfields in debug
					# output.  Adds ~128k to driver.
options		AHD_REG_PRETTY_PRINT	# Print register bitfields in debug 
					# output.  Adds ~215k to driver.

options		DDB
options		DDB_UNATTENDED
options		INCLUDE_CONFIG_FILE
options		IPFIREWALL
options		IPFIREWALL_VERBOSE
options		IPFIREWALL_VERBOSE_LIMIT=100
options		IPDIVERT
options		DUMMYNET
options		RANDOM_IP_ID
options		TCP_DROP_SYNFIN


device		isa
device		eisa
device		pci

# Floppy drives
device		fdc0	at isa? port IO_FD1 irq 6 drq 2
device		fd0	at fdc0 drive 0

# ATA and ATAPI devices
device		ata0	at isa? port IO_WD1 irq 14
device		ata1	at isa? port IO_WD2 irq 15
device		ata
device		atadisk			# ATA disk drives
options 	ATA_STATIC_ID		#Static device numbering

# SCSI Controllers
device		ahc		# AHA2940 and onboard AIC7xxx devices

# SCSI peripherals
device		scbus		# SCSI bus (required)
device		da		# Direct Access (disks)
device		pass		# Passthrough device (direct SCSI access)

# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc0	at isa? port IO_KBD
device		atkbd0	at atkbdc? irq 1
device		psm0	at atkbdc? irq 12

device		vga0	at isa?

# splash screen/screen saver
pseudo-device	splash

# syscons is the default console driver, resembling an SCO console
device		sc0	at isa? flags 0x100

# Floating point support - do not disable.
device		npx0	at nexus? port IO_NPX irq 13

# Power management support (see LINT for more options)
#device		apm0	at nexus? disable flags 0x20 # Advanced Power Management

# Serial (COM) ports
device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
device		sio1	at isa? port IO_COM2 irq 3

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device		miibus		# MII bus support
device		xl
device		fxp

# Pseudo devices - the number indicates how many units to allocate.
pseudo-device	loop		# Network loopback
pseudo-device	ether		# Ethernet support
pseudo-device	sl	1	# Kernel SLIP
pseudo-device	ppp	1	# Kernel PPP
pseudo-device	tun		# Packet tunnel.
pseudo-device	pty		# Pseudo-ttys (telnet etc)
pseudo-device	md		# Memory "disks"
pseudo-device	gif		# IPv6 and IPv4 tunneling
pseudo-device	faith	1	# IPv6-to-IPv4 relaying (translation)

# The `bpf' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
pseudo-device	bpf		#Berkeley packet filter

--vtzGhvizbBRQ85DL--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030716072135.GA80585>