Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Sep 1995 14:03:45 +0000 ()
From:      Dmitry Kohmanyuk <dk@dog.farm.org>
To:        bugs@freebsd.org
Cc:        sia-@ua.net, dk@farm.org
Subject:   2.0.5-R: panic on bad dir '/': mangled entry
Message-ID:  <199509011403.RAA00313@dog.farm.org>

next in thread | raw e-mail | index | archive | help
I've got a couple of these recently... 
My hardware is PCI SOYO mb, with AMD 486DX2-80, IDE HD (on-board
HDC), and PCI SCSI NCR contoller. I use custom kernel. 

I have a subtle feeling that this is a hardware problem (bad RAM??), but I am 
not sure.

kgdb backtrace follows:

dog:/sys/compile/FARM> kgdb
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.
(kgdb) symbol-file kernel.debug
Reading symbols from kernel.debug...exec-file /var/crash/done.
kernel.0
(kgdb) exec-file /var/crash/kernel.0
(kgdb) core-file /var/crash/vmcore.0
IdlePTD 1e9000
current pcb at 1d0018
panic: bad dir
#0  0xf019cdfc in boot ()
(kgdb) bt
#0  0xf019cdfc in boot ()
#1  0xf019ce0b in boot ()
#2  0xf0113243 in panic (fmt=0xf0187441 "bad dir") at ../../kern/subr_prf.c:128
#3  0xf0187483 in ufs_dirbad (ip=0xf0581400, offset=0,
    how=0xf01867c0 "mangled entry") at ../../ufs/ufs/ufs_lookup.c:587
#4  0xf0186ca9 in ufs_lookup (ap=0xefbffd74) at ../../ufs/ufs/ufs_lookup.c:282
#5  0xf0127c12 in lookup (ndp=0xefbffee8) at ./vnode_if.h:27
#6  0xf01277d2 in namei (ndp=0xefbffee8) at ../../kern/vfs_lookup.c:147
#7  0xf012d013 in vn_open (ndp=0xefbffee8, fmode=10, cmode=0)
    at ../../kern/vfs_vnops.c:113
#8  0xf012a6b3 in open (p=0xf0566c00, uap=0xefbfff94, retval=0xefbfff8c)
    at ../../kern/vfs_syscalls.c:636
#9  0xf01a1d6d in syscall ()
#10 0xf019a7eb in Xsyscall ()
#11 0x2382 in ?? ()
#12 0x1b6e in ?? ()
#13 0x18bd in ?? ()
#14 0x10e8 in ?? ()
(kgdb)

dmesg output follows:

FreeBSD 2.0.5-RELEASE #2: Sun Aug 27 15:19:52 EET DST 1995
    dk@dog.farm.org:/usr/src/sys/compile/FARM
CPU: i486DX (486-class CPU)
real memory  = 7995392 (1952 pages)
avail memory = 6684672 (1632 pages)
Probing for devices on the ISA bus:
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: VGA color <8 virtual consoles, flags=0x0>
ed0 at 0x300-0x31f irq 15 on isa
ed0: address 00:40:33:2c:a6:13, type NE2000 (16 bit) 
bpf: ed0 attached
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16450
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16450
sio2 at 0x3e8-0x3ef irq 5 on isa
sio2: type 16450
sio3 not found at 0x2e8
lpt0 at 0x378-0x37f irq 7 on isa
lpt0: Interrupt-driven port
lp0: TCP/IP capable interface
lpt1 at 0x278-0x27f on isa
lpt2 not found at 0xffffffff
pca0 on isa
pca0: PC speaker audio driver
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
wdc0 at 0x1f0-0x1f7 irq 14 on isa
wdc0: unit 0 (wd0): <Conner Peripherals 540MB - CFS540A>
wd0: 516MB (1058400 sectors), 1050 cyls, 16 heads, 63 S/T, 512 B/S
wdc1 not found at 0x170
nca4 not found at 0x350
npx0 on motherboard
npx0: INT 16 interface
Probing for devices on the pci0 bus:
	configuration mode 1 allows 32 devices.
