Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 May 1996 14:19:05 -0500 (EST)
From:      Richard J Kuhns <rjk@grauel.com>
To:        freebsd-bugs@freebsd.org
Cc:        seb@wintek.com
Subject:   panic: page fault under 2.1-RELEASE
Message-ID:  <199605211919.OAA16442@watson.grauel.com>

next in thread | raw e-mail | index | archive | help
Our ISP is trying to get a news server going using FreeBSD, and is having
some problems.  He's installed inn from the ports collection, but can't
seem to keep the machine running for more than a few hours at a time.  He's
tried several combinations of SCSI cards/cables, but it hasn't made any
difference so far.

The most recent crash did terrible things to one of the file systems; fsck
reports files with billions of blocks, unknown file types, and more.

I'm enclosing the kernel config file, dmesg output, and a stack backtrace
from the kernel dump.  The kernel was configured with "config -g" and
compiled with "-O2 -m486 -fno-strength-reduce -pipe".

Any help would be *greatly* appreciated; they're trying to use FreeBSD at
least in part due to my bragging about how well it works....

Config file:

===
#
# GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks
#
#	$Id: GENERIC,v 1.46.2.6 1995/10/25 17:29:51 jkh Exp $
#

machine		"i386"
cpu		"I486_CPU"
ident		NEWS
maxusers	10

options		MATH_EMULATE		#Support for x87 emulation
options		INET			#InterNETworking
options		FFS			#Berkeley Fast Filesystem
options		"CD9660"		#ISO 9660 Filesystem
options		PROCFS			#Process filesystem
options		"COMPAT_43"		#Compatible with BSD 4.3
options		"SCSI_DELAY=5"		#Be pessimistic about Joe SCSI device
options		BOUNCE_BUFFERS		#include support for DMA bounce buffers
options		UCONSOLE		#Allow users to grab the console

options		SYSVSHM
options		SYSVSEM
options		SYSVMSG

config		kernel	root on wd0 

controller	isa0

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 vector wdintr
disk		wd0	at wdc0 drive 0
disk		wd1	at wdc0 drive 1

#options         ATAPI   #Enable ATAPI support for IDE bus
#device          wcd0    #IDE CD-ROM

controller	aha0	at isa? port "IO_AHA0" bio irq ? drq 5 vector ahaintr
controller	aha1	at isa? port "IO_AHA1" bio irq ? drq 6 vector ahaintr

controller	scbus0

device		sd0

device		st0

device		cd0	#Only need one of these, the code dynamically grows

# syscons is the default console driver, resembling an SCO console
device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr
# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
#device		vt0	at isa? port "IO_KBD" tty irq 1 vector pcrint
#options		"PCVT_FREEBSD=210"	# pcvt running on FreeBSD 2.1
#options		XSERVER			# include code for XFree86

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

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

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

# Order is important here due to intrusive probes, do *not* alphabetize
# this list of network interfaces until the probes have been fixed.
# Right now it appears that the ie0 must be probed before ep0. See
# revision 1.20 of this file.
device ed0 at isa? port 0x300 net irq  5 iomem 0xd8000 vector edintr

pseudo-device	loop
pseudo-device	ether
pseudo-device	log
# 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
===

dmesg output:

===
FreeBSD 2.1.0-RELEASE #0: Mon May 20 10:16:21 EST 1996
    rjk@news.wintek.com:/usr/src/sys/compile/NEWS
CPU: i486DX (486-class CPU)
  Origin = "AuthenticAMD"  Id = 0x494
