From: Laurent GUERBY <laurent@guerby.net>
To: Andreas Schwab <schwab@suse.de>, Arnaud Charlet <charlet@adacore.com>
Cc: Eric Botcazou <ebotcazou@adacore.com>,
Daniel Berlin <dberlin@dberlin.org>,
Richard Guenther <richard.guenther@gmail.com>,
gcc-patches@gcc.gnu.org
Subject: Re: Ada ACATS random FAIL / scripting help wanted (was:Fix missed PRE optimization discovered)
Date: Thu, 06 Nov 2008 13:36:00 -0000 [thread overview]
Message-ID: <1225978403.14300.41.camel@localhost> (raw)
In-Reply-To: <1224975671.13051.166.camel@localhost>
On Sun, 2008-10-26 at 01:01 +0200, Laurent GUERBY wrote:
> On Sun, 2008-10-26 at 00:46 +0200, Andreas Schwab wrote:
> > Laurent GUERBY <laurent@guerby.net> writes:
> >
> > > Is "mkdir X && cd X" known to be an unreliable script sequence?
> >
> > If that doesn't work, then either your filesystem is broken, or another
> > process deleted the directory in between the commands.
>
> I have only one continuous build script on this system launched with
> nohup and looping "while true; do" over invoking configure, make -j 1
> bootstrap and then make -j 1 check so no other process and no
> "background" tasks.
>
> The OS is debian etch with only standard packages and kernel (2.6.18),
> the filesystem is the default ext3, from /proc/mounts:
> /dev/sda1 / ext3 rw,data=ordered 0 0
> Uptime is 246 days.
>
> The hardware is bi-dual opteron (Dell SC1435) and load is usually
> at four or above (by other users of the compile farm).
>
> As far as I remember the "sync" command I added lowered the number
> of random fails, but as you noted it shouldn't have any effect.
I added some logs after gnatmake in run_all.sh:
ZSTAMP=none
if [ ! -x $dir/tests/$chapter/$i/$binmain ]; then
sync
ZSTAMP=$(date '+%Y%m%dT%H%M%S')
ls -l $dir/tests/$chapter/$i/ > /home/guerby/tmp/acats/postsync-${i}-${ZSTAMP} 2>&1
fi
target_run $dir/tests/$chapter/$i/$binmain > $dir/tests/$chapter/$i/${i}.log 2>&1
if [ x$ZSTAMP != "xnone" ]; then
ls -l $dir/tests/$chapter/$i/ > /home/guerby/tmp/acats/postsync2-${i}-${ZSTAMP} 2>&1
cp -f $dir/tests/$chapter/$i/${i}.log /home/guerby/tmp/acats/last-${i}-${ZSTAMP}.log
sleep 1
ls -l $dir/tests/$chapter/$i/ > /home/guerby/tmp/acats/postsync3-${i}-${ZSTAMP} 2>&1
fi
It trigered a few days ago:
guerby@gcc13:~/tmp/acats$ cat postsync-c490001-20081101T131811
total 40
-rw-r--r-- 1 guerby guerby 412 2008-11-01 13:18 c490001_0.adb
-rw-r--r-- 1 guerby guerby 6896 2008-11-01 13:18 c490001_0.ads
-rw-r--r-- 1 guerby guerby 1625 2008-11-01 13:18 c490001_0.ali
-rw-r--r-- 1 guerby guerby 2640 2008-11-01 13:18 c490001_0.o
-rw-r--r-- 1 guerby guerby 1633 2008-11-01 13:18 c490001.adb
-rw-r--r-- 1 guerby guerby 1190 2008-11-01 13:18 c490001.ali
-rw-r--r-- 1 guerby guerby 12 2008-11-01 13:18 c490001.lst
-rw-r--r-- 1 guerby guerby 4192 2008-11-01 13:18 c490001.o
guerby@gcc13:~/tmp/acats$ cat postsync2-c490001-20081101T131811
total 44
-rw-r--r-- 1 guerby guerby 412 2008-11-01 13:18 c490001_0.adb
-rw-r--r-- 1 guerby guerby 6896 2008-11-01 13:18 c490001_0.ads
-rw-r--r-- 1 guerby guerby 1625 2008-11-01 13:18 c490001_0.ali
-rw-r--r-- 1 guerby guerby 2640 2008-11-01 13:18 c490001_0.o
-rw-r--r-- 1 guerby guerby 1633 2008-11-01 13:18 c490001.adb
-rw-r--r-- 1 guerby guerby 1190 2008-11-01 13:18 c490001.ali
-rw-r--r-- 1 guerby guerby 159 2008-11-01 13:18 c490001.log
-rw-r--r-- 1 guerby guerby 12 2008-11-01 13:18 c490001.lst
-rw-r--r-- 1 guerby guerby 4192 2008-11-01 13:18 c490001.o
guerby@gcc13:~/tmp/acats$ cat last-c490001-20081101T131811.log
/home/guerby/trunk/gcc/testsuite/ada/acats/run_all.sh: line 16: /home/guerby/build/gcc/testsuite/ada/acats/tests/c4/c490001/c490001: No such file or directory
guerby@gcc13:~/tmp/acats$ cat postsync3-c490001-20081101T131811
total 1192
-rwxr-xr-x 1 guerby guerby 1170175 2008-11-01 13:18 c490001
-rw-r--r-- 1 guerby guerby 412 2008-11-01 13:18 c490001_0.adb
-rw-r--r-- 1 guerby guerby 6896 2008-11-01 13:18 c490001_0.ads
-rw-r--r-- 1 guerby guerby 1625 2008-11-01 13:18 c490001_0.ali
-rw-r--r-- 1 guerby guerby 2640 2008-11-01 13:18 c490001_0.o
-rw-r--r-- 1 guerby guerby 1633 2008-11-01 13:18 c490001.adb
-rw-r--r-- 1 guerby guerby 1190 2008-11-01 13:18 c490001.ali
-rw-r--r-- 1 guerby guerby 159 2008-11-01 13:18 c490001.log
-rw-r--r-- 1 guerby guerby 12 2008-11-01 13:18 c490001.lst
-rw-r--r-- 1 guerby guerby 4192 2008-11-01 13:18 c490001.o
As seen, after "sleep 1" the c490001 executable file appears at last
through "ls" so we now know gnatmake and ld didn't fail and produced
an executable but it appeared with an unexplainable delay.
I've observed this exact same behaviour two times in my logs.
I will propose a patch with a "sleep 1" after the "sync" unless
someone has another idea?
Thanks in advance,
Laurent
WARNING: multiple messages have this Message-ID
From: Laurent GUERBY <laurent@guerby.net>
To: Andreas Schwab <schwab@suse.de>, Arnaud Charlet <charlet@adacore.com>
Cc: Eric Botcazou <ebotcazou@adacore.com>,
Daniel Berlin <dberlin@dberlin.org>,
Richard Guenther <richard.guenther@gmail.com>,
gcc-patches@gcc.gnu.org
Subject: Re: Ada ACATS random FAIL / scripting help wanted (was:Fix missed PRE optimization discovered)
Date: Thu, 06 Nov 2008 14:03:00 -0000 [thread overview]
Message-ID: <1225978403.14300.41.camel@localhost> (raw)
Message-ID: <20081106140300.nkgec_ikgSE2WFwVNk4bRTudYCcY8WwSQmjNt3F_agI@z> (raw)
In-Reply-To: <1224975671.13051.166.camel@localhost>
On Sun, 2008-10-26 at 01:01 +0200, Laurent GUERBY wrote:
> On Sun, 2008-10-26 at 00:46 +0200, Andreas Schwab wrote:
> > Laurent GUERBY <laurent@guerby.net> writes:
> >
> > > Is "mkdir X && cd X" known to be an unreliable script sequence?
> >
> > If that doesn't work, then either your filesystem is broken, or another
> > process deleted the directory in between the commands.
>
> I have only one continuous build script on this system launched with
> nohup and looping "while true; do" over invoking configure, make -j 1
> bootstrap and then make -j 1 check so no other process and no
> "background" tasks.
>
> The OS is debian etch with only standard packages and kernel (2.6.18),
> the filesystem is the default ext3, from /proc/mounts:
> /dev/sda1 / ext3 rw,data=ordered 0 0
> Uptime is 246 days.
>
> The hardware is bi-dual opteron (Dell SC1435) and load is usually
> at four or above (by other users of the compile farm).
>
> As far as I remember the "sync" command I added lowered the number
> of random fails, but as you noted it shouldn't have any effect.
I added some logs after gnatmake in run_all.sh:
ZSTAMP=none
if [ ! -x $dir/tests/$chapter/$i/$binmain ]; then
sync
ZSTAMP=$(date '+%Y%m%dT%H%M%S')
ls -l $dir/tests/$chapter/$i/ > /home/guerby/tmp/acats/postsync-${i}-${ZSTAMP} 2>&1
fi
target_run $dir/tests/$chapter/$i/$binmain > $dir/tests/$chapter/$i/${i}.log 2>&1
if [ x$ZSTAMP != "xnone" ]; then
ls -l $dir/tests/$chapter/$i/ > /home/guerby/tmp/acats/postsync2-${i}-${ZSTAMP} 2>&1
cp -f $dir/tests/$chapter/$i/${i}.log /home/guerby/tmp/acats/last-${i}-${ZSTAMP}.log
sleep 1
ls -l $dir/tests/$chapter/$i/ > /home/guerby/tmp/acats/postsync3-${i}-${ZSTAMP} 2>&1
fi
It trigered a few days ago:
guerby@gcc13:~/tmp/acats$ cat postsync-c490001-20081101T131811
total 40
-rw-r--r-- 1 guerby guerby 412 2008-11-01 13:18 c490001_0.adb
-rw-r--r-- 1 guerby guerby 6896 2008-11-01 13:18 c490001_0.ads
-rw-r--r-- 1 guerby guerby 1625 2008-11-01 13:18 c490001_0.ali
-rw-r--r-- 1 guerby guerby 2640 2008-11-01 13:18 c490001_0.o
-rw-r--r-- 1 guerby guerby 1633 2008-11-01 13:18 c490001.adb
-rw-r--r-- 1 guerby guerby 1190 2008-11-01 13:18 c490001.ali
-rw-r--r-- 1 guerby guerby 12 2008-11-01 13:18 c490001.lst
-rw-r--r-- 1 guerby guerby 4192 2008-11-01 13:18 c490001.o
guerby@gcc13:~/tmp/acats$ cat postsync2-c490001-20081101T131811
total 44
-rw-r--r-- 1 guerby guerby 412 2008-11-01 13:18 c490001_0.adb
-rw-r--r-- 1 guerby guerby 6896 2008-11-01 13:18 c490001_0.ads
-rw-r--r-- 1 guerby guerby 1625 2008-11-01 13:18 c490001_0.ali
-rw-r--r-- 1 guerby guerby 2640 2008-11-01 13:18 c490001_0.o
-rw-r--r-- 1 guerby guerby 1633 2008-11-01 13:18 c490001.adb
-rw-r--r-- 1 guerby guerby 1190 2008-11-01 13:18 c490001.ali
-rw-r--r-- 1 guerby guerby 159 2008-11-01 13:18 c490001.log
-rw-r--r-- 1 guerby guerby 12 2008-11-01 13:18 c490001.lst
-rw-r--r-- 1 guerby guerby 4192 2008-11-01 13:18 c490001.o
guerby@gcc13:~/tmp/acats$ cat last-c490001-20081101T131811.log
/home/guerby/trunk/gcc/testsuite/ada/acats/run_all.sh: line 16: /home/guerby/build/gcc/testsuite/ada/acats/tests/c4/c490001/c490001: No such file or directory
guerby@gcc13:~/tmp/acats$ cat postsync3-c490001-20081101T131811
total 1192
-rwxr-xr-x 1 guerby guerby 1170175 2008-11-01 13:18 c490001
-rw-r--r-- 1 guerby guerby 412 2008-11-01 13:18 c490001_0.adb
-rw-r--r-- 1 guerby guerby 6896 2008-11-01 13:18 c490001_0.ads
-rw-r--r-- 1 guerby guerby 1625 2008-11-01 13:18 c490001_0.ali
-rw-r--r-- 1 guerby guerby 2640 2008-11-01 13:18 c490001_0.o
-rw-r--r-- 1 guerby guerby 1633 2008-11-01 13:18 c490001.adb
-rw-r--r-- 1 guerby guerby 1190 2008-11-01 13:18 c490001.ali
-rw-r--r-- 1 guerby guerby 159 2008-11-01 13:18 c490001.log
-rw-r--r-- 1 guerby guerby 12 2008-11-01 13:18 c490001.lst
-rw-r--r-- 1 guerby guerby 4192 2008-11-01 13:18 c490001.o
As seen, after "sleep 1" the c490001 executable file appears at last
through "ls" so we now know gnatmake and ld didn't fail and produced
an executable but it appeared with an unexplainable delay.
I've observed this exact same behaviour two times in my logs.
I will propose a patch with a "sleep 1" after the "sync" unless
someone has another idea?
Thanks in advance,
Laurent
next prev parent reply other threads:[~2008-11-06 13:36 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-16 23:29 [PATCH]: Fix missed PRE optimization discovered Daniel Berlin
2008-10-17 13:05 ` Andreas Schwab
2008-10-17 13:08 ` Eric Botcazou
2008-10-17 15:41 ` Daniel Berlin
2008-10-17 17:08 ` Daniel Berlin
2008-10-17 17:56 ` Daniel Berlin
2008-10-17 19:08 ` Eric Botcazou
2008-10-17 22:24 ` Daniel Berlin
2008-10-17 22:46 ` Laurent GUERBY
2008-10-18 10:28 ` Daniel Berlin
2008-10-18 18:03 ` Richard Guenther
2008-10-18 18:05 ` Richard Guenther
2008-10-18 23:04 ` Daniel Berlin
2008-10-19 4:23 ` Richard Guenther
2008-10-20 20:23 ` Daniel Berlin
2008-10-21 12:36 ` Laurent GUERBY
2008-10-21 13:56 ` Eric Botcazou
2008-10-21 14:08 ` Laurent GUERBY
2008-10-21 14:23 ` Andreas Schwab
2008-10-21 14:45 ` Laurent GUERBY
2008-10-21 15:01 ` Andreas Schwab
2008-10-22 13:57 ` Laurent GUERBY
2008-10-22 14:04 ` Andreas Schwab
2008-10-22 14:40 ` Laurent GUERBY
2008-10-25 23:21 ` Ada ACATS random FAIL / scripting help wanted (was:Fix missed PRE optimization discovered) Laurent GUERBY
2008-10-26 0:17 ` Andreas Schwab
2008-10-26 0:33 ` Laurent GUERBY
2008-11-06 13:36 ` Laurent GUERBY [this message]
2008-11-06 14:03 ` Laurent GUERBY
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=1225978403.14300.41.camel@localhost \
--to=laurent@guerby.net \
--cc=charlet@adacore.com \
--cc=dberlin@dberlin.org \
--cc=ebotcazou@adacore.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=richard.guenther@gmail.com \
--cc=schwab@suse.de \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).