Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Aug 2001 14:56:10 +0200 (CEST)
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        current@freebsd.org
Subject:   panic: ffs_blkfree: freeing free block  / + UDMA ICRC error with ad0
Message-ID:  <200108181256.f7ICuBJ00856@Magelan.Leidinger.net>

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

-current as of Aug 16, ~2pm CEST:

---snip---
IdlePTD 4812800
initial pcb at 305f60
panicstr: bremfree: bp 0xc69e0748 not locked
panic messages:
---
panic: ffs_blkfree: freeing free block
panic: from debugger
[...]
#0  dumpsys () at ../../../kern/kern_shutdown.c:479
#1  0xc01baf11 in boot (howto=260) at ../../../kern/kern_shutdown.c:322
#2  0xc01bb32a in panic (fmt=0xc02ba51e "bremfree: bp %p not locked")
    at ../../../kern/kern_shutdown.c:601
#3  0xc01ed20e in bremfree (bp=0xc69e0748) at ../../../kern/vfs_bio.c:479
#4  0xc01eeb7a in getnewbuf (slpflag=0, slptimeo=0, size=8192, maxsize=8192)
    at ../../../kern/vfs_bio.c:1632
#5  0xc01ef8d1 in getblk (vp=0xd063eec0, blkno=64, size=8192, slpflag=0, 
    slptimeo=0) at ../../../kern/vfs_bio.c:2244
#6  0xc01ed2ef in breadn (vp=0xd063eec0, blkno=64, size=8192, rablkno=0x0, 
    rabsize=0x0, cnt=0, cred=0x0, bpp=0xc049ae10)
    at ../../../kern/vfs_bio.c:537
#7  0xc01ed2b4 in bread (vp=0xd063eec0, blkno=64, size=8192, cred=0x0, 
    bpp=0xc049ae10) at ../../../kern/vfs_bio.c:519
#8  0xc0228650 in ffs_update (vp=0xd063eda0, waitfor=0)
    at ../../../ufs/ffs/ffs_inode.c:101
#9  0xc023601f in ffs_fsync (ap=0xc049ae8c) at ../../../ufs/ffs/ffs_vnops.c:292
#10 0xc0233f9f in ffs_sync (mp=0xc1870400, waitfor=2, cred=0xc0e61d00, 
    p=0xc0337000) at vnode_if.h:441
#11 0xc01fc2e1 in sync (p=0xc0337000, uap=0x0)
    at ../../../kern/vfs_syscalls.c:620
#12 0xc01baa37 in boot (howto=256) at ../../../kern/kern_shutdown.c:231
#13 0xc01bb32a in panic (fmt=0xc02cfc5e "%s")
    at ../../../kern/kern_shutdown.c:601
#14 0xc0276c90 in trap_fatal (frame=0xc049afa8, eva=794529)
    at ../../../i386/i386/trap.c:935
#15 0xc02769c9 in trap_pfault (frame=0xc049afa8, usermode=0, eva=794529)
    at ../../../i386/i386/trap.c:849
#16 0xc027615c in trap (frame={tf_fs = 0, tf_es = 0, tf_ds = 0, tf_edi = 3557, 
      tf_esi = 20371, tf_ebp = 24, tf_isp = -1068912684, tf_ebx = 8, 
      tf_edx = 145, tf_ecx = 3, tf_eax = 1544, tf_trapno = 12, tf_err = 4, 
      tf_eip = 8097, tf_cs = 49152, tf_eflags = 721410, tf_esp = 4030, 
      tf_ss = 0}) at ../../../i386/i386/trap.c:408
#17 0x1fa1 in ?? ()
Cannot access memory at address 0x18.
---snip---

Transcript of the console message:
---snip---
ad0s2e: UDMA ICRC error: reading fsbn 61053200 of 27057504-27057535
(ad0s2e bn 61053200; cn 4037 tn 218 sn 26) retrying
dev = ad0s2e, block = 6885944, fs = /big
panic: ffs_blkfree: freeing free block
---snip---

