Date: Tue, 3 Jul 2001 12:23:55 +0100 From: "Stewart Morgan" <stewart@nameless-uk.com> To: <freebsd-stable@FreeBSD.org>, <freebsd-questions@FreeBSD.org> Subject: PANIC in FFS -- Please HELP! Message-ID: <007501c103b2$a9379a20$0b01000a@apollo>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Hi,
I mailed -stable a while back (see below), but have
had no reply. I'm getting reproducible crashes (on my
machine at least) in ffs_blkpref() when under heavy load.
This machine is supposed to be a file server and, so
far, I've not got any confidence in it!
Any help would be very much appreciated!
Stewart.
----8<--------8<--------8<----
Hi all,
I'm running -stable, cvsup'd as of yesterday (14/06/01).
I've just set up a RAID-5 array using vinum on 40GB IDE drives.
All went well until I tried copying data to the drive from a
sharity-light mount at which point, the system panic'd!
I managed to get a dump (see below), but interestingly
savecore'ing to a different drive (a SCSI Seagate drive) also
panic'd the machine -- kernel.GENERIC has, so far, picked the
dumps up no problem, but my custom kernel just gets oh-so-close :(
I remember reading a past thread; I've got two fxp's and
an on-board AIC-7895, so I wondered if this might have something
to do with it?
Of the dumps that I've managed to recover, all of them seem
to falter at ffs_blkpref, hence the subject.
Please find attached a trace, dmesg, and kernel config file.
I have the vmcore file(s) available, but ask if there's anything
else you need and I'll see what I can do...
[-- Attachment #2 --]
GNU gdb 4.18
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 conditions.
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 5681152
initial pcb at 4036e0
panicstr: from debugger
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address = 0x4a
fault code = supervisor read, page not present
instruction pointer = 0x8:0xc02ad93b
stack pointer = 0x10:0xca2d0d14
frame pointer = 0x10:0xca2d0d34
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 356 (pax)
interrupt mask = none
panic: from debugger
panic: from debugger
Uptime: 4m55s
dumping to dev #da/0x20001, offset 1310976
dump 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 10
3 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 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
---
#0 0xc01ad42e in dumpsys ()
.gdbinit:4: Error in sourced command file:
Attempt to extract a component of a value that is not a structure.
(kgdb) bt
#0 0xc01ad42e in dumpsys ()
#1 0xc01ad0b2 in boot ()
#2 0xc01ad5e9 in panic ()
#3 0xc01568f5 in db_panic ()
#4 0xc0156896 in db_command ()
#5 0xc015695a in db_command_loop ()
#6 0xc01598f3 in db_trap ()
#7 0xc03387dc in kdb_trap ()
#8 0xc0348548 in trap_fatal ()
#9 0xc0348209 in trap_pfault ()
#10 0xc0347d6f in trap ()
#11 0xc02ad93b in ffs_blkpref ()
#12 0xc02b09aa in ffs_balloc ()
#13 0xc02bc4f2 in ffs_write ()
#14 0xc01f0932 in vn_write ()
#15 0xc01c0688 in dofilewrite ()
#16 0xc01c0577 in write ()
#17 0xc034877a in syscall2 ()
#18 0xc0339245 in Xint0x80_syscall ()
#19 0x804c0b3 in ?? ()
#20 0x804abc9 in ?? ()
#21 0x8052d65 in ?? ()
#22 0x80481e2 in ?? ()
(kgdb)
[-- Attachment #3 --]
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 4.3-STABLE #9: Fri Jun 15 11:30:25 GMT 2001
root@laxmi.bristol.squidge.com:/usr/src/sys/compile/LAXMI
Timecounter "i8254" frequency 1193077 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (400.87-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x665 Stepping = 5
Features=0x183fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory = 134086656 (130944K bytes)
sio0: gdb debugging port
avail memory = 125460480 (122520K bytes)
Preloaded elf kernel "kernel" at 0xc0431000.
ccd0-3: Concatenated disk drivers
VESA: v2.0, 4096k memory, flags:0x1, mode table:0xc03bcda2 (1000022)
VESA: Cirrus Logic GD-546X VGA
Pentium Pro MTRR support enabled
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <Cirrus Logic GD5465 SVGA controller> at 0.0 irq 10
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xffa0-0xffaf at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> at device 7.2 on pci0
uhci0: Invalid irq 255
uhci0: Please switch on USB support and switch PNP-OS to 'No' in BIOS
device_probe_and_attach: uhci0 attach returned 6
intpm0: <Intel 82371AB Power management controller> port 0x440-0x44f irq 9 at device 7.3 on pci0
intpm0: I/O mapped 440
intpm0: intr IRQ 9 enabled revision 0
smbus0: <System Management Bus> on intsmb0
smb0: <SMBus general purpose I/O> on smbus0
intpm0: PM I/O mapped 400
pcib2: <DEC 21152 PCI-PCI bridge> at device 16.0 on pci0
pci2: <PCI bus> on pcib2
fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0xdf00-0xdf3f mem 0xfe900000-0xfe9fffff,0xfeaff000-0xfeafffff irq 11 at device 5.0 on pci2
fxp0: Ethernet address 00:02:b3:2a:1d:82
inphy0: <i82555 10/100 media interface> on miibus0
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp1: <Intel Pro 10/100B/100+ Ethernet> port 0xdf80-0xdf9f mem 0xfe700000-0xfe7fffff,0xff1ff000-0xff1fffff irq 9 at device 6.0 on pci2
fxp1: Ethernet address 00:90:27:34:25:b1
inphy1: <i82555 10/100 media interface> on miibus1
inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ahc0: <Adaptec aic7895 Ultra SCSI adapter> port 0xe400-0xe4ff mem 0xfebfe000-0xfebfefff irq 10 at device 18.0 on pci0
aic7895C: Wide Channel A, SCSI Id=7, 32/255 SCBs
ahc1: <Adaptec aic7895 Ultra SCSI adapter> port 0xe800-0xe8ff mem 0xfebff000-0xfebfffff irq 10 at device 18.1 on pci0
aic7895C: Wide Channel B, SCSI Id=7, 32/255 SCBs
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
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x80 on isa0
sc0: VGA <16 virtual consoles, flags=0x280>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x91 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
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
IPv6 packet filtering initialized, default to accept, logging limited to 100 packets/entry
IP packet filtering initialized, divert enabled, rule-based forwarding enabled, default to accept, logging limited to 100 packets/entry by default
IPsec: Initialized Security Association Processing.
IP Filter: v3.4.16 initialized. Default = pass all, Logging = enabled
ad0: 39266MB <IBM-DTLA-305040> [79780/16/63] at ata0-master tagged UDMA33
ad2: 39266MB <IBM-DTLA-305040> [79780/16/63] at ata1-master tagged UDMA33
ad3: 39266MB <IBM-DTLA-305040> [79780/16/63] at ata1-slave tagged UDMA33
Waiting 8 seconds for SCSI devices to settle
sa0 at ahc0 bus 0 target 4 lun 0
sa0: <ARCHIVE Python 27871-XXX 1214> Removable Sequential Access SCSI-2 device
sa0: 5.000MB/s transfers (5.000MHz, offset 8)
da0 at ahc0 bus 0 target 0 lun 0
da0: <SEAGATE ST39102LW 0005> Fixed Direct Access SCSI-2 device
da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing Enabled
da0: 8683MB (17783240 512 byte sectors: 255H 63S/T 1106C)
Mounting root from ufs:/dev/da0s1a
[-- Attachment #4 --]
#######################################################################################
#######################################################################################
## Configuration file for Apollo
#######################################################################################
#######################################################################################
ident LAXMI
#######################################################################################
# Generic options
#######################################################################################
#
options CLK_USE_I8254_CALIBRATION
options CLK_USE_TSC_CALIBRATION
options INCLUDE_CONFIG_FILE
machine i386
maxusers 128
#######################################################################################
# Single CPU options
#######################################################################################
#
cpu I686_CPU
#######################################################################################
# SMP options...
#######################################################################################
#
# To make an SMP kernel, the next two are needed
#options SMP # Symmetric MultiProcessor Kernel
#options APIC_IO # Symmetric (APIC) I/O
# Optionally these may need tweaked, (defaults shown):
#options NCPU=2 # number of CPUs
#options NBUS=4 # number of busses
#options NAPIC=1 # number of IO APICs
#options NINTR=24 # number of INTs
#######################################################################################
# File system support...
#######################################################################################
#
options FFS #Berkeley Fast Filesystem
options FFS_ROOT #FFS usable as root device [keep this!]
options CD9660
options MSDOSFS
options PROCFS
options NFS #Network Filesystem
options SOFTUPDATES
#options PQ_CACHESIZE=1024 # Cache colouring
#######################################################################################
# Kernel config options
#######################################################################################
#
options USERCONFIG #boot -c editor
options VISUAL_USERCONFIG #visual boot -c editor
options "COMPAT_43" #Compatible with BSD 4.3 [KEEP THIS!]
options COMPAT_LINUX
options P1003_1B #Posix P1003_1B real-time extensions
options _KPOSIX_PRIORITY_SCHEDULING
options _KPOSIX_VERSION=199309L
config kernel
#######################################################################################
# Debugging options
#######################################################################################
#
makeoptions DEBUG=-g
options DDB
#options DDB_UNATTENDED
#######################################################################################
# Buses...
#######################################################################################
#
options AUTO_EOI_1
# EOI_2 KILLS MACHINE!
device isa
device pci
#######################################################################################
# Floppy drive...
#######################################################################################
#
device fdc0 at isa? port IO_FD1 irq 6 drq 2
device fd0 at fdc0 drive 0
#######################################################################################
# IDE stuff...
#######################################################################################
#
options ATA_STATIC_ID
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
#######################################################################################
# SCSI stuff...
#######################################################################################
#
options SCSI_DELAY=8000 #Be pessimistic about Joe SCSI device
options AHC_ALLOW_MEMIO
device ahc
device scbus
device da
device sa
device cd
device pass
#######################################################################################
# Console etc...
#######################################################################################
#
makeoptions ATKBD_DFLT_KEYMAP=uk.iso.kbd
options UCONSOLE
options ATKBD_DFLT_KEYMAP
options SC_NORM_ATTR="(FG_YELLOW|BG_BLACK)"
options SC_NORM_REV_ATTR="(FG_BLACK|BG_LIGHTGREY)"
options SC_KERNEL_CONS_ATTR="(FG_LIGHTRED|BG_BLACK)"
options SC_KERNEL_CONS_REV_ATTR="(FG_BLACK|BG_RED)"
options SC_NO_CUTPASTE
options SC_NO_SYSMOUSE
options SC_HISTORY_SIZE=4096
#options SC_PIXEL_MODE
options VESA
options XSERVER # support for X server
options MSGBUF_SIZE=40960
device atkbdc0 at isa? port IO_KBD
device atkbd0 at atkbdc? irq 1
device psm0 at atkbdc? irq 12
device vga0 at isa? port?
device vga1 at isa? port?
device sc0 at isa? flags 0x80
device npx0 at nexus? port IO_NPX flags 0x0 irq 13
pseudo-device splash
#######################################################################################
# Power and system management...
#######################################################################################
#
device apm0 at nexus?
device smb
device smbus
device iicbus
device intpm
device iicsmb
device ichsmb
#######################################################################################
# Serial ports for serial consoles...
#######################################################################################
#
options CONSPEED=9600
device sio0 at isa? port "IO_COM1" flags 0x91 irq 4
device sio1 at isa? port "IO_COM2" irq 3
#######################################################################################
# Paralell ports...
#######################################################################################
#
device ppc0 at isa? port? irq 7
device ppbus
device lpt
#######################################################################################
# USB devices...
#######################################################################################
#
device uhci
device usb
device uhid
device ums
device umass
#######################################################################################
# Network card...
#######################################################################################
#
device miibus
device fxp
#######################################################################################
# Firewall stuff...
#######################################################################################
#
# IP Security and tweaks
options IPSEC
options IPSEC_ESP
options PPP_BSDCOMP
options PPP_DEFLATE
options TCP_DROP_SYNFIN #drop TCP packets with SYN+FIN
options ICMP_BANDLIM
# IPv4
options INET #InterNETworking
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
# IPv6
options INET6 #InterNETworking
options IPV6FIREWALL #firewall
options IPV6FIREWALL_VERBOSE #print information about dropped packets
options IPV6FIREWALL_VERBOSE_LIMIT=100 #limit verbosity
options IPV6FIREWALL_DEFAULT_TO_ACCEPT #allow everything by default
# Misc
options IPDIVERT #divert sockets
options IPFILTER #kernel ipfilter support
options IPFILTER_LOG #ipfilter logging
#######################################################################################
# Pseudo devices...
#######################################################################################
#
pseudo-device loop
pseudo-device ether
pseudo-device gzip
pseudo-device bpf 4
pseudo-device vn 4
pseudo-device ccd 4
pseudo-device ppp 1
pseudo-device tun 1
pseudo-device pty 64
pseudo-device gif 4
pseudo-device faith 1
pseudo-device stf 1
pseudo-device snp 2
#######################################################################################
# Shared system resources...
#######################################################################################
#
options SYSVSHM
options SYSVMSG
options SYSVSEM
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?007501c103b2$a9379a20$0b01000a>
