Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Mar 1995 13:50:05 -0800
From:      ferovick@runner.jpl.utsa.edu (David C Ferovick)
To:        freebsd-bugs
Subject:   kern/255: page fault after adding pcvt support into kernel config
Message-ID:  <199503192150.NAA04968@freefall.cdrom.com>
In-Reply-To: Your message of Sun, 19 Mar 1995 15:49:38 -0600 <9503192149.AA29599@runner.utsa.edu>

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

>Number:         255
>Category:       kern
>Synopsis:       page fault after adding pcvt support into kernel config
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 19 13:50:02 1995
>Originator:     Dave Ferovick
>Organization:
UTSA 
>Release:        FreeBSD 2.1.0-Development i386
>Environment:

	NICE Chipset 486 dx2 80   16meg ram
	Adaptec 1542 scsi controller with 2 ibm 1gig drives
	BOCA ET-4000 video card
	IBM Internal ISA CD-Rom (really a Matsushita/panasonic CR-563)
	dual-16550 serial port card and single parallel port
	WD8013EP ethernet

>Description:
	
	The FreeBSD-current from 3/17/95 at 10 am runs fine if I do not 
	copy the two lines for PCVT from the LINT config file into my
	config file for the kernel.  It gets a page fault just after 
	the mounting root as... line on the screen.  If I then rebuild
	the kernel after commenting out those two lines, the kernel once
	again works fine.  I am leaving the syscon line alone, but if I
	comment it out, the kernel stil traps.

	Here is the kgdb script for the fault:
