Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jun 2004 23:11:51 +0200
From:      Ronald Klop <ronald-freebsd7@klop.yi.org>
To:        freebsd-current@freebsd.org
Subject:   panic with heavy writing on md device
Message-ID:  <opsadjt1vqm97yfk@outgoing.local>

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

--Boundary_(ID_2aPm6X+1on1n1Tj33Fy+xQ)
Content-type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1
Content-transfer-encoding: 7BIT

Hello,

I got a panic while doing a lot of IO on a md device.
I attached a gdb backtrace of the kernelcore and a dmesg output.

It happened while untarring a 30 MB tar on the background (&) and
traversing this new directory in the meantime.

uname -a
FreeBSD guido.thuis.klop.ws 5.2-CURRENT FreeBSD 5.2-CURRENT #1: Fri Jun 25  
04:03:35 CEST 2004      
root@guido.thuis.klop.ws:/usr/obj/usr/src/sys/GUIDO  i386

On the same time I was playing music with mpg123, but that doesn't make  
use of the md device.

I have had this more and always while doing a lot of IO on the md device.

Is there more info you need?

Greetings,

Ronald.

-- 
  Ronald Klop
  Amsterdam, The Netherlands

--Boundary_(ID_2aPm6X+1on1n1Tj33Fy+xQ)
Content-type: text/plain; name=gdb.txt
Content-transfer-encoding: 7BIT
Content-disposition: attachment; filename=gdb.txt

Script started on Tue Jun 29 23:04:12 2004


# root@guido [/usr/tmp/panic]

