Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Dec 1995 19:10:20 +0200
From:      Mark Murray <mark@grondar.za>
To:        bugs@freebsd.org
Subject:   Kernel FS is hosed right now?
Message-ID:  <199512141710.TAA01202@grumble.grondar.za>

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

A current kernel (about 6 hours old, in fact) is panicing on bootup:

It happens at ip f0134a82 (Trap 12 - page fault in kernel mode)

f0134048 T _vn_vmio_close
f0134090 F dead_vnops.o
f0134090 t ___set_vfs_opv_descs__sym_dead_vnodeop_opv_desc
f0134094 t _dead_lookup
f01340ac t _dead_open
f01340c8 t _dead_read
f0134114 t _dead_write
f013413c t _dead_ioctl
f0134174 t _dead_select
f0134180 t _dead_strategy
f01341e4 t _dead_lock
f0134218 t _dead_bmap
f013429c t _dead_print
f01342b0 t _dead_ebadf
f01342cc t _dead_badop
f01342e4 t _chkvnlock
f0134330 F fifo_vnops.o
f0134330 t ___set_vfs_opv_descs__sym_fifo_vnodeop_opv_desc
f0134334 T _fifo_lookup
f013434c T _fifo_open
f013460c T _fifo_read
f01346c4 T _fifo_write
f0134754 T _fifo_ioctl
f013479c T _fifo_select
f01347d8 T _fifo_bmap
f013481c T _fifo_lock
f0134824 T _fifo_unlock
f013482c T _fifo_close
f01348e0 T _fifo_printinfo
f013490c T _fifo_print
f0134938 T _fifo_pathconf
f0134990 T _fifo_ebadf
f013499c T _fifo_advlock
f01349b8 T _fifo_badop
f01349d0 F kernfs_vfsops.o
f01349d0 t _cdevvp
f0134a58 t _kernfs_init     <---------------------!!!!
f0134adc t _kernfs_mount
f0134ba4 t _kernfs_start
f0134bac t _kernfs_unmount
f0134c24 t _kernfs_root
f0134c68 t _kernfs_quotactl
f0134c74 t _kernfs_statfs
f0134d00 t _kernfs_sync
f0134d08 t _kernfs_vget
f0134d14 t _kernfs_fhtovp
f0134d20 t _kernfs_vptofh
f0134d2c t ___set_vfs_set_sym__fs_vfsconf
f0134d30 F kernfs_vnops.o
f0134db4 t _kernfs_xread
f0134fb4 t _kernfs_xwrite
f0134ff4 t _kernfs_lookup

and a stack trace (I have DDB in this!) looks like

stopped at kernfs_init + 0x2a   <------- !!!!!!!!

db> trace
 _kernfs_init(blah) at _kernfs_init + 0x2a
 _vfsinit(0) at _vfsinit + 0x8c
 _main(blah) at _main + 0x92

A Working kernel's dmesg is:

FreeBSD 2.2-CURRENT #0: Mon Nov 27 20:52:45 SAT 1995
    root@grumble.grondar.za:/a/src/sys/compile/G486
CPU: i486DX (486-class CPU)
real memory  = 16777216 (16384K bytes)
avail memory = 14721024 (14376K 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 10 maddr 0xd8000 msize 16384 on isa
ed0: address 00:00:c0:08:50:dd, type WD8013EBT (16 bit) 
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16450
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16450
lpt0 at 0x3bc-0x3c3 irq 7 on isa
lpt0: Interrupt-driven port
lp0: TCP/IP capable interface
pca0 on motherboard
pca0: PC speaker audio driver
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: NEC 72065B
fd0: 1.44MB 3.5in
fd1: 1.2MB 5.25in
aha0 at 0x330-0x333 irq 11 drq 5 on isa
aha0 waiting for scsi devices to settle
(aha0:0:0): "MAXTOR 7213-SCSI 0742" type 0 fixed SCSI 1
sd0(aha0:0:0): Direct-Access 202MB (415600 512 byte sectors)
(aha0:1:0): "HP C3323-300 4269" type 0 fixed SCSI 2
sd1(aha0:1:0): Direct-Access 1003MB (2056008 512 byte sectors)
(aha0:2:0): "ARCHIVE VIPER 150  21247 -011" type 1 removable SCSI 1
st0(aha0:2:0): Sequential-Access st0: Archive  Viper 150 is a known rogue
density code 0x0,  drive empty
(aha0:6:0): "MATSHITA CD-ROM CR-503 1.0f" type 5 removable SCSI 2
cd0(aha0:6:0): CD-ROM cd present [320062 x 2048 byte records]
npx0 on motherboard
npx0: INT 16 interface
sb0 at 0x220 irq 5 drq 1 on isa
sb0: <SoundBlaster Pro 3.2>
opl0 at 0x388 on isa
opl0: <Yamaha OPL-3 FM>
pid 134: sendmail: uid 0: exited on signal 11  <------ newly compiled...
pid 131: sendmail: uid 0: exited on signal 11
lpt0 switched to polled mode

And my config file is:

#
# G486 - Grondar compute server
#

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

options		INET			#InterNETworking
options		FFS			#Berkeley Fast Filesystem
options		NFS			#Network Filesystem
options		MFS			#Memory Filesystem
options		"CD9660"		#ISO 9660 Filesystem
options		PROCFS			#Process filesystem
options		KERNFS			#Kernel filesystem
options		"COMPAT_43"		#Compatible with BSD 4.3
options		"SCSI_DELAY=5"		#Be pessimistic about Joe SCSI device
options		UCONSOLE		#Allow users to grab the console
options		DDB			#Kernel Debugger
options		KTRACE
options		COMPAT_LINUX
options		SYSVSHM
options		SYSVSEM
options		SYSVMSG

config		kernel	root on sd0 

controller	isa0

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

controller	aha0	at isa? port "IO_AHA0" bio irq ? drq 5 vector ahaintr
controller	scbus0
device		sd0
device		st0
device		cd0

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.0.5
#options		XSERVER			# include code for XFree86
#options		FAT_CURSOR		# start with block cursor


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

device		ed0	at isa? port 0x300 net irq 10 iomem 0xd8000 vector edintr

# Controls all sound devices
controller	snd0
device		sb0	at	isa? port 0x220 irq 5 drq 1 vector sbintr
device		opl0	at	isa? port 0x388
device		pca0	at	isa? port IO_TIMER1 tty

pseudo-device	loop
pseudo-device	ether
pseudo-device	log
pseudo-device	tun	1
pseudo-device	pty	16
pseudo-device	vn	2
pseudo-device	gzip		# Exec gzipped a.out's
pseudo-device	speaker

-- 
Mark Murray
46 Harvey Rd, Claremont, Cape Town 7700, South Africa
+27 21 61-3768 GMT+0200
Finger mark@grondar.za for PGP key



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