Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Feb 1998 09:13:15 +0100 (CET)
From:      Andrzej Bialecki <abial@nask.pl>
To:        freebsd-current@FreeBSD.ORG
Cc:        dyson@FreeBSD.ORG
Subject:   Crash in -current VM
Message-ID:  <Pine.NEB.3.95.980211085052.12470A-300000@korin.warman.org.pl>

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

[-- Attachment #1 --]
Hi!

Bad news, at least for me. The system is current as of yesterday
(1998.02.10, ca. 2100 GMT). `dmesg` is attached, as well as kernel config
file.

The situation was as follows: I put only 8MB RAM into machine to perform
some tests. I caused extremely heavy paging (started X, Netscape, make
world etc...). I have 65MB of swap, and it wasn't full at the end, but the
system wasn't doing almost anything useful except swapping :-). I didn't
use NFS. I mount a DOS partition (and of course several FFS ones).

The problem is very repeatable: after some time (from 1-20min) the system
locks up (I have only local access to this machine, so if it was in X I
was locked out, and had to push Reset - keyboard reset wouldn't work), and
drops me into ddb.

I was once in gdb and tried to debug previous crash dump when the machine
locked - after pressing ^T gdb said it was sitting in [vmwait]. Next time
I managed to get some info from the crash dump. Here it is: 

# gdb -k kernel.5 vmcore.5
GDB is free software and you are welcome to 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.
GDB 4.16 (i386-unknown-freebsd), 
Copyright 1996 Free Software Foundation, Inc...(no debugging symbols found)...
IdlePTD 221000
current pcb at 1d2dcc
panicstr: vm_object_deallocate: object deallocated too many times: %d
panic messages:
---
panic: vm_object_deallocate: object deallocated too many times: 1
panic: from debugger

dumping to dev 30001, offset 114688
dump 7 6 5 4 3 2 1 
---
#0  0xf01204ab in boot ()
(kgdb) where
#0  0xf01204ab in boot ()
#1  0xf0120797 in panic ()
#2  0xf01013e5 in db_panic ()
#3  0xf01012d5 in db_command ()
#4  0xf0101452 in db_command_loop ()
#5  0xf0103b13 in db_trap ()
#6  0xf018e401 in kdb_trap ()
#7  0xf0198ff8 in trap ()
#8  0xf018e62d in Debugger ()
#9  0xf012078e in panic ()
#10 0xf0181fa3 in vm_object_deallocate ()
#11 0xf017f86b in vm_map_entry_delete ()
#12 0xf017f9e5 in vm_map_delete ()
#13 0xf017fa69 in vm_map_remove ()
#14 0xf01195d8 in exit1 ()
#15 0xf0121a4a in sigexit ()
#16 0xf0121847 in postsig ()
#17 0xf0199094 in trap ()
#18 0x85e4 in ?? ()
Cannot access memory at address 0xefbfdc8c.
(kgdb) quit

As I said, the problem is very repeatable - if you need more details, I
can provide them (if you tell me what to do with gdb/config/etc... ;-),
though I would want to make a fresh backup first - last time it crashed I
had to run fsck several times, and I'm still not sure it recovered all
the pieces...

Andrzej Bialecki

---------------------+---------------------------------------------------------
abial@warman.org.pl  | if(halt_per_mth > 0) { fetch("http://www.freebsd.org") }
Research & Academic  | "Be open-minded, but don't let your brains to fall out."
Network in Poland    | All of the above (and more) is just my personal opinion.
---------------------+---------------------------------------------------------

[-- Attachment #2 --]
#
# GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks
#
# For more information read the handbook part System Administration -> 
# Configuring the FreeBSD Kernel -> The Configuration File. 
# The handbook is available in /usr/share/doc/handbook or online as
# latest version from the FreeBSD World Wide Web server 
# <URL:http://www.FreeBSD.ORG/>;
#
# An exhaustive list of options and more detailed explanations of the 
# device lines is present in the ./LINT configuration file. If you are 
# in doubt as to the purpose or necessity of a line, check first in LINT.
#
#	$Id: GENERIC,v 1.88 1997/03/13 19:03:58 bde Exp $

machine		"i386"
cpu		"I486_CPU"
cpu		"I586_CPU"
ident		TUNE
maxusers	30

options		INET			#InterNETworking
options		FFS			#Berkeley Fast Filesystem
options		MSDOSFS			#MSDOS Filesystem
options		"CD9660"		#ISO 9660 Filesystem
options		PROCFS			#Process filesystem
options		KERNFS			#Process filesystem
#options		DEVFS
options		"COMPAT_43"		#Compatible with BSD 4.3 [KEEP THIS!]
options		UCONSOLE		#Allow users to grab the console
options		USERCONFIG		#boot -c editor
options		VISUAL_USERCONFIG	#visual boot -c editor
options		USER_LDT
options		SYSVSHM
options		SYSVSEM
options		SYSVMSG
options		KTRACE
options		DDB
options		"AUTO_EOI_1"
options		"AUTO_EOI_2"
#options		COMPAT_LINUX
options		"EXT2FS"
#options		"IBCS2"
options		"VM86"

config		kernel	root on wd0 swap on generic

controller	isa0
controller	pci0

controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk		fd0	at fdc0 drive 0

controller	wdc0	at isa? port "IO_WD1" bio irq 14 flags 0xa0ffa0ff vector wdintr
disk		wd0	at wdc0 drive 0
disk		wd1	at wdc0 drive 1

controller	wdc1	at isa? port "IO_WD2" bio irq 15 flags 0xa0ffa0ff vector wdintr
disk		wd2	at wdc1 drive 0
disk		wd3	at wdc1 drive 1

options		ATAPI		#Enable ATAPI support for IDE bus
options		ATAPI_STATIC	#Don't do it as an LKM
device		wcd0	#IDE CD-ROM


# syscons is the default console driver, resembling an SCO console
device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr

device		npx0	at isa? port "IO_NPX" irq 13 vector npxintr

device		sio0	at isa? port "IO_COM1" tty irq 4 vector siointr
device		sio1	at isa? port "IO_COM2" tty irq 3 vector siointr

device		lpt0	at isa? port? tty irq 7 vector lptintr

controller pnp0
#controller snd0
#device gus0 at isa? vector gusintr
#device pcm0 at isa? port ? tty irq 10 drq 1 flags 0x0 vector pcmintr

#controller ppbus0
#device nlpt0 at ppbus?

#controller ppc0 at isa? disable port ? irq 7 vector ppcintr

device ed0 at isa? port 0x280 irq 10 vector edintr

pseudo-device	loop
pseudo-device	ether
#pseudo-device	sl	1
pseudo-device	bpfilter	4
#pseudo-device	disc
pseudo-device	speaker
pseudo-device	vn
pseudo-device	snp	2
# ijppp uses tun instead of ppp device
#pseudo-device	ppp	1
pseudo-device	tun	1
pseudo-device	pty	16
pseudo-device	gzip		# Exec gzipped a.out's

[-- Attachment #3 --]
Copyright (c) 1992-1998 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California. All rights reserved.
FreeBSD 3.0-CURRENT #0: Tue Feb 10 20:26:51 MET 1998
    root@abial.warman.com.pl:/usr/src/sys/compile/TUNE
Calibrating clock(s) ... TSC clock: 100236930 Hz, i8254 clock: 1193298 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
CLK_USE_TSC_CALIBRATION not specified - using old calibration method
CPU: AMD-K5(tm) Processor (100.23-MHz 586-class CPU)
  Origin = "AuthenticAMD"  Id = 0x511  Stepping=1
  Features=0x21bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE>
Data TLB: 128 entries, 4-way associative
Instruction TLB: 0 entries, 0-way associative
L1 data cache: 8 kbytes, 32 bytes/line, 1 lines/tag, 4-way associative
L1 instruction cache: 16 kbytes, 32 bytes/line, 1 lines/tag, 4-way associative
real memory  = 8388608 (8192K bytes)
Physical memory chunk(s):
0x00001000 - 0x0009ffff, 651264 bytes (159 pages)
0x00224000 - 0x007fdfff, 6135808 bytes (1498 pages)
avail memory = 6414336 (6264K bytes)
Found BIOS32 Service Directory header at 0xf00fb130
Entry = 0xfb5a0 (0xf00fb5a0)  Rev = 0  Len = 1
PCI BIOS entry at 0xb5d0
Other BIOS signatures found:
ACPI: 00000000
$PnP: 000fc2c0
pci_open(1):	mode 1 addr port (0x0cf8) is 0x8000005c
pci_open(1a):	mode1res=0x80000000 (0x80000000)
pci_cfgcheck:	device 0 [class=060000] [hdr=00] is there (id=12508086)
Probing for devices on PCI bus 0:
found->	vendor=0x8086, dev=0x1250, revid=0x03
	class=06-00-00, hdrtype=0x00, mfdev=0
chip0: <Intel 82439> rev 0x03 on pci0.0.0
found->	vendor=0x8086, dev=0x7000, revid=0x01
	class=06-01-00, hdrtype=0x00, mfdev=1
chip1: <Intel 82371SB PCI to ISA bridge> rev 0x01 on pci0.7.0
	I/O Recovery Timing: 8-bit 1 clocks, 16-bit 1 clocks
	Extended BIOS: enabled
	Lower BIOS: disabled
	Coprocessor IRQ13: enabled
	Mouse IRQ12: disabled
	Interrupt Routing: A: disabled, B: disabled, C: IRQ10, D: disabled
		MB0: disabled, MB1: 
found->	vendor=0x8086, dev=0x7010, revid=0x00
	class=01-01-80, hdrtype=0x00, mfdev=0
ide_pci0: <Intel PIIX3 Bus-master IDE controller> rev 0x00 on pci0.7.1
intel_piix_status: primary master sample = 3, master recovery = 1
intel_piix_status: primary master fastDMAonly disabled, pre/post enabled,
intel_piix_status:  IORDY sampling enabled,
intel_piix_status:  fast PIO enabled
intel_piix_status: primary slave sample = 3, slave recovery = 1
intel_piix_status: primary slave fastDMAonly disabled, pre/post enabled,
intel_piix_status:  IORDY sampling enabled,
intel_piix_status:  fast PIO enabled
ide_pci: busmaster 0 status: 04 from port: 00009002
intel_piix_status: secondary master sample = 4, master recovery = 4
intel_piix_status: secondary master fastDMAonly disabled, pre/post enabled,
intel_piix_status:  IORDY sampling enabled,
intel_piix_status:  fast PIO enabled
intel_piix_status: secondary slave sample = 5, slave recovery = 4
intel_piix_status: secondary slave fastDMAonly disabled, pre/post disabled,
intel_piix_status:  IORDY sampling disabled,
intel_piix_status:  fast PIO disabled
ide_pci: busmaster 1 status: 04 from port: 0000900a
found->	vendor=0x5333, dev=0x5631, revid=0x06
	class=03-00-00, hdrtype=0x00, mfdev=0
	intpin=a, irq=10
	map[0]: type 1, range 32, base e0000000, size 26
vga0: <S3 ViRGE graphics accelerator> rev 0x06 int a irq 10 on pci0.18.0
Initializing PnP override table
Probing for PnP devices:
Trying Read_Port at 203
CSN 1 Vendor ID: GRV0001 [0x0100561e] Serial 0xffffffff
Called nullpnp_probe with tag 0x00000001, type 0x0100561e
Probing for devices on the ISA bus:
sc0: the current keyboard controller command byte 0065
kbdio: DIAGNOSE status:0055
kbdio: TEST_KBD_PORT status:0000
kbdio: RESET_KBD return code:00fa
kbdio: RESET_KBD status:00aa
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: BIOS video mode:3
sc0: VGA registers upon power-up
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0e 0f 00 00 07 80 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
sc0: video mode:24
sc0: VGA registers in BIOS for mode:24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
sc0: VGA registers to be used for mode:24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
sc0: rows_offset:1
sc0: VGA color <16 virtual consoles, flags=0x0>
ed0 not found at 0x280
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
lpt0 at 0x378-0x37f irq 7 on isa
lpt0: Interrupt-driven port
lp0: TCP/IP capable interface
bpf: lp0 attached
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1.44MB 3.5in
wdc0 at 0x1f0-0x1f7 irq 14 flags 0xa0ffa0ff on isa
intel_piix_dmainit: setting multiword DMA mode 2
wd0: wdsetmode() setting transfer mode to 22
intel_piix_status: primary slave sample = 3, slave recovery = 1
intel_piix_status: primary slave fastDMAonly disabled, pre/post enabled,
intel_piix_status:  IORDY sampling enabled,
intel_piix_status:  fast PIO enabled
wdc0: unit 0 (wd0): <WDC AC22500L>, DMA, 32-bit, multi-block-16
wd0: 2441MB (4999680 sectors), 4960 cyls, 16 heads, 63 S/T, 512 B/S
wd0: ATA INQUIRE valid = 0003, dmamword = 0407, apio = 0003, udma = 0000
intel_piix_dmainit: setting multiword DMA mode 2
wd1: wdsetmode() setting transfer mode to 22
intel_piix_status: primary slave sample = 3, slave recovery = 1
intel_piix_status: primary slave fastDMAonly disabled, pre/post enabled,
intel_piix_status:  IORDY sampling enabled,
intel_piix_status:  fast PIO enabled
wdc0: unit 1 (wd1): <Conner Peripherals 850MB - CFS850A>, DMA, 32-bit, multi-block-16
wd1: 812MB (1664208 sectors), 1651 cyls, 16 heads, 63 S/T, 512 B/S
wd1: ATA INQUIRE valid = 0003, dmamword = 0307, apio = 0003, udma = 0000
wdc1 at 0x170-0x177 irq 15 flags 0xa0ffa0ff on isa
wdc1: unit 0 (atapi): <iPnoee rDCR-MOA ATIPoMed lRDU-1A42 X2000/2E0.A0>, removable, dma, iordis
wcd0: 689Kb/sec, 128Kb cache, audio play, 256 volume levels, ejectable tray
wcd0: 120mm audio disc loaded, unlocked
npx0 on motherboard
npx0: INT 16 interface
imasks: bio c008c040, tty c003009a, net c0060000
BIOS Geometries:
 0:026a7f3f 0..618=619 cylinders, 0..127=128 heads, 1..63=63 sectors
 1:03371f3f 0..823=824 cylinders, 0..31=32 heads, 1..63=63 sectors
 0 accounted for
Device configuration finished.
bpf: tun0 attached
bpf: lo0 attached
Considering FFS root f/s.
changing root device to wd0a
wd0s1: type 0x6, start 63, end = 1024127, size 1024065 : OK
wd0s2: type 0xa5, start 1024128, end = 3064319, size 2040192 : OK
wd0s3: type 0x63, start 3064320, end = 4080383, size 1016064 : OK
wd0s4: type 0x5, start 4080384, end = 4991615, size 911232 : OK
wd0s5: type 0x6, start 4080447, end = 4991615, size 911169 : OK
wd1s1: type 0x81, start 63, end = 133055, size 132993 : OK
wd1s2: type 0xa5, start 133056, end = 1663199, size 1530144 : OK
wd1s1: type 0x81, start 63, end = 133055, size 132993 : OK
wd1s2: type 0xa5, start 133056, end = 1663199, size 1530144 : OK

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.95.980211085052.12470A-300000>