From owner-freebsd-current@FreeBSD.ORG Wed May 5 07:33:33 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1406F16A4CE for ; Wed, 5 May 2004 07:33:33 -0700 (PDT) Received: from mailout1.informatik.tu-muenchen.de (mailout1.informatik.tu-muenchen.de [131.159.0.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D94F43D41 for ; Wed, 5 May 2004 07:33:31 -0700 (PDT) (envelope-from barner@in.tum.de) Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000) id 4B2EC4742; Wed, 5 May 2004 16:16:57 +0200 (CEST) Date: Wed, 5 May 2004 16:16:57 +0200 From: Simon Barner To: freebsd-current@freebsd.org Message-ID: <20040505141657.GA8766@zi025.glhnet.mhn.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZfOjI3PrQbgiZnxM" Content-Disposition: inline User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at informatik.tu-muenchen.de Subject: panic: ufs_dirbad: bad dir (5.2.1-p5) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 May 2004 14:33:33 -0000 --ZfOjI3PrQbgiZnxM Content-Type: multipart/mixed; boundary="EeQfGwPcQSOJBaQU" Content-Disposition: inline --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, I got a panic (backtrace attached) when I started my workstation today. It seems that this is related to a problem I had ~ 2 weeks ago when my /usr partition wasn't mounted: In that case, the /usr mount point somehow got corrupted (``file /usr/'' said something about a bad file descriptor). In both cases, rebooting and fsck'ing (without any error reports) solved the problem. Is it possible that this problem is hardware related? My hard disk is less that half a year old, but the rest of the system is quite old (but rock stable apart from that problem during the boot). Any hints are glady appreciated... Regards, Simon --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename="crash.log" Content-Transfer-Encoding: quoted-printable Script started on Wed May 5 15:57:55 2004 =1B[m=1B[27m=1B[Jzi025:/var/crash # =1B[Kg=08gdb -k /boot/kernel/kernel.deb= ug vmcore.0 =08 GNU gdb 5.2.1 (FreeBSD) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain condition= s. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-freebsd"... panic: ufs_dirbad: bad dir panic messages: --- panic: ufs_dirbad: bad dir syncing disks, buffers remaining... 340 340 316 316 316 316 316 316 316 314= 314 314 314 314 314 315 315 315 315 315 315 315 315 315 315 315 315 315 31= 5=20 giving up on 283 buffers Uptime: 50s Dumping 192 MB 16 32 48 64 80 96 112 128 144 160 176 --- Reading symbols from /usr/src/sys/i386/compile/KISTE/modules/usr/src/sys/mo= dules/fdescfs/fdescfs.ko.debug...done. Loaded symbols for /usr/src/sys/i386/compile/KISTE/modules/usr/src/sys/modu= les/fdescfs/fdescfs.ko.debug Reading symbols from /boot/kernel/ipl.ko...done. Loaded symbols for /boot/kernel/ipl.ko #0 doadump () at ../../../kern/kern_shutdown.c:240 240 dumping++; (kgdb) bt #0 doadump () at ../../../kern/kern_shutdown.c:240 #1 0xc04ed36f in boot (howto=3D256) at ../../../kern/kern_shutdown.c:372 #2 0xc04ed645 in panic () at ../../../kern/kern_shutdown.c:550 #3 0xc0599371 in ufs_dirbad (ip=3D0x0, offset=3D4728,=20 how=3D0xc062469e "mangled entry") at ../../../ufs/ufs/ufs_lookup.c:633 #4 0xc059897a in ufs_lookup (ap=3D0xcb4acb38) at ../../../ufs/ufs/ufs_lookup.c:296 #5 0xc059f5d3 in ufs_vnoperate (ap=3D0x0) at ../../../ufs/ufs/ufs_vnops.c:= 2793 #6 0xc05304f5 in vfs_cache_lookup (ap=3D0x0) at vnode_if.h:82 #7 0xc059f5d3 in ufs_vnoperate (ap=3D0x0) at ../../../ufs/ufs/ufs_vnops.c:= 2793 #8 0xc0534df7 in lookup (ndp=3D0xcb4acc30) at vnode_if.h:52 #9 0xc0534899 in namei (ndp=3D0xcb4acc30) at ../../../kern/vfs_lookup.c:183 #10 0xc05409be in stat (td=3D0xc1134780, uap=3D0xcb4acd14) at ../../../kern/vfs_syscalls.c:1994 #11 0xc05eec8b in syscall (frame=3D {tf_fs =3D 47, tf_es =3D 47, tf_ds =3D 47, tf_edi =3D 135295656, tf_e= si =3D 3, tf_ebp =3D -1077943544, tf_isp =3D -884290188, tf_ebx =3D 1352958= 76, tf_edx =3D 135295876, tf_ecx =3D 135295885, tf_eax =3D 188, tf_trapno = =3D 0, tf_err =3D 2, tf_eip =3D 134726031, tf_cs =3D 31, tf_eflags =3D 531,= tf_esp =3D -1077943700, tf_ss =3D 47}) at ../../../i386/i386/trap.c:1010 #12 0xc05e242d in Xint0x80_syscall () at {standard input}:136 ---Can't read userspace from dump, or kernel process--- (kgdb) bt full #0 doadump () at ../../../kern/kern_shutdown.c:240 No locals. #1 0xc04ed36f in boot (howto=3D256) at ../../../kern/kern_shutdown.c:372 No locals. #2 0xc04ed645 in panic () at ../../../kern/kern_shutdown.c:550 td =3D (struct thread *) 0xc1134780 bootopt =3D 256 newpanic =3D 0 ap =3D 0xcb4aca20 "x\002E=C6\b=CBJ=CBz\211Y=C04\b@=C2x\022" buf =3D "ufs_dirbad: bad dir", '\0' #3 0xc0599371 in ufs_dirbad (ip=3D0x0, offset=3D4728,=20 how=3D0xc062469e "mangled entry") at ../../../ufs/ufs/ufs_lookup.c:633 mp =3D (struct mount *) 0xc2363400 #4 0xc059897a in ufs_lookup (ap=3D0xcb4acb38) at ../../../ufs/ufs/ufs_lookup.c:296 i =3D 0 vdp =3D (struct vnode *) 0xc23fdb2c dp =3D (struct inode *) 0xc2400834 bp =3D (struct buf *) 0xc5fb5108 ep =3D (struct direct *) 0xc6450278 entryoffsetinblock =3D 4728 slotstatus =3D FOUND slotoffset =3D -1 slotsize =3D 0 ---Type to continue, or q to quit--- slotfreespace =3D 0 slotneeded =3D 0 numdirpasses =3D 2 endsearch =3D 7168 prevoff =3D 4712 pdp =3D (struct vnode *) 0x1c00 tdp =3D (struct vnode *) 0x1000040 enduseful =3D 4728 bmask =3D 16383 lockparent =3D 0 wantparent =3D 0 namlen =3D 0 error =3D -968555912 vpp =3D (struct vnode **) 0xcb4acc44 cnp =3D (struct componentname *) 0xcb4acc58 cred =3D (struct ucred *) 0xc1129e00 flags =3D 49348 nameiop =3D 0 td =3D (struct thread *) 0xc1134780 #5 0xc059f5d3 in ufs_vnoperate (ap=3D0x0) at ../../../ufs/ufs/ufs_vnops.c:= 2793 No locals. #6 0xc05304f5 in vfs_cache_lookup (ap=3D0x0) at vnode_if.h:82 dvp =3D (struct vnode *) 0xc23fdb2c vp =3D (struct vnode *) 0xc06727a0 ---Type to continue, or q to quit--- lockparent =3D 0 error =3D -1036002516 vpp =3D (struct vnode **) 0xcb4acc44 cnp =3D (struct componentname *) 0xcb4acc58 cred =3D (struct ucred *) 0x0 flags =3D 49348 td =3D (struct thread *) 0xc1134780 vpid =3D 3410676560 #7 0xc059f5d3 in ufs_vnoperate (ap=3D0x0) at ../../../ufs/ufs/ufs_vnops.c:= 2793 No locals. #8 0xc0534df7 in lookup (ndp=3D0xcb4acc30) at vnode_if.h:52 cp =3D 0xc238600d "" dp =3D (struct vnode *) 0xc23fdb2c tdp =3D (struct vnode *) 0xc23c2c30 mp =3D (struct mount *) 0xc238600d docache =3D 32 wantparent =3D 0 rdonly =3D 0 trailing_slash =3D 0 error =3D 0 dpunlocked =3D 0 cnp =3D (struct componentname *) 0xcb4acc58 td =3D (struct thread *) 0xc1134780 #9 0xc0534899 in namei (ndp=3D0xcb4acc30) at ../../../kern/vfs_lookup.c:183 ---Type to continue, or q to quit--- fdp =3D (struct filedesc *) 0xc239b400 cp =3D 0xcb4acbe4 "\b=CCJ=CB\006=B5S=C0\f=E3B=C2=E0&g=C0\f=E3B=C2\200G\023= =C1\001" dp =3D (struct vnode *) 0xc237fe38 aiov =3D {iov_base =3D 0xc242e30c, iov_len =3D 3410676744} auio =3D {uio_iov =3D 0xc1134780, uio_iovcnt =3D 1,=20 uio_offset =3D -4534201784750571520, uio_resid =3D -884290324,=20 uio_segflg =3D 3226733048, uio_rw =3D 3259163404, uio_td =3D 0x0} error =3D -1036517832 linklen =3D -1036517832 cnp =3D (struct componentname *) 0xcb4acc58 td =3D (struct thread *) 0xc1134780 p =3D (struct proc *) 0x0 #10 0xc05409be in stat (td=3D0xc1134780, uap=3D0xcb4acd14) at ../../../kern/vfs_syscalls.c:1994 sb =3D {st_dev =3D 3239266176, st_ino =3D 3239259392, st_mode =3D 45960,= =20 st_nlink =3D 49718, st_uid =3D 3239246592, st_gid =3D 3258364980,=20 st_rdev =3D 3258364808, st_atimespec =3D {tv_sec =3D -884290388,=20 tv_nsec =3D -1068500418}, st_mtimespec =3D {tv_sec =3D -1066928480,=20 tv_nsec =3D -1055720704}, st_ctimespec =3D {tv_sec =3D -1055701120,=20 tv_nsec =3D -884290372}, st_size =3D 11816349089,=20 st_blocks =3D -4534201781524104832, st_blksize =3D 3239238464,=20 st_flags =3D 71762397, st_gen =3D 3410677008, st_lspare =3D -1068546804,= =20 st_birthtimespec =3D {tv_sec =3D -1055701120, tv_nsec =3D -118768102}} error =3D -1036602488 ---Type to continue, or q to quit--- nd =3D {ni_dirp =3D 0x8107384---Can't read userspace from dump, or kernel = process--- (kgdb) =1B[m=1B[27m=1B[Jzi025:/var/crash # =1B[K Script done on Wed May 5 15:58:23 2004 --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="dmesg.log" Content-Transfer-Encoding: quoted-printable Copyright (c) 1992-2004 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.2.1-RELEASE-p5 #0: Sat Apr 17 12:06:11 CEST 2004 toor@zi025.glhnet.mhn.de:/usr/src/sys/i386/compile/KISTE Preloaded elf kernel "/boot/kernel/kernel" at 0xc0724000. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD-K6(tm) 3D+ Processor (400.91-MHz 586-class CPU) Origin =3D "AuthenticAMD" Id =3D 0x591 Stepping =3D 1 Features=3D0x8021bf AMD Features=3D0x80000800 real memory =3D 201326592 (192 MB) avail memory =3D 190103552 (181 MB) netsmb_dev: loaded K6-family MTRR support enabled (2 registers) npx0: [FAST] npx0: on motherboard npx0: INT 16 interface pcibios: BIOS version 2.10 Using $PIR table, 5 entries at 0xc00fdde0 pcib0: at pcibus 0 on motherboard pci0: on pcib0 pci_cfgintr: 0:17 INTA BIOS irq 9 pci_cfgintr: 0:18 INTA BIOS irq 3 pcib1: at device 1.0 on pci0 pci1: on pcib1 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xe000-0xe00f at device 7.1 o= n pci0 ata0: at 0x1f0 irq 14 on atapci0 ata0: [MPSAFE] ata1: at 0x170 irq 15 on atapci0 ata1: [MPSAFE] xl0: <3Com 3c905-TX Fast Etherlink XL> port 0xe800-0xe83f irq 9 at device 1= 7.0 on pci0 xl0: Ethernet address: 00:60:08:4a:00:e5 miibus0: on xl0 nsphy0: on miibus0 nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci0: at device 18.0 (no driver attached) orm0: