From: Anisse Astier <anisse@astier.eu>
To: Eric Sandeen <sandeen@sandeen.net>
Cc: xfs@oss.sgi.com
Subject: Re: xfs_repair crashing (versions 3.1.4 and 3.1.5)
Date: Fri, 22 Apr 2011 13:09:20 +0200 [thread overview]
Message-ID: <20110422130920.7be686c6@destiny.ordissimo> (raw)
In-Reply-To: <4DB084CE.8020600@sandeen.net>
On Thu, 21 Apr 2011 14:26:06 -0500, Eric Sandeen <sandeen@sandeen.net> wrote :
> On 4/19/11 6:07 AM, Anisse Astier wrote:
> > On Tue, 19 Apr 2011 18:27:05 +1000, Dave Chinner <david@fromorbit.com> wrote :
> >
> >> On Mon, Apr 18, 2011 at 09:24:22PM +0200, Anisse Astier wrote:
> >>> directory flags set on non-directory inode 2283178100, would fix bad flags.
> >>> bad key in bmbt root (is 73434, would reset to 74194) in inode
> >>> 2283178100 data fork
> >>> bad fwd (right) sibling pointer (saw 145202888 should be NULLDFSBNO)
> >>> Segmentation fault
> >>
> >> Hmmm. The very next line doesn't appear before the segfault, making
> >> me think that it's the printf that is causing it to crash.
> >>
> >> if (check_dups == 0 &&
> >> cursor.level[0].right_fsbno != NULLDFSBNO) {
> >> do_warn(
> >> _("bad fwd (right) sibling pointer (saw %llu should be NULLDFSBNO)\n"),
> >> cursor.level[0].right_fsbno);
> >>
> >> We get this line of output.
> >>
> >> do_warn(
> >> _("\tin inode %u (%s fork) bmap btree block %llu\n"),
> >> XFS_AGINO_TO_INO(mp, agno, ino), forkname,
> >> cursor.level[0].fsbno);
> >>
> >> But not this one. I wonder if passing a 64bit number to a %u format
> >> string (shoul dbe %llu) causes problems on ARM? All the variables
> >> are valid as they are printed or accessed elsewhere in the function,
> >> so that's the only thing I can think of without a stack trace to
> >> tell me otherwise....
> >
> > I have no idea. I did not succeed in getting a stacktrace. CPU is an
> > ARM9, and I used Debian armel squeeze & wheezy xfsprogs binaries.
>
> Perhaps you could try removing or fixing the printf Dave suspects, rebuild repair, and run it again?
Yep, I figured that much, it just took me a while to get up & running
another system capable of building xfsprogs.
Now that I have that, and that I commented the do_warn, xfs_repair is
still running after the previous failing point:
[…]
- agno = 17
bad key in bmbt root (is 73434, would reset to 74194) in inode 2283178100 data fork
bad fwd (right) sibling pointer (saw 145202888 should be NULLDFSBNO)
bad data fork in inode 2283178100
would have cleared inode 2283178100
- agno = 18
[…] (ongoing)
Once this is done, I'll test with %llu instead of %u.
But please be patient, it's a 900GB filesystem (half-full) with just an 800
MHz ARM9 processor doing the work, so xfs_repair takes hours to complete.
Plus I won't have time to do many tests before next week.
To be continued.
Anisse
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2011-04-22 11:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-18 19:24 xfs_repair crashing (versions 3.1.4 and 3.1.5) Anisse Astier
2011-04-19 8:27 ` Dave Chinner
2011-04-19 11:07 ` Anisse Astier
2011-04-21 19:26 ` Eric Sandeen
2011-04-22 11:09 ` Anisse Astier [this message]
2011-05-04 9:11 ` Christoph Hellwig
2011-05-04 10:24 ` Anisse Astier
2011-05-05 22:46 ` Anisse Astier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110422130920.7be686c6@destiny.ordissimo \
--to=anisse@astier.eu \
--cc=sandeen@sandeen.net \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox