Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Nov 2001 13:12:54 +0200 (IST)
From:      Roman Shterenzon <roman@harmonic.co.il>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        freebsd-stable@freebsd.org, roman@harmonic.co.il
Subject:   Kernel crashes in ufs code
Message-ID:  <200111221112.fAMBCs300652@alchemy.oven.org>

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

>Submitter-Id:	current-users
>Originator:	Roman Shterenzon
>Confidential:	no 
>Synopsis:	Kernel crashes in ufs code
>Severity:	critical
>Priority:	high
>Category:	kern
>Class:		sw-bug
>Release:	FreeBSD 4.4-STABLE i386
>Environment:
System: FreeBSD alchemy.oven.org 4.4-STABLE FreeBSD 4.4-STABLE #0: Thu Nov 22 12:47:10 IST 2001 root@alchemy.oven.org:/local/src/sys/compile/ALCHEMY i386

dmesg:
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.4-STABLE #0: Thu Nov 22 12:47:10 IST 2001
    root@alchemy.oven.org:/local/src/sys/compile/ALCHEMY
Timecounter "i8254"  frequency 1193182 Hz
CPU: AMD-K6(tm) 3D processor (451.03-MHz 586-class CPU)
  Origin = "AuthenticAMD"  Id = 0x58c  Stepping = 12
  Features=0x8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX>
  AMD Features=0x80000800<SYSCALL,3DNow!>
real memory  = 268369920 (262080K bytes)
avail memory = 257527808 (251492K bytes)
Preloaded elf kernel "kernel" at 0xc0392000.
K6-family MTRR support enabled (2 registers)
Using $PIR table, 6 entries at 0xc00fded0
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: <VIA 82C598MVP (Apollo MVP3) host bridge> on motherboard
pci0: <PCI bus> on pcib0
agp0: <VIA 82C598 (Apollo MVP3) host to PCI bridge> mem 0xe0000000-0xe7ffffff at device 0.0 on pci0
pcib2: <VIA 82C598MVP (Apollo MVP3) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib2
pci1: <Matrox MGA G200 AGP graphics accelerator> at 0.0 irq 11
isab0: <VIA 82C586 PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C586 ATA33 controller> port 0x6400-0x640f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
uhci0: <VIA 83C572 USB controller> port 0x6800-0x681f irq 10 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
xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0x6c00-0x6c7f mem 0xef002000-0xef00207f irq 9 at device 10.0 on pci0
xl0: Ethernet address: 00:10:5a:26:96:7e
miibus0: <MII bus> on xl0
xlphy0: <3Com internal media interface> on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sym0: <875> port 0x7000-0x70ff mem 0xef001000-0xef001fff,0xef000000-0xef0000ff irq 9 at device 11.0 on pci0
sym0: Symbios NVRAM, ID 7, Fast-20, SE, parity checking
sym0: open drain IRQ line driver, using on-chip SRAM
sym0: using LOAD/STORE-based firmware.
pcib1: <Host to PCI bridge> on motherboard
pci2: <PCI bus> on pcib1
orm0: <Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xcbfff 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> flags 0x1 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 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
sio2 at port 0x3e8-0x3ef irq 4 on isa0
sio2: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 drq 3 flags 0xc on isa0
ppc0: SMC-like chipset (ECP/EPP) in ECP+EPP mode (EPP 1.9)
ppc0: FIFO with 16/16/16 bytes threshold
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
sbc0: <SoundBlaster 16> at port 0x220-0x22f irq 5 drq 1 flags 0x15 on isa0
pcm0: <SB16 DSP 4.13> on sbc0
IPsec: Initialized Security Association Processing.
IP Filter: v3.4.20 initialized.  Default = pass all, Logging = enabled
ad0: 19595MB <QUANTUM FIREBALLP LM20.5> [39813/16/63] at ata0-master UDMA33
Waiting 2 seconds for SCSI devices to settle
(noperiph:sym0:0:-1:-1): SCSI BUS reset delivered.
Mounting root from ufs:/dev/ad0s2a
cd0 at sym0 bus 0 target 6 lun 0
cd0: <YAMAHA CRW2100S 1.0N> Removable CD-ROM SCSI-2 device 
cd0: 20.000MB/s transfers (20.000MHz, offset 7)
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed
WARNING: / was not properly dismounted
da0 at sym0 bus 0 target 0 lun 0
da0: <IBM OEM DFHSS4F 4141> Fixed Direct Access SCSI-2 device 
da0: 10.000MB/s transfers (10.000MHz, offset 16), Tagged Queueing Enabled
da0: 4303MB (8813870 512 byte sectors: 255H 63S/T 548C)

Kernel from today: 22/11/2001

>Description:
When heavy traffic passes through xl0 interface the system crashes in ufs code.

Script started on Thu Nov 22 13:04:33 2001
alchemy:/usr/src/sys/compile/ALCHEMY# gdb -k kernel.debug /var/crash/vmcore.0 
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 3870720
initial pcb at 30f4a0
panicstr: page fault
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0xf03e7837
fault code		= supervisor read, page not present
instruction pointer	= 0x8:0xc01eb738
stack pointer	        = 0x10:0xc02cca28
frame pointer	        = 0x10:0xc02cca34
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		= Idle
interrupt mask		= net 
trap number		= 12
panic: page fault

syncing disks... 

Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0x10
fault code		= supervisor read, page not present
instruction pointer	= 0x8:0xc021cb17
stack pointer	        = 0x10:0xc02cc6c0
frame pointer	        = 0x10:0xc02cc718
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		= Idle
interrupt mask		= net 
trap number		= 12
panic: page fault
Uptime: 3m44s

dumping to dev #ad/0x30001, offset 532448
dump ata0: resetting devices .. done
255 254 253 252 251 250 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 194 193 192 191 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 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 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 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  dumpsys () at ../../kern/kern_shutdown.c:473
473		if (dumping++) {
(kgdb) bt
#0  dumpsys () at ../../kern/kern_shutdown.c:473
#1  0xc017151c in boot (howto=260) at ../../kern/kern_shutdown.c:313
#2  0xc01718f8 in poweroff_wait (junk=0xc02c452c, howto=-1070841777)
    at ../../kern/kern_shutdown.c:581
#3  0xc027558b in trap_fatal (frame=0xc02cc680, eva=16)
    at ../../i386/i386/trap.c:956
#4  0xc027524d in trap_pfault (frame=0xc02cc680, usermode=0, eva=16)
    at ../../i386/i386/trap.c:849
#5  0xc0274e2f in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16, tf_edi = 1, 
      tf_esi = 0, tf_ebp = -1070807272, tf_isp = -1070807380, tf_ebx = 0, 
      tf_edx = 160, tf_ecx = 4096, tf_eax = 0, tf_trapno = 12, tf_err = 0, 
      tf_eip = -1071527145, tf_cs = 8, tf_eflags = 66118, tf_esp = -716537984, 
      tf_ss = 0}) at ../../i386/i386/trap.c:448
#6  0xc021cb17 in vnode_pager_generic_putpages (vp=0xd54a7f80, m=0xc02cc7b8, 
    bytecount=4096, flags=0, rtvals=0xc02cc788) at ../../vm/vnode_pager.c:1003
#7  0xc020753b in ffs_putpages (ap=0xc02cc74c)
    at ../../ufs/ufs/ufs_readwrite.c:722
#8  0xc021c96e in vnode_pager_putpages (object=0xd54b0180, m=0xc02cc7b8, 
    count=1, sync=0, rtvals=0xc02cc788) at vnode_if.h:1147
#9  0xc0219885 in vm_pageout_flush (mc=0xc02cc7b8, count=1, flags=0)
    at ../../vm/vm_pager.h:145
#10 0xc0216d72 in vm_object_page_clean (object=0xd54b0180, start=0, end=0, 
    flags=4) at ../../vm/vm_object.c:680
---Type <return> to continue, or q <return> to quit---
#11 0xc01a13de in vfs_msync (mp=0xc0ddd200, flags=2)
    at ../../kern/vfs_subr.c:2599
#12 0xc01a2350 in sync (p=0xc03252a0, uap=0x0) at ../../kern/vfs_syscalls.c:546
#13 0xc01712ce in boot (howto=256) at ../../kern/kern_shutdown.c:234
#14 0xc01718f8 in poweroff_wait (junk=0xc02c452c, howto=-1070841777)
    at ../../kern/kern_shutdown.c:581
#15 0xc027558b in trap_fatal (frame=0xc02cc9e8, eva=4030625847)
    at ../../i386/i386/trap.c:956
#16 0xc027524d in trap_pfault (frame=0xc02cc9e8, usermode=0, eva=4030625847)
    at ../../i386/i386/trap.c:849
