Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Oct 1998 20:52:43 -0700 (PDT)
From:      benedict@echonyc.com
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   kern/8312: Under heavy load, the system panics with "ufs_dirbad: bad dir"
Message-ID:  <199810140352.UAA29157@hub.freebsd.org>

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

>Number:         8312
>Category:       kern
>Synopsis:       Under heavy load, the system panics with "ufs_dirbad: bad dir"
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 13 21:00:01 PDT 1998
>Last-Modified:
>Originator:     Ben Rosengart
>Organization:
Icon CMT Corp.
>Release:        current as of Tue Oct 13 16:38:48 EDT 1998
>Environment:
FreeBSD narcissus.net 3.0-BETA FreeBSD 3.0-BETA #17: Tue Oct 13 15:53:06 EDT 1998     ben@narcissus.net:/usr/src/sys/compile/SUEVEN  i386

>Description:
When I do a make world with around -j24 or above, my system panics with
"ufs_dirbad: bad dir".  When it comes back up, fsck -p dies on /usr/obj
with "UNEXPECTED SOFTDEP INCONSISTENCY".  I usually have to fix a bunch
of these when I run fsck manually.

Here is the full backtrace:

#0  boot (howto=256) at ../../kern/kern_shutdown.c:268
#1  0xf012c663 in panic (fmt=0xf01840b8 "ufs_dirbad: bad dir")
    at ../../kern/kern_shutdown.c:430
#2  0xf0184106 in ufs_dirbad (ip=0xf0a03b00, offset=0, 
    how=0xf01836a0 "mangled entry") at ../../ufs/ufs/ufs_lookup.c:566
#3  0xf0183949 in ufs_lookup (ap=0xf5032dcc) at ../../ufs/ufs/ufs_lookup.c:243
#4  0xf01889ad in ufs_vnoperate (ap=0xf5032dcc)
    at ../../ufs/ufs/ufs_vnops.c:2291
#5  0xf014a2f1 in vfs_cache_lookup (ap=0xf5032e28) at vnode_if.h:55
#6  0xf01889ad in ufs_vnoperate (ap=0xf5032e28)
    at ../../ufs/ufs/ufs_vnops.c:2291
#7  0xf014c2ed in lookup (ndp=0xf5032eb0) at vnode_if.h:31
#8  0xf014bda7 in namei (ndp=0xf5032eb0) at ../../kern/vfs_lookup.c:155
#9  0xf0151697 in stat (p=0xf4ff2980, uap=0xf5032f94)
    at ../../kern/vfs_syscalls.c:1592
#10 0xf01a475c in syscall (frame={tf_es = 39, tf_ds = 39, tf_edi = 235136, 
      tf_esi = 0, tf_ebp = -272642908, tf_isp = -184340508, tf_ebx = 196672, 
      tf_edx = 13, tf_ecx = 196672, tf_eax = 188, tf_trapno = 12, tf_err = 7, 
      tf_eip = 102389, tf_cs = 31, tf_eflags = 582, tf_esp = -272643028, 
      tf_ss = 39}) at ../../i386/i386/trap.c:1031
#11 0x18ff5 in ?? ()
#12 0xa4d7 in ?? ()
#13 0xabad in ?? ()
#14 0xade9 in ?? ()
#15 0x9c7a in ?? ()
#16 0x107e in ?? ()

Here is my dmesg.boot:

Copyright (c) 1992-1998 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California. All rights reserved.
FreeBSD 3.0-BETA #17: Tue Oct 13 15:53:06 EDT 1998
    ben@narcissus.net:/usr/src/sys/compile/SUEVEN