real memory  = 67108864 (65536K bytes)
avail memory = 63295488 (61812K bytes)
Probing for devices on the ISA bus:
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: VGA color <16 virtual consoles, flags=0x0>
ed0 at 0x300-0x31f irq 5 maddr 0xd8000 msize 16384 on isa
ed0: address 00:00:c0:da:94:b5, type SMC8216/SMC8216C (16 bit) 
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16450
lpt0 at 0x378-0x37f irq 7 on isa
lpt0: Interrupt-driven port
lp0: TCP/IP capable interface
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: NEC 765
fd0: 1.44MB 3.5in
wdc0 at 0x1f0-0x1f7 irq 14 on isa
wdc0: unit 0 (wd0): <M1614TA>
wd0: 1040MB (2130912 sectors), 2114 cyls, 16 heads, 63 S/T, 512 B/S
aha0 at 0x330-0x333 irq 11 drq 5 on isa
aha0 waiting for scsi devices to settle
(aha0:0:0): "MICROP 2210-09MZ1001905 HQ30" type 0 fixed SCSI 2
sd0(aha0:0:0): Direct-Access 1008MB (2065250 512 byte sectors)
aha1 at 0x334-0x337 irq 12 drq 6 on isa
aha1 waiting for scsi devices to settle
(aha1:0:0): "MICROP 3243-19MZ  Q4D HT02" type 0 fixed SCSI 2
sd1(aha1:0:0): Direct-Access 4095MB (8388315 512 byte sectors)
npx0 on motherboard
npx0: INT 16 interface
WARNING: / was not properly dismounted.
WARNING: R/W mount of /var/tmp denied. Filesystem is not clean - run fsck.
===

kernel backtrace:

===
Script started on Tue May 21 13:49:35 1996
$ cd /var/crash
$ ls -l
total 142936
-rw-r--r--  1 root  wheel         2 May 21 11:44 bounds
-rw-r--r--  1 root  wheel   6014053 May 21 11:46 kernel.2
-rw-rw-r--  1 root  wheel         5 Nov 16  1995 minfree
-rw-r--r--  1 root  wheel  67108864 May 21 11:46 vmcore.2
$ gdb -k kernel.2 vmcore.2
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.13 (i386-unknown-freebsd), 
Copyright 1994 Free Software Foundation, Inc...
IdlePTD 1ac000
current pcb at 1a1d6c
panic: page fault
#0  boot (howto=260) at ../../i386/i386/machdep.c:892
892					dumppcb.pcb_ptd = rcr3();
(kgdb) bt
#0  boot (howto=260) at ../../i386/i386/machdep.c:892
#1  0xf0114aab in panic (fmt=0xf0178b7c "page fault")
    at ../../kern/subr_prf.c:124
#2  0xf017973f in trap_fatal (frame=0xf0196b44) at ../../i386/i386/trap.c:745
#3  0xf0179299 in trap_pfault (frame=0xf0196b44, usermode=0)
    at ../../i386/i386/trap.c:667
#4  0xf0178ecb in trap (frame={tf_es = -266797040, tf_ds = -266862576, 
      tf_edi = 1, tf_esi = -266769316, tf_ebp = -266769456, 
      tf_isp = -266938045, tf_ebx = 1, tf_edx = 0, tf_ecx = 0, tf_eax = 4096, 
      tf_trapno = 12, tf_err = 0, tf_eip = -266938045, tf_cs = -266862584, 
      tf_eflags = 66118, tf_esp = -250297728, tf_ss = -250297728})
    at ../../i386/i386/trap.c:307
#5  0xf016e6ed in calltrap ()
#6  0xf016d943 in vnode_pager_output (vnp=0xf112f8a0, m=0xf0196c5c, count=1, 
    rtvals=0xf0196c60) at ../../vm/vnode_pager.c:974
#7  0xf016ca1c in vnode_pager_putmulti (pager=0xf114c280, m=0xf0196c5c, c=1, 
    sync=1, rtvals=0xf0196c60) at ../../vm/vnode_pager.c:291
#8  0xf016bccb in vm_pager_put_pages (pager=0xf114c280, m=0xf0196c5c, count=1, 
    sync=1, rtvals=0xf0196c60) at ../../vm/vm_pager.c:228
#9  0xf016aa80 in vm_pageout_clean (m=0xf0295e48, sync=2)
    at ../../vm/vm_pageout.c:271
