Bug 19794

Summary: FreeBSD 4.0-Stable crash
Product: Base System Reporter: stuartjc <stuartjc>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-STABLE   
Hardware: Any   
OS: Any   

Description stuartjc 2000-07-09 08:00:02 UTC
This machine has been crashing since I upgraded to 4.0-STABLE via 4.0-RELEASE.

Output kgdb :
(kgdb) where
#0  0xc013f108 in boot ()
#1  0xc013f48c in poweroff_wait ()
#2  0xc0260881 in trap_fatal ()
#3  0xc0260559 in trap_pfault ()
#4  0xc026012b in trap ()
#5  0xc025e748 in pmap_remove_pages ()
#6  0xc0137d17 in exit1 ()
#7  0xc0137b04 in exit1 ()
#8  0xc0260b2d in syscall2 ()
#9  0xc0252ab6 in Xint0x80_syscall ()
Cannot access memory at address 0xbfbff7f8.

Panic reads:

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xc14ebff0
fault code              = supervisor write, page not present
instruction pointer     = 0x8:0xc025e748
stack pointer           = 0x10:0xc6268ed4
frame pointer           = 0x10:0xc6268ee4
code segment            = base rx0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 31182 (cc1)
interrupt mask          = net tty bio cam 
trap number             = 12
panic: page fault


