RELENG_6 vm_fault panic on filesystem mount

Xin LI delphij at gmail.com
Fri Nov 18 17:58:48 GMT 2005


Hi, Joerg,

On 11/19/05, Joerg Pernfuss <elessar at bsdforen.de> wrote:
[...]
> From the output of the backtrace (below) I figure the problem for me
> lies in /usr/src/sys/ufs/ufs/ufs_dirhash.c line 232; this block:
>
>      if (ep->d_reclen == 0 || ep->d_reclen >
>          DIRBLKSIZ - (pos & (DIRBLKSIZ - 1))) {
>              /* Corrupted directory. */
>              brelse(bp);
>              goto fail;
>      }
>
> Which is consistent with the very first panic message I got saying
> something about 'Fatal Trap 12, page fault while in kernel mode,
>  ufs_dirhash: bad dir' - sadly, I didn't write down that one.
> Hasn't reappeared since then.

Unfortunately the "ufs_dirhash: bad dir" in most cases indicate some
bugs elsewhere, or some hardware hazard.  I have recently upgraded
several production boxes at lab and suggested many other guys to
upgrade to 6.0-RELEASE, and I am very eager to see if there is some
problems that we can catch and fix.

If this is a production then my suggestion would be trying to remove
something that you do not need for everyday use from the kernel
configuration, and if it is not then my suggestion would be enabling
INVARIANTS and makeoptions=-g to see if something strange happen, and
possibly some backtraces would inspire us to catch the bug.

Thanks,
--
Xin LI <delphij at delphij.net> http://www.delphij.net


More information about the freebsd-stable mailing list