#10 0xf01674df in _vm_object_page_clean (object=0xf1165f00, start=0, end=0, 
    syncio=1) at ../../vm/vm_object.c:534
#11 0xf012ded2 in vfs_msync (mp=0xf10f4c00, flags=2)
    at ../../kern/vfs_subr.c:1543
#12 0xf012e48c in sync (p=0xf01a5178, uap=0x0, retval=0x0)
    at ../../kern/vfs_syscalls.c:335
#13 0xf0170dd0 in boot (howto=256) at ../../i386/i386/machdep.c:851
#14 0xf0114aab in panic (fmt=0xf0178b7c "page fault")
    at ../../kern/subr_prf.c:124
#15 0xf017973f in trap_fatal (frame=0xf0196dfc) at ../../i386/i386/trap.c:745
#16 0xf0179299 in trap_pfault (frame=0xf0196dfc, usermode=0)
    at ../../i386/i386/trap.c:667
#17 0xf0178ecb in trap (frame={tf_es = 16, tf_ds = 16, tf_edi = 12, 
      tf_esi = -250408192, tf_ebp = -266768828, tf_isp = -267318884, 
      tf_ebx = -250408192, tf_edx = 0, tf_ecx = 0, tf_eax = -2147483648, 
      tf_trapno = 12, tf_err = 0, tf_eip = -267318884, tf_cs = -266797048, 
      tf_eflags = 66054, tf_esp = -250408192, tf_ss = -1})
    at ../../i386/i386/trap.c:307
#18 0xf016e6ed in calltrap ()
#19 0xf011099c in updatepri (p=0xf1131300) at ../../kern/kern_synch.c:234
#20 0xf0111170 in setrunnable (p=0xf1131300) at ../../kern/kern_synch.c:648
#21 0xf0116b5a in selwakeup (sip=0xf01a17ec) at ../../kern/sys_generic.c:715
#22 0xf0114906 in logwakeup () at ../../kern/subr_log.c:168
#23 0xf0114d86 in printf (
    fmt=0xf01792ce "\n\nFatal trap %d: %s while in %s mode\n")
    at ../../kern/subr_prf.c:318
#24 0xf0179510 in trap_fatal (frame=0xf0196f0c) at ../../i386/i386/trap.c:690
#25 0xf0179299 in trap_pfault (frame=0xf0196f0c, usermode=0)
    at ../../i386/i386/trap.c:667
#26 0xf0178ecb in trap (frame={tf_es = -250347504, tf_ds = -250347504, 
      tf_edi = -266710664, tf_esi = -266710664, tf_ebp = -266768556, 
      tf_isp = -267318884, tf_ebx = -266710664, tf_edx = -266711252, 
      tf_ecx = 0, tf_eax = 0, tf_trapno = 12, tf_err = 0, tf_eip = -267318884, 
      tf_cs = 8, tf_eflags = 66054, tf_esp = -266710664, tf_ss = -266711252})
    at ../../i386/i386/trap.c:307
#27 0xf016e6ed in calltrap ()
#28 0xf011099c in updatepri (p=0xf01a5178) at ../../kern/kern_synch.c:234
#29 0xf0110ea9 in wakeup (ident=0xf01a5178) at ../../kern/kern_synch.c:519
#30 0xf0165e6b in vmmeter () at ../../vm/vm_meter.c:55
#31 0xf0110974 in schedcpu (arg=0x0) at ../../kern/kern_synch.c:221
#32 0xf0107a24 in softclock () at ../../kern/kern_clock.c:654
#33 0xf016fa47 in doreti_swi ()
#34 0xf017886c in cpu_switch ()
(kgdb) $ exit
Connection closed by foreign host.

Script done on Tue May 21 13:53:16 1996
--
Rich Kuhns			rjk@grauel.com
PO Box 6249
100 Sawmill Road
Lafayette, IN  47903
(317)477-6000 x319



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