From: Alexey Gladkov <gladkov.alexey@gmail.com>
To: dash list <dash@vger.kernel.org>
Subject: dash race
Date: Fri, 25 Apr 2008 16:39:13 +0400 [thread overview]
Message-ID: <4811D0F1.20801@gmail.com> (raw)
Greetings!
Sometimes following script is get 99% CPU and will be never
finished. This happens with dash from git. I can't bisect
this because 05c1076 has this problem.
<================================
#!/bin/dash
trap "echo TRAP" USR1
stub() {
echo ">>> STUB $1" >&2
sleep $1
echo "<<< STUB $1" >&2
kill -USR1 $$
}
stub 3 &
stub 2 &
until { echo "###"; wait; } do
echo "*** $?"
done
================================>
strace:
12541 wait4(-1, 0xaf87aca0, 0, NULL) = -1 ECHILD (No child processes)
12541 wait4(-1, 0xaf87aca0, 0, NULL) = -1 ECHILD (No child processes)
12541 wait4(-1, 0xaf87aca0, 0, NULL) = -1 ECHILD (No child processes)
--
Rgrds, legion
next reply other threads:[~2008-04-25 13:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-25 12:39 Alexey Gladkov [this message]
2008-04-25 13:45 ` dash race Oleg Verych
2008-04-25 14:37 ` Alexey Gladkov
2008-04-25 16:17 ` job control (Re: dash race) Oleg Verych
2008-04-27 11:23 ` Alexey Gladkov
2008-04-27 11:49 ` Oleg Verych
2008-04-27 19:18 ` Alexey Gladkov
2008-04-29 12:20 ` Herbert Xu
2008-04-29 14:04 ` Herbert Xu
2008-04-29 15:51 ` Oleg Verych
2009-02-22 10:19 ` Herbert Xu
2008-04-27 20:35 ` Oleg Verych
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=4811D0F1.20801@gmail.com \
--to=gladkov.alexey@gmail.com \
--cc=dash@vger.kernel.org \
/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