Timecounter "i8254"  frequency 1193182 Hz  cost 3502 ns
Timecounter "TSC"  frequency 199432625 Hz  cost 252 ns
CPU: Pentium Pro (199.43-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x617  Stepping=7
  Features=0xf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV>
real memory  = 100663296 (98304K bytes)
avail memory = 95764480 (93520K bytes)
Probing for devices on PCI bus 0:
chip0: <Intel 82440FX (Natoma) PCI and memory controller> rev 0x02 on pci0.0.0
chip1: <Intel 82371SB PCI to ISA bridge> rev 0x01 on pci0.7.0
vga0: <S3 ViRGE graphics accelerator> rev 0x06 int a irq 11 on pci0.11.0
bt0: <Buslogic Multimaster SCSI host adapter> rev 0x08 int a irq 9 on pci0.15.0
bt0: BT-948 FW Rev. 5.05R Ultra Narrow SCSI Host Adapter, SCSI ID 7, 192 CCBs
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 on isa
ed0: address 00:40:05:1e:df:32, type NE2000 (16 bit) 
sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
lpt0 at 0x378-0x37f irq 7 on isa
lpt0: Interrupt-driven port
lp0: TCP/IP capable interface
pcm0 at 0x220 irq 5 drq 1 on isa
WARNING: sb: misconfigured secondary DMA channel
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1.44MB 3.5in
bt: unit number (1) too high
bt1 not found at 0x330
npx0 on motherboard
npx0: INT 16 interface
Waiting 5 seconds for SCSI devices to settle
changing root device to da0s1a
da0 at bt0 bus 0 target 0 lun 0
da0: <CONNER CFP2107S  2.14GB 5767> Fixed Direct Access SCSI2 device 
da0: 3.300MB/s transfers, Tagged Queueing Enabled
da0: 2048MB (4194304 512 byte sectors: 255H 63S/T 261C)
da1 at bt0 bus 0 target 6 lun 0
da1: <QUANTUM FIREBALL_TM3200S 300X> Fixed Direct Access SCSI2 device 
da1: 3.300MB/s transfers, Tagged Queueing Enabled
da1: 3067MB (6281856 512 byte sectors: 255H 63S/T 391C)
WARNING: / was not properly dismounted
cd0 at bt0 bus 0 target 2 lun 0
cd0: <PLEXTOR CD-ROM PX-8XCS 1.02> Removable CD-ROM SCSI2 device 
cd0: 3.300MB/s transfers
cd0: cd present [313790 x 2048 byte records]
ffs_mountfs: superblock updated
ffs_mountfs: superblock updated
ffs_mountfs: superblock updated
ffs_mountfs: superblock updated
ffs_mountfs: superblock updated

Here is my kernel configuration file:

machine         "i386"
cpu             "I686_CPU"
ident           SUEVEN
maxusers        32
options         SOFTUPDATES
options         INET                    #InterNETworking
options         FFS                     #Berkeley Fast Filesystem
options         MFS
options         "CD9660"                #ISO 9660 Filesystem
options         "CD9660_ROOT"           #CD-ROM usable as root device
options         FFS_ROOT                #FFS usable as root device [keep this!]
options         PROCFS                  #Process filesystem
options         "COMPAT_43"             #Compatible with BSD 4.3 [KEEP THIS!]
options         SCSI_DELAY=5000         #Be pessimistic about Joe SCSI device
options         UCONSOLE                #Allow users to grab the console
options         USERCONFIG              #boot -c editor
options         VISUAL_USERCONFIG       #visual boot -c editor
config          kernel  root on da0
controller      isa0
controller      eisa0
controller      pci0
controller      fdc0    at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk            fd0     at fdc0 drive 0
controller      bt0     at isa? port ? cam irq ?
controller      scbus0
device          da0
device          sa0
device          pass0
device          cd0     #Only need one of these, the code dynamically grows
device          sc0     at isa? port "IO_KBD" conflicts tty irq 1 vector scintr
device          npx0    at isa? port "IO_NPX" irq 13 vector npxintr
device          sio0    at isa? port "IO_COM1" flags 0x10 tty irq 4 vector siointr
device          sio1    at isa? port "IO_COM2" tty irq 3 vector siointr
device          sio2    at isa? disable port "IO_COM3" tty irq 5 vector siointr
device          sio3    at isa? disable port "IO_COM4" tty irq 9 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
device pcm0 at isa? port 0x220 tty irq 5 drq 1 flags 0x0 vector pcmintr
pseudo-device   loop
pseudo-device   ether
pseudo-device   tun     1
pseudo-device   pty     16
pseudo-device   bpfilter        2
options         KTRACE          #kernel tracing
options         SYSVSHM
options         SYSVSEM
options         SYSVMSG

>How-To-Repeat:
Run a make world with a large -j argument.
>Fix:

>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



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