Script started on Sun Mar 19 15:05:54 1995
milan# kgdb kernel.debug /var/crash/vmcore.1
Reading symbol data from /usr/src/sys/compile/MYKERNEL/kernel.debug...done.
IdlePTD 1f8000
panic: page fault
current pcb at 1e300c
Reading in symbols for ../../i386/i386/machdep.c...done.
(kgdb) where
#0  boot (arghowto=256) (../../i386/i386/machdep.c line 787)
#1  0xf01126d3 in panic (...)
#2  0xf0192cfe in trap_fatal (...)
#3  0xf0192870 in trap_pfault (...)
#4  0xf0192537 in trap (...)
#5  0xf018b711 in exception:calltrap ()
#6  0xf012c554 in spec_open (...)
#7  0xf01299b7 in vn_open (...)
#8  0xf0126c33 in open (...)
#9  0xf0192ee7 in syscall (...)
(kgdb) up 4
Reading in symbols for ../../i386/i386/trap.c...done.
#4  0xf0192537 in trap (frame={tf_es = 16, tf_ds = -272695280, tf_edi = 0, tf_esi = 15616, tf_ebp = -272630324, tf_isp = -272630376, tf_ebx = 15616, tf_edx = 0, tf_ecx = -272630228, tf_eax = 61, tf_trapno = 12, tf_err = -272695296, tf_eip = 61, tf_cs = -262209528, tf_eflags = 66050, tf_esp = -266816605, tf_ss = 15616}) (../../i386/i386/trap.c line 288)
288				(void) trap_pfault(&frame, FALSE);
(kgdb) frame frame->tf_ebp frame->tf_eip
#0  0x3d in ?? ()
(kgdb) where
#0  boot (arghowto=256) (../../i386/i386/machdep.c line 787)
#1  0xf01126d3 in panic (...)
#2  0xf0192cfe in trap_fatal (frame=(struct trapframe *) 0xefbffd70) (../../i386/i386/trap.c line 569)
#3  0xf0192870 in trap_pfault (frame=(struct trapframe *) 0xefbffd70, usermode=0) (../../i386/i386/trap.c line 491)
#4  0xf0192537 in trap (frame={tf_es = 16, tf_ds = -272695280, tf_edi = 0, tf_esi = 15616, tf_ebp = -272630324, tf_isp = -272630376, tf_ebx = 15616, tf_edx = 0, tf_ecx = -272630228, tf_eax = 61, tf_trapno = 12, tf_err = -272695296, tf_eip = 61, tf_cs = -262209528, tf_eflags = 66050, tf_esp = -266816605, tf_ss = 15616}) (../../i386/i386/trap.c line 288)
#5  0xf018b711 in exception:calltrap ()
#6  0xf012c554 in spec_open (...)
#7  0xf01299b7 in vn_open (...)
#8  0xf0126c33 in open (...)
#9  0xf0192ee7 in syscall (frame={tf_es = 39, tf_ds = 39, tf_edi = 2117632, tf_esi = 0, tf_ebp = -272638436, tf_isp = -272629788, tf_ebx = 7086, tf_edx = 1, tf_ecx = 0, tf_eax = 5, tf_trapno = 582, tf_err = 582, tf_eip = 75669, tf_cs = 31, tf_eflags = 582, tf_esp = -272638456, tf_ss = 39}) (../../i386/i386/trap.c line 709)
(kgdb) frame 6
Reading in symbols for ../../miscfs/specfs/spec_vnops.c...done.
#6  0xf012c554 in spec_open (ap=(struct vop_open_args *) 0xefbffe2c) (../../miscfs/specfs/spec_vnops.c line 181)
181			error = (*cdevsw[maj].d_open)(dev, ap->a_mode, S_IFCHR, ap->a_p);
(kgdb) where
#0  boot (arghowto=256) (../../i386/i386/machdep.c line 787)
#1  0xf01126d3 in panic (...)
#2  0xf0192cfe in trap_fatal (frame=(struct trapframe *) 0xefbffd70) (../../i386/i386/trap.c line 569)
#3  0xf0192870 in trap_pfault (frame=(struct trapframe *) 0xefbffd70, usermode=0) (../../i386/i386/trap.c line 491)
#4  0xf0192537 in trap (frame={tf_es = 16, tf_ds = -272695280, tf_edi = 0, tf_esi = 15616, tf_ebp = -272630324, tf_isp = -272630376, tf_ebx = 15616, tf_edx = 0, tf_ecx = -272630228, tf_eax = 61, tf_trapno = 12, tf_err = -272695296, tf_eip = 61, tf_cs = -262209528, tf_eflags = 66050, tf_esp = -266816605, tf_ss = 15616}) (../../i386/i386/trap.c line 288)
#5  0xf018b711 in exception:calltrap ()
#6  0xf012c554 in spec_open (ap=(struct vop_open_args *) 0xefbffe2c) (../../miscfs/specfs/spec_vnops.c line 181)
#7  0xf01299b7 in vn_open (...)
#8  0xf0126c33 in open (...)
#9  0xf0192ee7 in syscall (frame={tf_es = 39, tf_ds = 39, tf_edi = 2117632, tf_esi = 0, tf_ebp = -272638436, tf_isp = -272629788, tf_ebx = 7086, tf_edx = 1, tf_ecx = 0, tf_eax = 5, tf_trapno = 582, tf_err = 582, tf_eip = 75669, tf_cs = 31, tf_eflags = 582, tf_esp = -272638456, tf_ss = 39}) (../../i386/i386/trap.c line 709)
(kgdb) quit
milan# exit
exit
Script done on Sun Mar 19 15:08:30 1995
Here is my failing kernel config file:

#
# GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks
#
#	GENERIC,v 1.20 1994/11/18 19:10:25 jkh Exp
#

machine		"i386"
#cpu		"I386_CPU"
cpu		"I486_CPU"
#cpu		"I586_CPU"
ident		MYKERNEL
maxusers	10