pci0:5: vendor=0x1039, device=0x496, class=bridge [not supported]
vga0 <Display device> rev 0 on pci0:11
ncr0 <ncr 53c810 scsi> rev 2 int a irq 9 on pci0:13
	reg20: virtual=0xf224b000 physical=0xf0800000 size=0x100
ncr0: restart (scsi reset).
ncr0 scanning for targets 0..6 (V2 pl21 95/03/21)
ncr0 waiting for scsi devices to settle
(ncr0:2:0): "HITACHI CDR-1750S 0009" type 5 removable SCSI 1
cd0(ncr0:2:0): CD-ROM 
cd0(ncr0:2:0): NOT READY asc:4,0
cd0(ncr0:2:0):  Logical unit not ready, cause not reportable
can't get the size

pci0: uses 8388864 bytes of memory from f0000000 upto f08000ff.
pci0: uses 256 bytes of I/O space from 6000 upto 60ff.
bpf: lo0 attached
bpf: ppp0 attached
bpf: sl0 attached
bpf: sl1 attached
bpf: sl2 attached
bpf: sl3 attached
bpf: sl4 attached
bpf: sl5 attached
bpf: sl6 attached
bpf: sl7 attached
bpf: tun0 attached

kernel config file follows:

#
# FARM -- custom kernel for dog.farm.cs.kiev.ua == dog.farm.org
#
#	$Id: FARM,v 1.1 1995/08/03 14:20:43 dk Exp dk $
#

machine		"i386"
#cpu		"I386_CPU"
cpu		"I486_CPU"
#cpu		"I586_CPU"

ident		FARM
maxusers	20

# kernel features
options		"COMPAT_43"		#Compatible with BSD 4.3
options		INET			#InterNETworking
options		GATEWAY			#internetwork gateway
options 	MROUTING		# Multicast routing
options         IPFIREWALL              #firewall
#options         IPFIREWALL_VERBOSE      #print information about
#options		"NMBCLUSTERS=1024"

#options		QUOTA			#enable disk quotas

options		SYSVSHM
options		SYSVSEM
options		SYSVMSG

# kernel debugging
options		DODUMP			#We dump core-image on panic
#options		DDB			#Kernel debugger
#options		"SYMTAB_SPACE=158940"	#needs LOTS of symtable
options		KTRACE			#kernel tracing
#options		DIAGNOSTIC

# filesystems
options		FFS			#Berkeley Fast Filesystem
options		NFS			#Network Filesystem
options		MFS			#Memory File System
options		MSDOSFS			#MSDOS Filesystem
options		"CD9660"		#ISO 9660 Filesystem
options		PROCFS			#Process filesystem
options		NULLFS			#NULL filesystem
#options		FDESC			#File descriptor filesystem
#options		KERNFS			#Kernel filesystem
#options		LFS			#Log filesystem
#options		PORTAL			#Portal filesystem
#options		UMAPFS			#UID map filesystem
#options		UNION			#Union filesystem

# hardware
#options		GWETHER			# for ed driver
#options		MATH_EMULATE		#Support for x87 emulation
options		UCONSOLE		#X Console support
#options 	"FAT_CURSOR"		#block cursor in syscons or pccons
options		"MAXCONS=8"		#4 virtual consoles
options		"SCSI_DELAY=15"		#Be pessimistic about Joe SCSI device
options		BOUNCE_BUFFERS		#include support for DMA bounce buffers

#config		kernel	root on wd0 swap on wd0 and wd1 and sd0 and sd1 dumps on wd0
config		kernel	root 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

# nca: ProAudioSpectrum cards using the NCR 5380 or Trantor T130
controller	nca4	at isa? port 0x350 bio irq 5 vector ncaintr

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		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		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 pca0 at isa? tty

device ed0 at isa? port 0x300 net irq  15 iomem 0xd8000 vector edintr
#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	8
pseudo-device	ppp	1		#Point-to-point protocol
pseudo-device	tun	1
pseudo-device	bpfilter	8	#Berkeley packet filter
pseudo-device	pty	32
pseudo-device	speaker
pseudo-device	gzip		# Exec gzipped a.out's




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