#17 0xc0274e2f in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16, 
      tf_edi = -1062710272, tf_esi = 6685184, tf_ebp = -1070806476, 
      tf_isp = -1070806508, tf_ebx = -1062710272, tf_edx = -1063047168, 
      tf_ecx = -264341449, tf_eax = 389973, tf_trapno = 12, tf_err = 0, 
      tf_eip = -1071728840, tf_cs = 8, tf_eflags = 66050, 
      tf_esp = -1062819840, tf_ss = -1059785052}) at ../../i386/i386/trap.c:448
#18 0xc01eb738 in xl_newbuf (sc=0xc0d4f000, c=0xc0d4f6a4)
    at ../../pci/if_xl.c:1724
#19 0xc01eb90a in xl_rxeof (sc=0xc0d4f000) at ../../pci/if_xl.c:1825
#20 0xc01ec048 in xl_intr (arg=0xc0d4f000) at ../../pci/if_xl.c:2060
#21 0xc027d917 in intr_mux (arg=0xc0a34800)
    at ../../i386/isa/intr_machdep.c:582
(kgdb) up 6
#6  0xc021cb17 in vnode_pager_generic_putpages (vp=0xd54a7f80, m=0xc02cc7b8, 
    bytecount=4096, flags=0, rtvals=0xc02cc788) at ../../vm/vnode_pager.c:1003
1003		error = VOP_WRITE(vp, &auio, ioflags, curproc->p_ucred);
(kgdb) print vp
$1 = (struct vnode *) 0xd54a7f80
(kgdb) print *vp
$2 = {v_flag = 8192, v_usecount = 5, v_writecount = 2, v_holdcnt = 0, 
  v_id = 1115, v_mount = 0xc0ddd200, v_op = 0xc0d60300, v_freelist = {
    tqe_next = 0x0, tqe_prev = 0x0}, v_nmntvnodes = {tqe_next = 0xd54a7ec0, 
    tqe_prev = 0xd54a8064}, v_cleanblkhd = {tqh_first = 0x0, 
    tqh_last = 0xd54a7fac}, v_dirtyblkhd = {tqh_first = 0x0, 
    tqh_last = 0xd54a7fb4}, v_synclist = {le_next = 0xd54a8040, 
    le_prev = 0xd54a7efc}, v_numoutput = 0, v_type = VREG, v_un = {
    vu_mountedhere = 0x0, vu_socket = 0x0, vu_spec = {vu_specinfo = 0x0, 
      vu_specnext = {sle_next = 0x0}}, vu_fifoinfo = 0x0}, v_lease = 0x0, 
  v_lastw = 0, v_cstart = 0, v_lasta = 199904, v_clen = 15, 
  v_object = 0xd54b0180, v_interlock = {lock_data = 0}, v_vnlock = 0xc0eccc00, 
  v_tag = VT_UFS, v_data = 0xc0eccc00, v_cache_src = {lh_first = 0x0}, 
  v_cache_dst = {tqh_first = 0xc0ec97c0, tqh_last = 0xc0ec97d0}, 
  v_dd = 0xd54a7f80, v_ddid = 0, v_pollinfo = {vpi_lock = {lock_data = 0}, 
    vpi_selinfo = {si_pid = 0, si_note = {slh_first = 0x0}, si_flags = 0}, 
    vpi_events = 0, vpi_revents = 0}, v_vxproc = 0x0}
(kgdb) print auio
$3 = {uio_iov = 0xc02cc6dc, uio_iovcnt = 1, uio_offset = 0, uio_resid = 4096, 
  uio_segflg = UIO_NOCOPY, uio_rw = UIO_WRITE, uio_procp = 0x0}
(kgdb) print ioflags
$4 = 0
(kgdb) print curproc->p_ucred
Attempt to extract a component of a value that is not a structure pointer.
(kgdb) print curproc->p_ucred         
$5 = 0
(kgdb) up
#7  0xc020753b in ffs_putpages (ap=0xc02cc74c)
    at ../../ufs/ufs/ufs_readwrite.c:722
722             return vnode_pager_generic_putpages(ap->a_vp, ap->a_m, ap->a_count,
(kgdb) print ap
$1 = (struct vop_putpages_args *) 0x0

(kgdb) quit
alchemy:/usr/src/sys/compile/ALCHEMY#

Script done on Thu Nov 22 13:05:48 2001
>How-To-Repeat:
I can repeat this crash, verified that.

>Fix:

No fix is known to me.

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




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