#options		MATH_EMULATE		#Support for x87 emulation
options		INET			#InterNETworking
options		FFS			#Berkeley Fast Filesystem
options		NFS			#Network Filesystem
options		MSDOSFS			#MSDOS Filesystem
options		"CD9660"		#ISO 9660 Filesystem
options		PROCFS			#Process filesystem
options		"COMPAT_43"		#Compatible with BSD 4.3
options		UCONSOLE		#X Console support
#options	"FAT_CURSOR"		#block cursor in syscons or pccons
options		"SCSI_DELAY=5"		#Be pessimistic about Joe SCSI device
options		"NCONS=10"		#4 virtual consoles
#options	BOUNCE_BUFFERS		#include support for DMA bounce buffers
options		"TUNE_1542"
options		"DODUMP"
options		LKM
config		kernel	root on wd0 swap on wd0 and wd1 and sd0 and sd1 dumps on wd0

controller	isa0
controller	pci0

controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk		fd0	at fdc0 drive 0
disk		fd1	at fdc0 drive 1
#tape		ft0	at fdc0 drive 2

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

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

controller	ncr0

#controller	bt0	at isa? port "IO_BT0" bio irq ? vector btintr
#controller	uha0	at isa? port "IO_UHA0" bio irq ? drq 5 vector uhaintr
#controller	ahc0	at isa? bio irq ? vector ahcintr
#controller	ahb0	at isa? bio irq ? vector ahbintr
controller	aha0	at isa? port "IO_AHA0" bio irq ? drq 5 vector ahaintr
#controller	aic0    at isa? port 0x340 bio irq 11 vector aicintr
#controller	pas0	at isa? port 0x1f88 bio
#controller	sea0	at isa? bio irq 5 iomem 0xc8000 iosiz 0x2000 vector seaintr
controller	scbus0

device snd1 at isa? port 0x388 
device snd2 at isa? port 0x220 irq 7 drq 1 vector sbintr
device snd3 at isa? port 0x388 irq 12 drq 7 vector pasintr

device		sd0
device		sd1
device		sd2
device		sd3

#device		st0
#device		st1

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

#device		wt0	at isa? port 0x300 bio irq 5 drq 1 vector wtintr
#device		mcd0	at isa? port 0x300 bio irq 10 vector mcdintr
#device		mcd1	at isa? port 0x340 bio irq 11 vector mcdintr
#device		icd0	at isa? port 0x300 bio 
#device		icd1	at isa? port 0x320 bio
#device		icd2	at isa? port 0x340 bio
#device		icd3	at isa? port 0x360 bio

device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr
#device		pc0	at isa? port "IO_KBD" tty irq 1 vector pcrint

# 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

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		sio2	at isa? port "IO_COM3" tty irq 5 vector siointr
device		sio3	at isa? port "IO_COM4" tty irq 9 vector siointr

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

#device de0
device ed0 at isa? port 0x280 net irq  5 iomem 0xd8000 vector edintr
device ed1 at isa? port 0x300 net irq  5 iomem 0xd8000 vector edintr
#device ie0 at isa? port 0x360 net irq  7 iomem 0xd0000 vector ieintr
#device ep0 at isa? port 0x300 net irq 10 vector epintr
#device is0 at isa? port 0x280 net irq 10 drq 7 vector isintr
#device le0 at isa? port 0x300 net irq 5 iomem 0xd0000 vector le_intr
#device ze0 at isa? port 0x300 net irq 5 iomem 0xd8000 vector zeintr

pseudo-device	loop
pseudo-device	ether
pseudo-device	log
pseudo-device	sl	2
pseudo-device	ppp	2
pseudo-device	pty	16
pseudo-device	speaker
pseudo-device	gzip		# Exec gzipped a.out's

>How-To-Repeat:

	discussed above.

>Fix:
	None known.	

>Audit-Trail:
>Unformatted:

To: FreeBSD-gnats-submit@freebsd.org
Subject: problem report for FreeBSD-current...page fault when adding pcvt
From: ferovick@runner.jpl.utsa.edu
Reply-To: ferovick@runner.jpl.utsa.edu
X-send-pr-version: 3.2





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