mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Stephen C. Tweedie" <sct@redhat.com>
To: Tsuchiya Yoshihiro <xxtsuchiyaxx@ybb.ne.jp>
Cc: Marcelo Tosatti <marcelo.tosatti@cyclades.com>,
	tschiya@labs.fujitsu.com, dlion2004@sina.com.cn,
	Stephen Tweedie <sct@redhat.com>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: filesystem bug?
Date: 15 Jan 2004 22:38:48 +0000	[thread overview]
Message-ID: <1074206327.4811.519.camel@sisko.scot.redhat.com> (raw)
In-Reply-To: <0586254E-46DA-11D8-B45E-00039341E01A@ybb.ne.jp>

Hi,

On Wed, 2004-01-14 at 21:38, Tsuchiya Yoshihiro wrote:

> I usually use two to seven boxes at a time, and I get about two problems
> out of them within about two nights.

I was able to reproduce with your script, too: even on ramfs.  Curiouser
and curiouser.

Al Viro was a help getting further, and we nailed the reason for the
failure.  I got a failure:

"something wrong (diff) happened at ae:619-th trial"

corresponding to the script code:

                mkdir $TARGETDIR/dirXC$i || echo "Error $? making $TARGETDIR/dirXC$i" > $RDIR/MD-ERR-$1 2>&1
                cd $TARGETDIR/dirXC$i > $RDIR/CD-ERR-$1 2>&1

                if [ -s $RDIR/CD-ERR-$1 ]
                then
                        echo "something wrong (cd) happened at $1:$i-th trial "
                        (df .; df -i .) > $RDIR/DF-$1
                        exit;
                fi

                tar zxf $MOZSRC >> $ERRORF

#                echo "test dir for $TARGETDIR" >> $INOFILE-$1
                ls -lid $SOURCE >> $INOFILE-$1

                diff -rq $TARGETDIR/$SOURCE $TARGETDIR/dirXC$i/$SOURCE > $RESULTS/dirXC$i.result 2>&1
                DIFFSIZE=`ls -l $RESULTS/dirXC$i.result | awk '{print $5}'`
                if [ $DIFFSIZE != 0 ];
                then
                        echo "something wrong (diff) happened at $1:$i-th trial "
                        (df .; df -i .) > $RDIR/DF-$1
                        exit;

and psacct was able to trace the order in which stuff happened; lastcomm showed:

tee                     guest    ??         5.55 secs Thu Jan 15 22:15
tar                     guest    ??         0.08 secs Thu Jan 15 22:24
gzip                    guest    ??         0.25 secs Thu Jan 15 22:24
xc-1.2                  guest    ??         0.02 secs Thu Jan 15 22:15
xc-1.2             F    guest    ??         6.37 secs Thu Jan 15 22:15
xc-1.2             F    guest    ??         0.00 secs Thu Jan 15 22:24
df                      guest    ??         0.00 secs Thu Jan 15 22:24
df                      guest    ??         0.01 secs Thu Jan 15 22:24
xc-1.2             F    guest    ??         0.01 secs Thu Jan 15 22:24
awk                     guest    ??         0.00 secs Thu Jan 15 22:24
ls                      guest    ??         0.01 secs Thu Jan 15 22:24
diff                    guest    ??         0.01 secs Thu Jan 15 22:24
rm                      guest    ??         0.02 secs Thu Jan 15 22:24
ls                      guest    ??         0.00 secs Thu Jan 15 22:24
mkdir                   guest    ??         0.01 secs Thu Jan 15 22:24

Reading from the bottom up: we get the "mkdir" and "ls -lid" of the new
directory, but not the tar; then the "rm &" of the previous iteration
completes; then there's the diff that failed, and the ls and awk from
that; then the two "df"s, then we exit. 

And *then*, after all that, the tar/gunzip finishes.  Remember, lastcomm
records the exit of each task, not its start.

So the problem seems to be that the shell is continuing beyond the "tar
xzf" before that command has finished, which is why we see ENOENT on
"cd" to the dir or on the diff.

The trace above was on the last running thread of the test.  All other
threads had completed, so there was no interleaving of test runs in the
psacct records.

Now, I can't tell from this whether it's a bash bug or an exit/signal
bug, but it doesn't look like a filesystem problem for now.  I'm going
to try with a different shell to see if that helps.

Cheers,
 Stephen


  parent reply	other threads:[~2004-01-15 22:39 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-27 14:35 Tsuchiya Yoshihiro
     [not found] ` <Pine.LNX.4.58L.0312301556380.23875@logos.cnet>
     [not found]   ` <74964CA8-3B50-11D8-B879-00039341E01A@ybb.ne.jp>
     [not found]     ` <1074109164.4538.8.camel@sisko.scot.redhat.com>
     [not found]       ` <0586254E-46DA-11D8-B45E-00039341E01A@ybb.ne.jp>
2004-01-15 22:38         ` Stephen C. Tweedie [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-01-16  2:59 Tsuchiya Yoshihiro
2004-01-16 12:29 ` Stephen C. Tweedie
2004-01-19  7:52   ` Tsuchiya Yoshihiro
2004-01-19 13:12     ` Stephen C. Tweedie
2004-01-20  8:36       ` Tsuchiya Yoshihiro
2004-01-20 16:27         ` Stephen C. Tweedie
2003-12-26 13:22 土屋芳浩
2003-12-26 14:30 ` dlion
2003-12-28  8:26   ` dlion
2003-12-15  9:25 Tsuchiya Yoshihiro
2003-12-15  9:55 ` bert hubert
2003-12-16 13:44 ` Stephen C. Tweedie
2003-12-16 21:40   ` Bryan Whitehead
2003-12-16 21:50     ` Bryan Whitehead
2003-12-16 23:31     ` Tsuchiya Yoshihiro
2003-12-16 23:40       ` viro
2003-12-17  0:12         ` Tsuchiya Yoshihiro
2003-12-17 23:24       ` Tsuchiya Yoshihiro
2003-12-18 21:29         ` Stephen C. Tweedie
2003-12-21 23:15           ` Tsuchiya Yoshihiro
2003-12-22  1:54             ` Tsuchiya Yoshihiro
2003-12-22  4:30             ` Tsuchiya Yoshihiro
2003-12-22 12:03               ` Stephen C. Tweedie
2003-12-24  1:48                 ` Tsuchiya Yoshihiro
2003-12-24 23:09                   ` Tsuchiya Yoshihiro
2004-01-15  6:38                     ` Tsuchiya Yoshihiro
2003-12-26  9:59 ` dlion
2003-12-26 12:27   ` dlion

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=1074206327.4811.519.camel@sisko.scot.redhat.com \
    --to=sct@redhat.com \
    --cc=dlion2004@sina.com.cn \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo.tosatti@cyclades.com \
    --cc=tschiya@labs.fujitsu.com \
    --cc=xxtsuchiyaxx@ybb.ne.jp \
    /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

all inboxes | Powered by JetHome®