( note that all panics aren't consistent , sometimes the machine simply locks up )

I assumed this was a hardware fault, replaced memory and installed clean on another HD, same problems. 
Installed 2.2.7 and it worked fine.

Fix: 

Don't know. Power Management ? My hardware is the same as it was when I was running 3.4-STABLE, 
and it was , STABLE, sigh.
How-To-Repeat: attempt to make buildworld does it everytime. 
Also crashs when running scheduled locate.updatedb , and to test I ran a 
backup on my /usr and it crashed. SEEMS related to system load.
Comment 1 Will Andrews 2000-07-09 08:13:49 UTC
On Sat, Jul 08, 2000 at 11:58:54PM -0700, stuartjc@dynamite.com.au wrote:
> Output kgdb :
> (kgdb) where
> #0  0xc013f108 in boot ()
> #1  0xc013f48c in poweroff_wait ()
> #2  0xc0260881 in trap_fatal ()
> #3  0xc0260559 in trap_pfault ()
> #4  0xc026012b in trap ()
> #5  0xc025e748 in pmap_remove_pages ()
> #6  0xc0137d17 in exit1 ()
> #7  0xc0137b04 in exit1 ()
> #8  0xc0260b2d in syscall2 ()
> #9  0xc0252ab6 in Xint0x80_syscall ()
> Cannot access memory at address 0xbfbff7f8.
> 
> Panic reads:
> 
> Fatal trap 12: page fault while in kernel mode
> fault virtual address   = 0xc14ebff0
> fault code              = supervisor write, page not present
> instruction pointer     = 0x8:0xc025e748
> stack pointer           = 0x10:0xc6268ed4
> frame pointer           = 0x10:0xc6268ee4
> code segment            = base rx0, limit 0xfffff, type 0x1b
>                         = DPL 0, pres 1, def32 1, gran 1
> processor eflags        = interrupt enabled, resume, IOPL = 0
> current process         = 31182 (cc1)
> interrupt mask          = net tty bio cam 
> trap number             = 12
> panic: page fault

Could you provide your kernel configuration file, a more detailed
description of your hardware, etc. ?  Also, a copy of
/var/run/dmesg.boot would be nice to see what hardware the kernel hooks
up with.  Bug reports are fairly unhelpful when they don't come with any
sort of clue as to how to reproduce them.

Thanks,

-- 
Will Andrews <andrewsw@purdue.edu> <will@FreeBSD.org>
GCS/E/S @d- s+:+>+:- a--->+++ C++ UB++++ P+ L- E--- W+++ !N !o ?K w---
?O M+ V-- PS+ PE++ Y+ PGP+>+++ t++ 5 X++ R+ tv+ b++>++++ DI+++ D+ 
G++>+++ e->++++ h! r-->+++ y?
Comment 2 Will Andrews 2000-07-10 03:32:19 UTC
Originator submitted this information to me:

----- Forwarded message from StuBerger <stuartjc@dynamite.com.au> -----

From: StuBerger <stuartjc@dynamite.com.au>
Reply-To: stuartjc@dynamite.com.au
To: Will Andrews <andrews@technologist.com>
Subject: Re: kern/19794: FreeBSD 4.0-Stable crash
Date: Mon, 10 Jul 2000 08:07:10 +1000
X-Mailer: KMail [version 1.0.28]

On Sun, 09 Jul 2000, you wrote:

> 
> Could you provide your kernel configuration file, a more detailed
> description of your hardware, etc. ?  Also, a copy of
> /var/run/dmesg.boot would be nice to see what hardware the kernel hooks
> up with.  Bug reports are fairly unhelpful when they don't come with any
> sort of clue as to how to reproduce them.
> 

Output of dmesg:
Copyright (c) 1992-2000 The FreeBSD Project.
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California. All rights reserved.
FreeBSD 4.0-STABLE #2: Sun Jun 25 12:44:33 EST 2000
    root@ihmij.net.au:/usr/src/sys/compile/SNOWGUM
Timecounter "i8254"  frequency 1193182 Hz
CPU: AMD-K6(tm) 3D processor (300.68-MHz 586-class CPU)
  Origin = "AuthenticAMD"  Id = 0x584  Stepping = 4
  Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
  AMD Features=0x80000800<SYSCALL,3DNow!>
real memory  = 67108864 (65536K bytes)
avail memory = 62304256 (60844K bytes)
md0: Malloc disk
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <SiS 5591 host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
atapci0: <SiS 5591 ATA33 controller> port 0x4000-0x400f,0x374-0x377,0x170-0x177,
0x3f4-0x3f7,0x1f0-0x1f7 irq 14 at device 0.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
isab0: <SiS 85c503 PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
pci0: <unknown card> (vendor=0x1039, dev=0x0009) at 1.1
pcib2: <PCI to PCI bridge (vendor=1039 device=0001)> at device 2.0 on pci0
pci1: <PCI bus> on pcib2
pci1: <Intel i740 AGP SVGA controller> at 0.0 irq 11
pcib1: <SiS 5591 host to AGP bridge> on motherboard
pci2: <PCI bus> on pcib1
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
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 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: Generic chipset (NIBBLE-only) in COMPATIBLE mode             
ppi0: <Parallel I/O> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
plip0: <PLIP network interface> on ppbus0
ad0: 16446MB <ST317221A> [33416/16/63] at ata0-master using UDMA33
ad1: 4103MB <ST34321A> [8894/15/63] at ata0-slave using UDMA33
acd0: CDROM <CD-524EA> at ata1-master using PIO3
Mounting root from ufs:ad0s1e      

---
That pretty much describes my hardware as well ( I'm just
staring at the hardware now! ) .  The only item I don't understand is 
pci0: <unknown card> (vendor=0x1039, dev=0x0009) at 1.1
( where in my SB Live! Sound Card used to sit, which I pulled out due
to the possibility of it causing the prob, which it didn't  )

CPU: K6/2 300, M/B PCI 100 MHz , PS/2 Mouse, 2 IDE HDs, and an IDE
ATAPI CDROM, intel i740 Video Card.

My Kernel Config, well, to summarise I added a device pcm0 for my
soundcard, and removed some things id didn't need. 
I'll include the file for completeness eeh, it's long. The problem
also occurs with the GENERIC kernel as well, however i'd need to boot
it up again to confirm that, I modified my H/W config since then.

# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.246 2000/03/09 16:32:55 jlemon Exp $

machine		i386
cpu		I586_CPU
cpu		I686_CPU
ident		SNOWGUM
maxusers	32

#makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols

options 	MATH_EMULATE		#Support for x87 emulation
options 	INET			#InterNETworking
options 	INET6			#IPv6 communications protocols
options 	FFS			#Berkeley Fast Filesystem
options 	FFS_ROOT		#FFS usable as root device [keep this!]
options 	MFS			#Memory Filesystem
options 	MD_ROOT			#MD is a potential root device
options 	NFS			#Network Filesystem
options 	NFS_ROOT		#NFS usable as root device, NFS required
options 	MSDOSFS			#MSDOS Filesystem
options 	CD9660			#ISO 9660 Filesystem
options 	CD9660_ROOT		#CD-ROM usable as root, CD9660 required
options 	PROCFS			#Process filesystem
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	SCSI_DELAY=15000	#Delay (in ms) before probing SCSI
options 	UCONSOLE		#Allow users to grab the console
options 	USERCONFIG		#boot -c editor
options 	VISUAL_USERCONFIG	#visual boot -c editor
options 	KTRACE			#ktrace(1) support
options 	SYSVSHM			#SYSV-style shared memory
options 	SYSVMSG			#SYSV-style message queues
options 	SYSVSEM			#SYSV-style semaphores
options 	P1003_1B		#Posix P1003_1B real-time extentions
options 	_KPOSIX_PRIORITY_SCHEDULING
options		ICMP_BANDLIM		#Rate limit bad replies

# 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

device		isa
device		eisa
device		pci

# Floppy drives
device		fdc0	at isa? port IO_FD1 irq 6 drq 2
device		fd0	at fdc0 drive 0
# device		fd1	at fdc0 drive 1

# ATA and ATAPI devices
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
device		atapicd			# ATAPI CDROM drives
# device		atapifd			# ATAPI floppy drives
# device		atapist			# ATAPI tape drives
options 	ATA_STATIC_ID		#Static device numbering
#options 	ATA_ENABLE_ATAPI_DMA	#Enable DMA on ATAPI devices

# SCSI Controllers
# device		ahb		# EISA AHA1742 family
# device		ahc		# AHA2940 and onboard AIC7xxx devices
# device		amd		# AMD 53C974 (Teckram DC-390(T))
# device		dpt		# DPT Smartcache - See LINT for options!
# device		isp		# Qlogic family
# device		ncr		# NCR/Symbios Logic
# device		sym		# NCR/Symbios Logic (newer chipsets)

# device		adv0	at isa?
# device		adw
# device		bt0	at isa?
# device		aha0	at isa?
# device		aic0	at isa?

# SCSI peripherals
# device		scbus		# SCSI bus (required)
# device		da		# Direct Access (disks)
# device		sa		# Sequential Access (tape etc)
# device		cd		# CD
# device		pass		# Passthrough device (direct SCSI access)

# RAID controllers
# device		ida		# Compaq Smart RAID
# device		amr		# AMI MegaRAID
# device		mlx		# Mylex DAC960 family

# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc0	at isa? port IO_KBD
device		atkbd0	at atkbdc? irq 1
device		psm0	at atkbdc? irq 12

device		vga0	at isa?

# splash screen/screen saver
pseudo-device	splash

# syscons is the default console driver, resembling an SCO console
device		sc0	at isa?

# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
#device		vt0	at isa?
#options 	XSERVER			# support for X server on a vt console
#options 	FAT_CURSOR		# start with block cursor
# If you have a ThinkPAD, uncomment this along with the rest of the PCVT lines
#options 	PCVT_SCANSET=2		# IBM keyboards are non-std

# Floating point support - do not disable.
device		npx0	at nexus? port IO_NPX irq 13

# Power management support (see LINT for more options)
device		apm0    at nexus? disable flags 0x20 # Advanced Power Management

# PCCARD (PCMCIA) support
# device		card
# device		pcic0	at isa? irq 10 port 0x3e0 iomem 0xd0000
# device		pcic1	at isa? irq 11 port 0x3e2 iomem 0xd4000 disable

# Serial (COM) ports
device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
device		sio1	at isa? port IO_COM2 irq 3
device		sio2	at isa? disable port IO_COM3 irq 5
device		sio3	at isa? disable port IO_COM4 irq 9

# Parallel port
device		ppc0	at isa? irq 7
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer
device		plip		# TCP/IP over parallel
device		ppi		# Parallel port interface device
#device		vpo		# Requires scbus and da


# PCI Ethernet NICs.
# device		de		# DEC/Intel DC21x4x (``Tulip'')
# device		fxp		# Intel EtherExpress PRO/100B (82557, 82558)
# device		tx		# SMC 9432TX (83c170 ``EPIC'')
# device		vx		# 3Com 3c590, 3c595 (``Vortex'')
# device		wx		# Intel Gigabit Ethernet Card (``Wiseman'')

# PCI Ethernet NICs that use the common MII bus controller code.
device		miibus		# MII bus support
device		dc		# DEC/Intel 21143 and various workalikes
device		rl		# RealTek 8129/8139
device		sf		# Adaptec AIC-6915 (``Starfire'')
device		sis		# Silicon Integrated Systems SiS 900/SiS 7016
device		ste		# Sundance ST201 (D-Link DFE-550TX)
device		tl		# Texas Instruments ThunderLAN
device		vr		# VIA Rhine, Rhine II
device		wb		# Winbond W89C840F
device		xl		# 3Com 3c90x (``Boomerang'', ``Cyclone'')

# ISA Ethernet NICs.
device		ed0	at isa? port 0x280 irq 10 iomem 0xd8000
device		ex
device		ep
# WaveLAN/IEEE 802.11 wireless NICs. Note: the WaveLAN/IEEE really
# exists only as a PCMCIA device, so there is no ISA attatement needed
# and resources will always be dynamically assigned by the pccard code.
# device		wi
# Aironet 4500/4800 802.11 wireless NICs. Note: the declaration below will
# work for PCMCIA and PCI cards, as well as ISA cards set to ISA PnP
# mode (the factory default). If you set the switches on your ISA
# card for a manually chosen I/O address and IRQ, you must specify
# those paremeters here.
# device		an
# The probe order of these is presently determined by i386/isa/isa_compat.c.
# device		ie0	at isa? port 0x300 irq 10 iomem 0xd0000
# device		fe0	at isa? port 0x300
# device		le0	at isa? port 0x300 irq 5 iomem 0xd0000
# device		lnc0	at isa? port 0x280 irq 10 drq 0
# device		cs0	at isa? port 0x300
# device		sn0	at isa? port 0x300 irq 10
# requires PCCARD (PCMCIA) support to be activated
# device		xe0	at isa?

# Pseudo devices - the number indicates how many units to allocated.
pseudo-device	loop		# Network loopback
pseudo-device	ether		# Ethernet support
pseudo-device	sl	1	# Kernel SLIP
pseudo-device	ppp	1	# Kernel PPP
pseudo-device	tun		# Packet tunnel.
pseudo-device	pty		# Pseudo-ttys (telnet etc)
pseudo-device	md		# Memory "disks"
pseudo-device	gif	4	# IPv6 and IPv4 tunneling
pseudo-device	faith	1	# IPv6-to-IPv4 relaying (translation)

# The `bpf' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# pseudo-device	bpf		#Berkeley packet filter

# USB support
#device		uhci		# UHCI PCI->USB interface
#device		ohci		# OHCI PCI->USB interface
#device		usb		# USB Bus (required)
#device		ugen		# Generic
#device		uhid		# "Human Interface Devices"
#device		ukbd		# Keyboard
#device		ulpt		# Printer
#device		umass		# Disks/Mass storage - Requires scbus and da
#device		ums		# Mouse
# USB Ethernet, requires mii
#device		aue		# ADMtek USB ethernet
#device		cue		# CATC USB ethernet
#device		kue		# Kawasaki LSI USB ethernet

# Hopeful of SBLive PnP Support
device pcm

----- End forwarded message -----

-- 
Will Andrews <andrewsw@purdue.edu> <will@FreeBSD.org>
GCS/E/S @d- s+:+>+:- a--->+++ C++ UB++++ P+ L- E--- W+++ !N !o ?K w---
?O M+ V-- PS+ PE++ Y+ PGP+>+++ t++ 5 X++ R+ tv+ b++>++++ DI+++ D+ 
G++>+++ e->++++ h! r-->+++ y?
Comment 3 iedowse freebsd_committer freebsd_triage 2001-08-13 00:28:17 UTC
State Changed
From-To: open->feedback


Does this problem still occur with more recent -stable sources?
Comment 4 iedowse freebsd_committer freebsd_triage 2001-08-25 23:23:12 UTC
State Changed
From-To: feedback->closed


Submitter says that this can be closed. Thanks!