Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Dec 2002 18:07:46 -0500 (EST)
From:      Robert Watson <rwatson@freebsd.org>
To:        Rashim Gupta <guptar@cs.rpi.edu>
Cc:        fs@freebsd.org, bright@mu.org
Subject:   Re: kernel panic
Message-ID:  <Pine.NEB.3.96L.1021211175035.60422i-100000@fledge.watson.org>
In-Reply-To: <Pine.GSO.4.31.0212111208530.19780-100000@jenolen.cs.rpi.edu>

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

On Wed, 11 Dec 2002, Rashim Gupta wrote:

>     On compiling a custom kernel I am getting the following error. I am
> writing a journaled file system and I cannot seem to understand why I
> keep getting this error. 

Can we assume from this that this error is not occuring in the stock code?

> 	panic: ffswrite: type 0xc1f7fcb8 0 (0,4)
> 
> Any suggestions what this error might be due to? Also, it is not a
> persistent error. If I reboot my machine using the same kernel at times
> I get this error and at times I do not.  Thanks in advance Rashim

A casual read of that FFS code shows that the error occurs in ffs_write(),
and that it occurs when the vnode type is not an expected or handled type. 
0 is probably VNON, so if I had to guess, your vnode has been revoked via
revoke() or forceable unmount.  Or, the reference count got dropped on the
vnode and the memory was recycled for other use, resulting in the type
getting zero'd.  However, having gotten into the VOP means that (at least
recently), the vnode function pointer was pointing at the FFS operation
vector rather than the deadfs operation vector.  To identify the type of
race and/or nastiness, I suggest inspecting the remainder of the vnode
structure using a debugger.  Check the current reference counts, value of
the operation vector pointer, lock information, etc. 

There is a known race involving deadfs and revoke() that could be at work,
but it could easily also be a local race condition involving reference
counts.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Network Associates Laboratories



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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1021211175035.60422i-100000>