Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Nov 1998 14:38:35 -0800 (PST)
From:      kargl@apl.washington.edu
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   kern/8750: kernel panic  981114 sources
Message-ID:  <199811182238.OAA03246@hotrats.apl.washington.edu>

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

>Number:         8750
>Category:       kern
>Synopsis:       SMP kernel panics and wipes out filesystems
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 18 14:40:00 PST 1998
>Last-Modified:
>Originator:     Steven G. Kargl
>Organization:
APL/UW
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium Pro (686-class CPU)
  Origin = "GenuineIntel"  Id = 0x619  Stepping=9
  Features=0xfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV>
real memory  = 268435456 (262144K bytes)
avail memory = 258465792 (252408K bytes)
Programming 24 pins in IOAPIC #0
FreeBSD/SMP: Multiprocessor motherboard
 cpu0 (BSP): apic id:  1, version: 0x00040011, at 0xfee00000
 cpu1 (AP):  apic id:  0, version: 0x00040011, at 0xfee00000
 io0 (APIC): apic id:  2, version: 0x00170011, at 0xfec00000
Probing for devices on PCI bus 0:
chip0: <Intel 82440FX (Natoma) PCI and memory controller> rev 0x02 on pci0.0.0
chip1: <Intel 82371SB PCI to ISA bridge> rev 0x01 on pci0.7.0
vga0: <S3 ViRGE graphics accelerator> rev 0x05 int a irq 19 on pci0.15.0
ahc0: <Adaptec 2940 Ultra SCSI adapter> rev 0x00 int a irq 18 on pci0.16.0
ahc0: aic7880 Single Channel A, SCSI Id=7, 16/255 SCBs
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via pin 2
Waiting 15 seconds for SCSI devices to settle
SMP: AP CPU #1 Launched!
changing root device to da0s1a
da1 at ahc0 bus 0 target 2 lun 0
da1: <QUANTUM LIGHTNING 730S 241E> Fixed Direct Access SCSI2 device 
da1: 10.0MB/s transfers (10.0MHz, offset 8)
da1: 699MB (1431760 512 byte sectors: 64H 32S/T 699C)
cd0 at ahc0 bus 0 target 6 lun 0
cd0: <PLEXTOR CD-ROM PX-12CS 1.00> Removable CD-ROM SCSI2 device 
cd0: 10.0MB/s transfers (10.0MHz, offset 15)
cd0: cd present [159218 x 2048 byte records]
da0 at ahc0 bus 0 target 0 lun 0
da0: <SEAGATE ST34371N 0280> Fixed Direct Access SCSI2 device 
da0: 20.0MB/s transfers (20.0MHz, offset 15), Tagged Queueing Enabled
da0: 4148MB (8496960 512 byte sectors: 255H 63S/T 528C)

>Description:

SMP kernel panics.  Filesystems with outstanding/pending writes
are toasted (fsck -y finds hundreds of unconnected inodes and 
incorrect inodes).

dev=0x20405, bno = 13, bsize = 8192, size = 8192, fs = /usr
panic:  ffs_blkfree: bad size
mp_lock = 00000001; cpuid = 0; lapic.id = 01000000
Debugger("panic")
Stopped at _Debugger+0x35: movb $0, _in_Debugger.98
db> trace
_Debugger(f0137c1e) at _Debugger+0x35
_panic(f01c52d1,f01c529b,20405,d,2000) at _panic+0x9f
_ffs_blkfree(f09d4990,d,2000) at _ffs_blkfree+0xc2
_ffs_reallocblks(f85c2e24) at _ffs_reallocblks+0x420
_cluster_write(f5c87c98,38000,0) at _cluster_write+0x15f
_ffs_write(f85c2efc,f84f57c0,41,f85c2f94,f012f448) at _ffs_write+0x56f
_vn_write(f0da7a80,f85c2f40,f0d4fa80,f84f57c0,f0241dac) at _vn_write+0xef
_write(f84f57c0,f85c2f94,805d100,41,805d100) at _write+0xba
_syscall(27,27,805d100,41,efbfdc28) at _syscall+0x187
_Xint0x80_syscall() at _Xint0x80_syscall+0x4c

>How-To-Repeat:

cvsup sources from 14 Nov 98.  Build an SMP kernel.  Reboot.
To see the quickly "mount -u -o async /usr".  Config kernel
sources, make depend, and fire off "make -j 4".

>Fix:

cvsup with "*default date=98.11.10.00.00.00"

I believe the bug is associated with dg@freebsd.org re-instating
ffs_doreallocblks.
>Audit-Trail:
>Unformatted:

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



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