This happened after issuing a "shutdown -h now", after the
"waiting 60 seconds" message, before the display of the uptime.

My sysctl.conf:
---snip---
vfs.vmiodirenable=1
net.inet.tcp.slowstart_flightsize=3
---snip---

My dmesg:
---snip---
Copyright (c) 1992-2001 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 5.0-CURRENT #21: Thu Aug 16 16:01:53 CEST 2001
    root@Magelan.Leidinger.net:/big/usr/src/sys/i386/compile/WORK
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 801838143 Hz
CPU: AMD Duron(tm) Processor (801.84-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x631  Stepping = 1
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
  AMD Features=0xc0440000<<b18>,AMIE,DSP,3DNow!>
real memory  = 268369920 (262080K bytes)
avail memory = 256524288 (250512K bytes)
Preloaded elf kernel "kernel" at 0xc0478000.
Preloaded elf module "cd9660.ko" at 0xc04780a8.
Preloaded elf module "msdosfs.ko" at 0xc0478148.
Preloaded elf module "ntfs.ko" at 0xc04781e8.
Preloaded elf module "procfs.ko" at 0xc0478284.
Preloaded elf module "linux.ko" at 0xc0478324.
Preloaded elf module "miibus.ko" at 0xc04783c4.
Preloaded elf module "if_xl.ko" at 0xc0478464.
Preloaded elf module "snd_pcm.ko" at 0xc0478504.
Preloaded elf module "snd_es137x.ko" at 0xc04785a4.
Preloaded elf module "snd_via82c686.ko" at 0xc0478648.
Preloaded elf module "usb.ko" at 0xc04786f0.
Preloaded elf module "agp.ko" at 0xc047878c.
Preloaded elf module "accf_data.ko" at 0xc0478828.
Preloaded elf module "accf_http.ko" at 0xc04788cc.
Preloaded elf module "random.ko" at 0xc0478970.
Preloaded elf module "atspeaker.ko" at 0xc0478a10.
Preloaded elf module "joy.ko" at 0xc0478ab4.
Pentium Pro MTRR support enabled
VESA: v3.0, 16384k memory, flags:0x1, mode table:0xc0319f17 (1000117)
VESA: 3dfx Interactive, Inc.
Using $PIR table, 9 entries at 0xc00fdd00
acpi0: <BIOSTA AWRDACPI> on motherboard
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI"  frequency 3579545 Hz
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
acpi_pcib0: <Host-PCI bridge> on acpi0
pci0: <PCI bus> on acpi_pcib0
agp0: <VIA Generic host to PCI bridge> mem 0xd0000000-0xd3ffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C686 ATA100 controller> port 0xa000-0xa00f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <VIA 83C572 USB controller> port 0xa400-0xa41f irq 11 at device 7.2 on pci0
usb0: <VIA 83C572 USB controller> 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
pci0: <bridge, PCI-unknown> at 7.4 (no driver attached)
pcm0: <VIA VT82C686A> port 0xb400-0xb403,0xb000-0xb003,0xac00-0xacff irq 10 at device 7.5 on pci0
xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xb800-0xb87f mem 0xdb000000-0xdb00007f irq 5 at device 9.0 on pci0
xl0: Ethernet address: 00:01:02:b0:8d:ce
miibus0: <MII bus> on xl0
xlphy0: <3c905C 10/100 internal PHY> on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ahc0: <Adaptec aic7850 SCSI adapter> port 0xbc00-0xbcff mem 0xdb001000-0xdb001fff irq 10 at device 10.0 on pci0
aic7850: Single Channel A, SCSI Id=7, 3/255 SCBs
pcm1: <Creative CT5880-C> port 0xc000-0xc03f irq 11 at device 11.0 on pci0
npx0: <math processor> on motherboard
npx0: INT 16 interface
orm0: <Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xcbfff,0xcc000-0xcc7ff,0xcd000-0xcd7ff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x6 on isa0
sc0: VGA <16 virtual consoles, flags=0x206>
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
sio0 at port 0x3f8-0x3ff irq 4 flags 0x20010 on isa0
sio0: type ST16650A
sio1: configured irq 10 not in bitmap of probed irqs 0
isic0 at port 0x1b00-0x1b1f,0x16e0-0x16ff,0x6e0-0x6ff,0xee0-0xeff,0x1300-0x131f,0x300-0x31f,0xb00-0xb1f irq 3 flags 0x4 on isa0
isic0: passive stack unit 0
isic0: AVM A1 or Fritz!Card Classic
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
pcfclock0: <PCF-1.0> on ppbus0
ppi0: <Parallel I/O> on ppbus0
pps0: <Pulse per second Timing Interface> on ppbus0
unknown: <PNP0200> can't assign resources
atspeaker0: <AT speaker> at port 0x61 on isa0
unknown: <PNP0700> can't assign resources
unknown: <PNP0501> can't assign resources
unknown: <PNP0501> can't assign resources
unknown: <PNP0510> can't assign resources
unknown: <PNP0400> can't assign resources
unknown: <PNP0401> can't assign resources
unknown: <PNP0F13> can't assign resources
unknown: <PNP0303> can't assign resources
i4bctl: ISDN system control port attached
IP packet filtering initialized, divert disabled, rule-based forwarding disabled, default to deny, logging limited to 100 packets/entry by default
i4brbch: 2 raw B channel access device(s) attached
i4bisppp: 2 ISDN SyncPPP device(s) attached (VJ header compression)
i4b: ISDN call control device attached
i4btrc: 2 ISDN trace device(s) attached
acpi_cpu0: set speed to 100.0%
acpi_cpu: CPU throttling enabled, 2 steps from 100% to 50.0%
ad0: 19547MB <FUJITSU MPE3204AT> [39714/16/63] at ata0-master UDMA66
ad1: 58644MB <IC35L060AVER07-0> [119150/16/63] at ata0-slave UDMA100
afd0: 96MB <IOMEGA ZIP 100 ATAPI> [32/64/96] at ata1-master PIO0
Waiting 6 seconds for SCSI devices to settle
Mounting root from ufs:/dev/ad0s2a
cd1 at ahc0 bus 0 target 2 lun 0
cd1: <PIONEER DVD-ROM DVD-305 1.00> Removable CD-ROM SCSI-2 device 
cd1: 10.000MB/s transfers (10.000MHz, offset 15)
cd1: Attempt to query device size failed: NOT READY, Medium not present
WARNING: / was not properly dismounted
cd0 at ahc0 bus 0 target 1 lun 0
cd0: <TEAC CD-R55S 1.0Q> Removable CD-ROM SCSI-2 device 
cd0: 10.000MB/s transfers (10.000MHz, offset 15)
cd0: Attempt to query device size failed: NOT READY, Medium not present
/big: mount pending error: blocks 123812 files 205
---snip---

And my kernel config:
---snip---
machine		i386
ident		WORK
maxusers	40

makeoptions	DEBUG=-g
makeoptions	CONF_CFLAGS=-fno-builtin

#options 	MUTEX_DEBUG
#options 	WITNESS
#options 	WITNESS_DDB

hints 		"WORK.hints"

# Options for the VM subsystem
options 	PQ_CACHESIZE=128

cpu		I686_CPU		# aka Pentium Pro(tm)
options		CPU_FASTER_5X86_FPU
options		CPU_SUSP_HLT
options		NO_F00F_HACK
options 	CPU_UPGRADE_HW_CACHE
options 	CPU_ENABLE_SSE

options 	PERFMON

options		COMPAT_43

options		SYSVSHM
options		SYSVSEM
options		SYSVMSG
options		DDB
#options 	DDB_UNATTENDED
#options 	GDB_REMOTE_CHAT
options		KTRACE			#kernel tracing
options		UCONSOLE
#options		USERCONFIG		#boot -c editor
#options 	VISUAL_USERCONFIG
options		INET			#Internet communications protocols
device		ether			#Generic Ethernet
device		sppp			#Generic Synchronous PPP
device		loop	1		#Network loopback device
device		bpf			#Berkeley packet filter

#
# The INVARIANTS option is used in a number of source files to enable
# extra sanity checking of internal structures.  This support is not
# enabled by default because of the extra time it would take to check
# for these conditions, which can only occur as a result of
# programming errors.
#
options         INVARIANTS
options 	INVARIANT_SUPPORT
options 	DIAGNOSTIC

#options		MROUTING		# Multicast routing
options         IPFIREWALL              #firewall
options         IPFIREWALL_VERBOSE      #print information about
					# dropped packets
options		IPFIREWALL_VERBOSE_LIMIT=100 #limit verbosity
options		FFS			#Fast filesystem
options		SOFTUPDATES

options 	ENABLE_VFS_IOOPT
options 	UFS_DIRHASH

options		P1003_1B
options		_KPOSIX_PRIORITY_SCHEDULING
options		_KPOSIX_VERSION=199309L

device	scbus	#base SCSI code
#device		ch	#SCSI media changers
device		da	#SCSI direct access devices (aka disks)
#device		sa	#SCSI tapes
device		cd	#SCSI CD-ROMs
device		pass	#CAM passthrough driver
device          ses    #SCSI SES/SAF-TE driver
options		CAM_MAX_HIGHPOWER=4
options		SCSI_DELAY=6000	# Be pessimistic about Joe SCSI device
options         SES_ENABLE_PASSTHROUGH

device 		ahc


device		pty		#Pseudo ttys
device		gzip		#Exec gzipped a.out's
#device		snp	3	#Snoop device - to look at pty/vty/etc..

options		MSGBUF_SIZE=40960

device	isa

# Enable support for the kernel PLL to use an external PPS signal,
# under supervision of [x]ntpd(8)
# More info in ntpd documentation: http://www.eecis.udel.edu/~ntp

options		PPS_SYNC

device		atkbdc	1
device		atkbd
options		ATKBD_DFLT_KEYMAP	# specify the built-in keymap
makeoptions	ATKBD_DFLT_KEYMAP="german.iso"
#options		KBD_DISABLE_KEYMAP_LOAD	# refuse to load a keymap
options		KBD_INSTALL_CDEV	# install a CDEV entry in /dev
device		psm
device		vga

device splash

device		sc	1
options		MAXCONS=16		# number of virtual consoles
options		SC_DFLT_FONT		# compile font in
makeoptions	SC_DFLT_FONT="iso"
options		SC_HISTORY_SIZE=800	# number of history buffer lines

device		npx

device		ata
device		atadisk	# ATA disk drives
#device		atapicd	# ATAPI CDROM drives
device		atapifd	# ATAPI floppy drives
#device		atapist	# ATAPI tape drives

device		fdc

device		sio 2

device 		acpica

device	pci

device smbus
device ichsmb
device smb

device iicbus
device iicbb

device ic
device iic
device iicsmb

options AVM_A1
device		isic
device		"i4bq921"
device		"i4bq931"
device		"i4b"
device  	 "i4btrc"	2
device  	 "i4bctl"
device  	 "i4brbch"       2
#device  	 "i4btel"        1
#device  	 "i4bipr"	2
options		IPR_VJ
device		"i4bisppp"	2

options		PERIPH_1284	# Makes your computer act as a IEEE1284
				# compliant peripheral
device		ppbus
device		lpt
#device		plip
device		ppi
device		pps
device		lpbb
#options 	PCFCLOCK_VERBOSE
device 		pcfclock

options 	PPC_PROBE_CHIPSET
device		ppc

options		CLK_CALIBRATION_LOOP
#options		CLK_USE_I8254_CALIBRATION
options		CLK_USE_TSC_CALIBRATION

#device		random
options 	VESA
#options 	MSDOSFS			#MS DOS File System (FAT, FAT32)
#options 	PROCFS			#Process filesystem
---snip---

Bye,
Alexander.

-- 
           Intel: where Quality is job number 0.9998782345!

http://www.Leidinger.net                       Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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