Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jun 1999 02:56:54 +0400
From:      Alex Povolotsky <tarkhil@asteroid.svib.ru>
To:        stable@freebsd.org
Subject:   Panic:  ffs_clusteralloc: map mismatch
Message-ID:  <199906252256.CAA01115@shuttle.svib.ru>

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

[-- Attachment #1 --]
initial pcb at 275c40
panicstr: ffs_clusteralloc: map mismatch
panic messages:
---
panic: ffs_clusteralloc: map mismatch

Several times, under heavy disk load, my box panicked. I've built finally 
debugging kernel on 
FreeBSD shuttle.svib.ru 3.0-19990619-STABLE FreeBSD 3.0-19990619-STABLE #0: Thu Jun 24 21:26:37 MSD 1999     root@shuttle.svib.ru:/mnt/usr/src/sys/compile/SHUTTLE  i386,
 and easily reproduced the crash with two dd's copying data from two CD-ROMs 
to one disk.

Here are my dmesg, kernel config and backtrace.

Please help.

Alex.




[-- Attachment #2 --]
machine		"i386"

ident		SHUTTLE

maxusers	30

options		PQ_LARGECACHE		# color for 512k/16k cache

options         INCLUDE_CONFIG_FILE     # Include this file in kernel

config		kernel	root on wd0

cpu		"I586_CPU"		# aka Pentium(tm)

options		"COMPAT_43"

options		SYSVSHM
options		SYSVSEM
options		SYSVMSG

options		"MD5"

options		"VM86"

options		KTRACE			#kernel tracing

options		UCONSOLE

options		USERCONFIG		#boot -c editor
options		VISUAL_USERCONFIG	#visual boot -c editor

options		INET			#Internet communications protocols
pseudo-device	loop			#Network loopback device
pseudo-device	bpfilter 4		#Berkeley packet filter
pseudo-device	disc			#Discard device
pseudo-device	tun	1		#Tunnel driver (user process ppp(8))
pseudo-device	ppp	2		#Point-to-point protocol
options PPP_DEFLATE			#PPP zlib/deflate/gzip support
options PPP_FILTER			#enable bpf filtering (needs bpfilter)

options         IPFIREWALL              #firewall
options         IPFIREWALL_VERBOSE      #print information about
					# dropped packets
options         IPFIREWALL_FORWARD      #enable transparent proxy support
options		"IPFIREWALL_VERBOSE_LIMIT=100" #limit verbosity
options		IPFIREWALL_DEFAULT_TO_ACCEPT #allow everything by default
options		IPDIVERT		#divert sockets
options         "ICMP_BANDLIM"

options	DUMMYNET

options		FFS			#Fast filesystem
options		PROCFS			#Process filesystem
options		FFS_ROOT		#FFS usable as root device
options		DEVFS			#devices filesystem

options		SOFTUPDATES

controller	scbus0 #base SCSI code
device		da0	#SCSI direct access devices (aka disks)

options		SCSI_REPORT_GEOMETRY

pseudo-device	pty	16	#Pseudo ttys - can go as high as 256
pseudo-device	speaker		#Play IBM BASIC-style noises out your speaker
pseudo-device	gzip		#Exec gzipped a.out's
pseudo-device	vn		#Vnode driver (turns a file into a device)
pseudo-device	snp	3	#Snoop device - to look at pty/vty/etc..
pseudo-device	vinum		#Vinum concat/mirror/raid driver
options 	VINUMDEBUG	#enable Vinum debugging hooks

controller	isa0

options		"AUTO_EOI_1"

controller	pnp0

controller	atkbdc0	at isa0 port IO_KBD tty

device		atkbd0	at isa0 tty irq 1

device		psm0	at isa0 tty irq 12

device		vga0	at isa0 port ? conflicts

pseudo-device	splash

device		sc0	at isa0 tty flags 0x06
options		MAXCONS=16		# number of virtual consoles
options		"STD8X16FONT"		# Compile font in
makeoptions	"STD8X16FONT"="koi8-r"
options		SC_HISTORY_SIZE=200	# number of history buffer lines
options		SC_DISABLE_REBOOT	# disable reboot key sequence

options		VESA			# needs VM86 defined too!!

device		npx0	at isa0 port IO_NPX iosiz 0x0 flags 0x0 irq 13

controller	wdc0	at isa0 port "IO_WD1" bio irq 14 flags 0xA0FFA0FF
disk		wd0	at wdc0 drive 0
disk		wd1	at wdc0 drive 1
controller	wdc1	at isa0 port "IO_WD2" bio irq 15 flags 0xA0FFA0FF
disk		wd2	at wdc1 drive 0


options         "CMD640"	#Enable work around for CMD640 h/w bug

options         ATAPI   #Enable ATAPI support for IDE bus
options		ATAPI_STATIC	#Don't do it as an LKM

device          acd0
controller	scbus0	#base SCSI code
device		ch0	#SCSI media changers
device		da0	#SCSI direct access devices (aka disks)
device		sa0	#SCSI tapes
device		cd0	#SCSI CD-ROMs

controller	fdc0	at isa0 port "IO_FD1" bio irq 6 drq 2
disk		fd0	at fdc0 drive 0

device		sio0	at isa0 port "IO_COM1" tty flags 0x10 irq 4
device		sio1	at isa0 port "IO_COM2" tty irq 3

device pcm0 at isa0 port ? tty irq 10 drq 1 flags 0x0

device pca0 at isa0 port "IO_TIMER1" tty

device		apm0	at isa0 

controller	pci0
device		bktr0
options		OVERRIDE_TUNER=TEMIC_SECAM
options		OVERRIDE_CARD=CARD_AVER_MEDIA

controller smbus0

device smb0	at smbus?

controller iicbus0
controller iicbb0

device ic0	at iicbus?
device iic0	at iicbus?
device iicsmb0	at iicbus?

controller pcf0	at isa0 port 0x320 net irq 5

controller	ppbus0
controller	vpo0	at ppbus?
device		nlpt0	at ppbus?
device		ppi0	at ppbus?
device		lpbb0	at ppbus?

device		ppc0	at isa0 disable port? tty irq 7

options		COMPAT_LINUX
options		SHOW_BUSYBUFS	# List buffers that prevent root unmount

controller	ncr0
device		pass0	#CAM passthrough driver

options		"P1003_1B"
options		"_KPOSIX_PRIORITY_SCHEDULING"
options		"_KPOSIX_VERSION=199309L"


[-- Attachment #3 --]
Copyright (c) 1992-1999 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California. All rights reserved.
FreeBSD 3.0-19990619-STABLE #0: Thu Jun 24 21:26:37 MSD 1999
    root@shuttle.svib.ru:/mnt/usr/src/sys/compile/SHUTTLE
Timecounter "i8254"  frequency 1193182 Hz
CPU: AMD-K6(tm) 3D processor (300.68-MHz 586-class CPU)
  Origin = "AuthenticAMD"  Id = 0x584  Stepping=4
  Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
real memory  = 67108864 (65536K bytes)
config> pnp 1 0 os enable port0 0x220 irq0 5 drq0 3 drq1 5
avail memory = 61464576 (60024K bytes)
Preloaded elf kernel "kernel" at 0xc039f000.
Preloaded elf module "splash_bmp.ko" at 0xc039f09c.
Preloaded splash_image_data "/fbsd_splash.bmp" at 0xc039f140.
Preloaded userconfig_script "/kernel.config" at 0xc039f190.
DEVFS: ready for devices
vinum: loaded
Probing for devices on PCI bus 0:
chip0: <VIA 82C597 (Apollo VP3) system controller> rev 0x04 on pci0.0.0
chip1: <VIA 82C598MVP (Apollo MVP3) PCI-PCI bridge> rev 0x00 on pci0.1.0
chip2: <VIA 82C586 PCI-ISA bridge> rev 0x41 on pci0.7.0
ide_pci0: <VIA 82C586x (Apollo) Bus-master IDE controller> rev 0x06 on pci0.7.1
chip3: <VIA 82C586B ACPI interface> rev 0x10 on pci0.7.3
bktr0: <BrookTree 848A> rev 0x12 int a irq 11 on pci0.8.0
bti2c0: <bt848 Hard/Soft I2C controller>
iicbb0: <I2C generic bit-banging driver> on bti2c0
iicbus0: <Philips I2C bus> on iicbb0 master-only
iicsmb0: <I2C to SMB bridge> on iicbus0
smbus0: <System Management Bus> on iicsmb0
smb0: <SMBus general purpose I/O> on smbus0
iic0: <I2C general purpose I/O> on iicbus0
smbus1: <System Management Bus> on bti2c0
smb1: <SMBus general purpose I/O> on smbus1
AVer Media TV/FM, Temic SECAM tuner.
vga0: <S3 ViRGE DX/GX graphics accelerator> rev 0x01 int a irq 10 on pci0.9.0
ncr0: <ncr 53c810a fast10 scsi> rev 0x23 int a irq 9 on pci0.10.0
Probing for devices on PCI bus 1:
Probing for PnP devices:
CSN 1 Vendor ID: CTL0035 [0x35008c0e] Serial 0x00004c0a Comp ID: @@@0000 [0x00000000]
pcm1 (SB16pnp <SB16 PnP> sn 0x00004c0a) at 0x220-0x22f irq 5 drq 3 flags 0x15 on isa
Probing for devices on the ISA bus:
sc0 flags 0x6 on isa
sc0: VGA color <16 virtual consoles, flags=0x6>
atkbdc0 at 0x60-0x6f on motherboard
atkbd0 irq 1 on isa
psm0 irq 12 on isa
psm0: model Generic PS/2 mouse, device ID 0
sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
pcm0 not found
pca0 on motherboard
pca0: PC speaker audio driver
wdc0 at 0x1f0-0x1f7 irq 14 flags 0xa0ffa0ff on isa
wdc0: unit 0 (wd0): <ST31722A>, DMA, 32-bit, multi-block-16
wd0: 1625MB (3329424 sectors), 3303 cyls, 16 heads, 63 S/T, 512 B/S
wdc0: unit 1 (atapi): <FX820S/g01>, removable, intr, dma, iordis
acd0: drive speed 1377KB/sec, 256KB cache
acd0: supported read types: CD-DA
acd0: Audio: play, 255 volume levels
acd0: Mechanism: ejectable tray
acd0: Medium: CD-ROM 120mm data disc loaded, unlocked
wdc1 at 0x170-0x177 irq 15 flags 0xa0ffa0ff on isa
wdc1: unit 0 (wd2): <QUANTUM FIREBALL EL5.1A>, DMA, 32-bit, multi-block-16
wd2: 4892MB (10018890 sectors), 10602 cyls, 15 heads, 63 S/T, 512 B/S
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1.44MB 3.5in
pcf0 at 0x320 irq 5 on isa
pcf0 not attached due to irq conflict with pcm1 at 5
vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa
npx0 on motherboard
npx0: INT 16 interface
apm0 on isa
apm: found APM BIOS version 1.2
pcf0: <PCF8584 I2C bus controller>
iicbus1: <Philips I2C bus> on pcf0 addr 0xaa
iicsmb1: <I2C to SMB bridge> on iicbus1
smbus2: <System Management Bus> on iicsmb1
smb2: <SMBus general purpose I/O> on smbus2
iic1: <I2C general purpose I/O> on iicbus1
DEVFS: ready to run
IP packet filtering initialized, divert enabled, rule-based forwarding enabled, default to accept, logging limited to 100 packets/entry
DUMMYNET initialized (990504)
Waiting 2 seconds for SCSI devices to settle
changing root device to wd0s2a
WARNING: / was not properly dismounted
cd0 at ncr0 bus 0 target 1 lun 0
cd0: <MATSHITA CD-R   CW-7502 4.17> Removable CD-ROM SCSI-2 device 
cd0: 10.000MB/s transfers (10.000MHz, offset 8)
cd0: cd present [289299 x 2048 byte records]
ffs_mountfs: superblock updated for soft updates
ffs_mountfs: superblock updated for soft updates
ffs_mountfs: superblock updated for soft updates

[-- Attachment #4 --]
#0  boot (howto=256) at ../../kern/kern_shutdown.c:285
#1  0xc0154b14 in panic (fmt=0xc0247211 "ffs_clusteralloc: map mismatch")
    at ../../kern/kern_shutdown.c:446
#2  0xc01c4873 in ffs_clusteralloc (ip=0xc08b8200, cg=58, bpref=1928264, len=7)
    at ../../ufs/ffs/ffs_alloc.c:1174
#3  0xc01c3a27 in ffs_hashalloc (ip=0xc08b8200, cg=58, pref=1928264, size=7, 
    allocator=0xc01c4620 <ffs_clusteralloc>) at ../../ufs/ffs/ffs_alloc.c:763
#4  0xc01c32cc in ffs_reallocblks (ap=0xc4b40dcc)
    at ../../ufs/ffs/ffs_alloc.c:440
#5  0xc017ad54 in cluster_write (bp=0xc1c85e00, filesize=207503360)
    at vnode_if.h:1035
#6  0xc01cfafb in ffs_write (ap=0xc4b40ea8)
    at ../../ufs/ufs/ufs_readwrite.c:469
#7  0xc0184ec2 in vn_write (fp=0xc09acac0, uio=0xc4b40ef8, cred=0xc0a63500, 
    flags=0) at vnode_if.h:331
#8  0xc016146e in dofilewrite (p=0xc4a0b100, fp=0xc09acac0, fd=4, 
    buf=0x805e000, nbyte=1024, offset=-1, flags=0)
    at ../../kern/sys_generic.c:363
#9  0xc016134a in write (p=0xc4a0b100, uap=0xc4b40f84)
    at ../../kern/sys_generic.c:298
#10 0xc02013b8 in syscall (frame={tf_es = 39, tf_ds = 39, tf_edi = 1024, 
      tf_esi = 134602752, tf_ebp = -1077947840, tf_isp = -994832428, 
      tf_ebx = 1024, tf_edx = 0, tf_ecx = 0, tf_eax = 4, tf_trapno = 7, 
      tf_err = 2, tf_eip = 134520308, tf_cs = 31, tf_eflags = 518, 
      tf_esp = -1077947880, tf_ss = 39}) at ../../i386/i386/trap.c:1100
#11 0xc01f6f5c in Xint0x80_syscall ()
#12 0x804923b in ?? ()
#13 0x8048b05 in ?? ()
#14 0x80480e9 in ?? ()

[-- Attachment #5 --]
/dev/wd0s2b		none		swap	sw		0	0
/dev/wd2s1b		none		swap	sw		0	0
/dev/wd0s2a		/		ufs	rw		1	1
/dev/wd0s2f		/usr		ufs	rw		2	2
proc			/proc		procfs	rw		0	0
/dev/wcd0c		/cdrom		cd9660	ro,noauto	0	0
/dev/wd0s1		/dos		msdos	rw		0	0
devfs  /devs  devfs rw 0 0
/dev/wd2s1a		/mnt		ufs	rw	2	2
/dev/wd2s1e		/var	ufs	rw	2	2
/dev/wd2s1f		/mnt/usr	ufs	rw	2	2

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