The segment fault with NULL point using when recovering failure
Mike Gao
ygao.linux at gmail.com
Fri Sep 24 10:53:43 CDT 2010
I am curious about how this happens.
This error is caused by log recovery when mount try to fill super block. As
super block is protected by log or Journaling, it shouldn't be corrupted or
can't be recovery by journaling.
Anyway, this is reported as XFS INTERNAL ERROR.
XFS internal error XFS_WANT_CORRUPTED_GOTO at line 4147 of file
fs/xfs/xfs_bmap.c. Caller 0x871b9c26
Thanks,
Mike
On Thu, Sep 16, 2010 at 8:44 PM, Dave Chinner <david at fromorbit.com> wrote:
> On Wed, Sep 15, 2010 at 10:59:07AM -0500, Mike Gao wrote:
> > xlog_recover_process_iunlinks(
> > xlog_t *log)
> > {
> > /*
> > * Reacquire the agibuffer and continue around
> > * the loop. This should never fail as we know
> > * the buffer was good earlier on.
> > */
> > error = xfs_read_agi(mp, NULL, agno, &agibp);
> > ASSERT(error == 0);
> > agi = XFS_BUF_TO_AGI(agibp);
> >
> > }
> > If no defined DEBUG, ASSERT will not work and agibp could be ZERO if
> there
> > is a error in xfs_read_agi.
> > And the comment shouldn't say it never fail because xfs_read_agi will
> > return error in function and it does when there is forced shutdown.
>
> Have you seen a failure here?
>
> Cheers,
>
> Dave.
> --
> Dave Chinner
> david at fromorbit.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://oss.sgi.com/pipermail/xfs/attachments/20100924/18299263/attachment.htm>
More information about the xfs
mailing list