bin/makeports.sh 
portversion -vL=
bin/makeworld.sh 
portversion -vL=
bin/makeports.sh 
(reverse-i-search)`': g': rm /usr/ports/packages/All/Xft-2.1.2_1.tbz
(reverse-i-search)`gd': gdb -k /boot/kernel/kernel vmcore.2
(reverse-i-search)`gd': [1@b': 
gdb -k /boot/kernel/kernel vmcore.2 3
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 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-undermydesk-freebsd"...
(no debugging symbols found)...
panic: page fault
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0x8
fault code		= supervisor write, page not present
instruction pointer	= 0x8:0xc054288e
stack pointer	        = 0x10:0xd1af49ac
frame pointer	        = 0x10:0xd1af49cc
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		= 970 (bsdtar)
trap number		= 12
panic: page fault

syncing disks, buffers remaining... panic: kmem_malloc(4096): kmem_map too small: 130207744 total allocated
Uptime: 1h13m47s
Dumping 384 MB
 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 320 336 352 368
---
Reading symbols from /usr/obj/usr/src/sys/GUIDO/modules/usr/src/sys/modules/cd9660/cd9660.ko...(no debugging symbols found)...done.
Loaded symbols for /usr/obj/usr/src/sys/GUIDO/modules/usr/src/sys/modules/cd9660/cd9660.ko
Reading symbols from /usr/obj/usr/src/sys/GUIDO/modules/usr/src/sys/modules/msdosfs/msdosfs.ko...(no debugging symbols found)...done.
Loaded symbols for /usr/obj/usr/src/sys/GUIDO/modules/usr/src/sys/modules/msdosfs/msdosfs.ko
Reading symbols from /usr/obj/usr/src/sys/GUIDO/modules/usr/src/sys/modules/md/md.ko...(no debugging symbols found)...done.
Loaded symbols for /usr/obj/usr/src/sys/GUIDO/modules/usr/src/sys/modules/md/md.ko
Reading symbols from /boot/kernel/snd_emu10k1.ko...
(no debugging symbols found)...done.
Loaded symbols for /boot/kernel/snd_emu10k1.ko
Reading symbols from /boot/kernel/snd_pcm.ko...(no debugging symbols found)...
done.
Loaded symbols for /boot/kernel/snd_pcm.ko
Reading symbols from /boot/kernel/acpi.ko...(no debugging symbols found)...
done.
Loaded symbols for /boot/kernel/acpi.ko
Reading symbols from /usr/obj/usr/src/sys/GUIDO/modules/usr/src/sys/modules/procfs/procfs.ko...(no debugging symbols found)...done.
Loaded symbols for /usr/obj/usr/src/sys/GUIDO/modules/usr/src/sys/modules/procfs/procfs.ko
Reading symbols from /usr/obj/usr/src/sys/GUIDO/modules/usr/src/sys/modules/linp---Type <return> to continue, or q <return> to quit---
rocfs/linprocfs.ko...(no debugging symbols found)...done.
Loaded symbols for /usr/obj/usr/src/sys/GUIDO/modules/usr/src/sys/modules/linprocfs/linprocfs.ko
Reading symbols from /usr/obj/usr/src/sys/GUIDO/modules/usr/src/sys/modules/linux/linux.ko...(no debugging symbols found)...done.
Loaded symbols for /usr/obj/usr/src/sys/GUIDO/modules/usr/src/sys/modules/linux/linux.ko
Reading symbols from /usr/obj/usr/src/sys/GUIDO/modules/usr/src/sys/modules/nfsclient/nfsclient.ko...(no debugging symbols found)...done.
Loaded symbols for /usr/obj/usr/src/sys/GUIDO/modules/usr/src/sys/modules/nfsclient/nfsclient.ko
Reading symbols from /usr/obj/usr/src/sys/GUIDO/modules/usr/src/sys/modules/nfsserver/nfsserver.ko...(no debugging symbols found)...done.
Loaded symbols for /usr/obj/usr/src/sys/GUIDO/modules/usr/src/sys/modules/nfsserver/nfsserver.ko
#0  0xc04a367c in doadump ()
(kgdb) bt
#0  0xc04a367c in doadump ()
#1  0xc04a3c34 in boot ()
#2  0xc04a3f39 in panic ()
#3  0xc0561ca5 in kmem_malloc ()
#4  0xc05704b2 in page_alloc ()
#5  0xc057016d in slab_zalloc ()
#6  0xc0571588 in uma_zone_slab ()
#7  0xc05718c9 in uma_zalloc_internal ()
#8  0xc057249e in uma_large_malloc ()
#9  0xc0499d85 in malloc ()
#10 0xc0545316 in softdep_disk_io_initiation ()
#11 0xc05451e4 in softdep_disk_prewrite ()
#12 0xc0558b05 in ufs_strategy ()
#13 0xc0559747 in ufs_vnoperate ()
#14 0xc04e2541 in ibwrite ()
#15 0xc04e20ac in bwrite ()
#16 0xc04e4310 in vfs_bio_awrite ()
#17 0xc054bf8d in ffs_fsync ()
#18 0xc054b2ab in ffs_sync ()
#19 0xc04f595e in sync_fsync ()
#20 0xc04f28d9 in sched_sync ()
#21 0xc049011d in fork_exit ()
(kgdb) q


# root@guido [/usr/tmp/panic]

exit

Script done on Tue Jun 29 23:04:25 2004

--Boundary_(ID_2aPm6X+1on1n1Tj33Fy+xQ)
Content-type: application/octet-stream; name=dmesg.boot
Content-transfer-encoding: 8bit
Content-disposition: attachment; filename=dmesg.boot



Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0x8
fault code		= supervisor write, page not present
instruction pointer	= 0x8:0xc054288e
stack pointer	        = 0x10:0xd1af49ac
frame pointer	        = 0x10:0xd1af49cc
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		= 970 (bsdtar)
trap number		= 12
panic: page fault

syncing disks, buffers remaining... panic: kmem_malloc(4096): kmem_map too small: 130207744 total allocated
Uptime: 1h13m47s
Dumping 384 MB
 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 320 336 352 368
Dump complete
pfs_vncache_unload(): 1 entries remaining
Shutting down ACPI
Automatic reboot in 15 seconds - press a key on the console to abort
Rebooting...
Copyright (c) 1992-2004 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.2-CURRENT #1: Fri Jun 25 04:03:35 CEST 2004
    root@guido.thuis.klop.ws:/usr/obj/usr/src/sys/GUIDO
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0731000.
Preloaded elf module "/boot/kernel/cd9660.ko" at 0xc07310cc.
Preloaded elf module "/boot/kernel/msdosfs.ko" at 0xc0731178.
Preloaded elf module "/boot/kernel/md.ko" at 0xc0731224.
Preloaded elf module "/boot/kernel/snd_emu10k1.ko" at 0xc07312cc.
Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc073137c.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc0731428.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium III/Pentium III Xeon/Celeron (497.84-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x673  Stepping = 3
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 402653184 (384 MB)
avail memory = 388501504 (370 MB)
random: <entropy source, Software, Yarrow>
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <COMPAQ CPQB053> on motherboard
acpi0: [GIANT-LOCKED]
pcibios: BIOS version 2.10
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xf808-0xf80b on acpi0
cpu0: <ACPI CPU (2 Cx states)> on acpi0
cpu0: Failed to attach throttling P_CNT
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib0: slot 10 INTA is routed to irq 11
pcib0: slot 14 INTA is routed to irq 11
pcib0: slot 20 INTD is routed to irq 11
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pcib0: slot 1 INTA is routed to irq 11
pcib1: slot 0 INTA is routed to irq 11
pci1: <display, VGA> at device 0.0 (no driver attached)
fxp0: <Intel 82558 Pro/100 Ethernet> port 0x2000-0x201f mem 0x40100000-0x401fffff,0x40200000-0x40200fff irq 11 at device 10.0 on pci0
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:50:8b:a3:d9:44
fxp0: [GIANT-LOCKED]
pcm0: <Creative EMU10K1> port 0x2060-0x207f irq 11 at device 14.0 on pci0
pcm0: <TriTech TR28602 AC97 Codec>
isab0: <PCI-ISA bridge> at device 20.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0x2040-0x204f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 20.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x2020-0x203f irq 11 at device 20.2 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
intpm0: <Intel 82371AB Power management controller> port 0xfc00-0xfc0f irq 9 at device 20.3 on pci0
intpm0: I/O mapped fc00
intpm0: intr IRQ 9 enabled revision 0
intpm0: [GIANT-LOCKED]
intsmb0: <Intel PIIX4 SMBUS Interface> on intpm0
smbus0: <System Management Bus> on intsmb0
smb0: <SMBus generic I/O> on smbus0
intpm0: PM I/O mapped f800 
acpi_button0: <Power Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
ppc0 port 0x778-0x77d,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
orm0: <Option ROMs> at iomem 0xe0000-0xe7fff,0xc0000-0xc7fff on isa0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 497837634 Hz quality 800
Timecounters tick every 4.000 msec
ipfw2 initialized, divert enabled, rule-based forwarding enabled, default to accept, logging unlimited
ad0: 9541MB <Maxtor 91024U3> [19386/16/63] at ata0-master UDMA33
acd0: CDROM <Compaq CRN-8241B> at ata1-master WDMA2
Mounting root from ufs:/dev/ad0s1a
WARNING: / was not properly dismounted
WARNING: /var was not properly dismounted
/var: mount pending error: blocks 12 files 3
/var: superblock summary recomputed
WARNING: /usr was not properly dismounted
/usr: mount pending error: blocks 136 files 1
/usr: superblock summary recomputed

--Boundary_(ID_2aPm6X+1on1n1Tj33Fy+xQ)--



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