From scrappy@hub.org  Tue Apr 15 12:57:41 2003
Return-Path: <scrappy@hub.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2372A37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 15 Apr 2003 12:57:41 -0700 (PDT)
Received: from hub.org (hub.org [64.117.224.146])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9C5A243FBF
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 15 Apr 2003 12:57:40 -0700 (PDT)
	(envelope-from scrappy@hub.org)
Received: by hub.org (Postfix, from userid 1002)
	id 8B4E71038F7D; Tue, 15 Apr 2003 16:57:37 -0300 (ADT)
Message-Id: <20030415195737.8B4E71038F7D@hub.org>
Date: Tue, 15 Apr 2003 16:57:37 -0300 (ADT)
From: scrappy@hub.org
Reply-To: scrappy@hub.org
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject:
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         51001
>Category:       kern
>Synopsis:       panic: ufs_dirbad: bad dir
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 15 13:00:36 PDT 2003
>Closed-Date:    Mon Jul 14 02:27:13 PDT 2003
>Last-Modified:  Mon Jul 14 02:27:13 PDT 2003
>Originator:     Marc G. Fournier
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
Hub.Org Networking Services
>Environment:
System: FreeBSD venus.hub.org 4.8-STABLE FreeBSD 4.8-STABLE #4: Fri Apr 11 14:58:21 EDT 2003 root@venus.hub.org:/usr/obj/usr/src/sys/kernel i386


	
>Description:
(kgdb) up 3
#3  0x801ee8f2 in ufs_dirbad (ip=0x8830cb00, offset=29, how=0x8025bf70 "mangled entry") at /usr/src/sys/ufs/ufs/ufs_lookup.c:641
641                     panic("ufs_dirbad: bad dir");
(kgdb) list
636
637             mp = ITOV(ip)->v_mount;
638             (void)printf("%s: bad dir ino %lu at offset %ld: %s\n",
639                 mp->mnt_stat.f_mntonname, (u_long)ip->i_number, (long)offset, how);
640             if ((mp->mnt_flag & MNT_RDONLY) == 0)
641                     panic("ufs_dirbad: bad dir");
642     }
643
644     /*
645      * Do consistency checking on a directory entry:
(kgdb) print *mp
$1 = {mnt_list = {tqe_next = 0x864b7e00, tqe_prev = 0x80279da8}, mnt_op = 0x80280220, mnt_vfc = 0x80280260, mnt_vnodecovered = 0x0,
  mnt_syncer = 0xb516a480, mnt_nvnodelist = {tqh_first = 0xb516be00, tqh_last = 0xb9138fe4}, mnt_lock = {lk_interlock = {lock_data = 0},
    lk_flags = 16777216, lk_sharecount = 0, lk_waitcount = 0, lk_exclusivecount = 0, lk_prio = 20, lk_wmesg = 0x802519a2 "vfslock",
    lk_timo = 6, lk_lockholder = -1}, mnt_flag = 20480, mnt_kern_flag = 0, mnt_maxsymlinklen = 60, mnt_stat = {f_spare2 = 0,
    f_bsize = 2048, f_iosize = 16384, f_blocks = 49824021, f_bfree = 6345901, f_bavail = 2359980, f_files = 12525566, f_ffree = 7238797,
    f_fsid = {val = {1047069831, 1526014709}}, f_owner = 0, f_type = 1, f_flags = 20480, f_syncwrites = 22799, f_asyncwrites = 145277,
    f_fstypename = "ufs", '\000' <repeats 12 times>, f_mntonname = "/", '\000' <repeats 78 times>, f_syncreads = 164980,
    f_asyncreads = 12518, f_spares1 = 0, f_mntfromname = "/dev/da0s1a", '\000' <repeats 68 times>, f_spares2 = 0, f_spare = {0, 0}},
  mnt_data = 0x864b7800, mnt_time = 1050433524, mnt_iosize_max = 65536, mnt_reservedvnlist = {tqh_first = 0x0, tqh_last = 0x864a0558},
  mnt_nvnodelistsize = 53553}
(kgdb) quit
venus# exit
exit

>How-To-Repeat:

operator ran a 'grep -r' on a directory structure to try and find some
information

>Fix:

	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: kris 
State-Changed-When: Mon Jul 14 02:24:08 PDT 2003 
State-Changed-Why:  
This is another panic that may be associated to marginal 
HDs. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=51001 
State-Changed-From-To: feedback->closed 
State-Changed-By: kris 
State-Changed-When: Mon Jul 14 02:26:56 PDT 2003 
State-Changed-Why:  
Duplicate of kern/49079 

http://www.freebsd.org/cgi/query-pr.cgi?pr=51001 
>Unformatted:
