9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@coraid.com>
To: 9fans@cse.psu.edu
Subject: [9fans] wait race?
Date: Fri, 15 Dec 2006 18:08:39 -0500	[thread overview]
Message-ID: <9ad68ddb26c79d699d261fdf5fbdc505@coraid.com> (raw)

this command frequently hangs on my terminal
	for(i in `{seq 1 $n}){echo fu>/dev/null&}

i've tried n=50 and n=150.  

acid says the shell is doing this

acid: lstk()
await()+0x7 /sys/src/libc/9syscall/await.s:5
wait()+0x1b /sys/src/libc/9sys/wait.c:13
	buf=0x36373031
	fld=0xdfffcc04
	l=0x35188
	w=0x35190
Waitfor(pid=0x2ae1)+0xb4 /usr/quanstro/src/rc/plan9.c:211
	w=0x35190
	p=0x36e70
	errbuf=0x353a4
Xbackq()+0x158 /usr/quanstro/src/rc/havefork.c:120
	wd=0x303531
	ewd=0xdfffeeef
	stop=0x1dd10
	pfd=0x5
	f=0x35190
	s=0xdfffceef
	v=0x36e70
	c=0xa
	pid=0x2ae1
main(argc=0x1,argv=0xdfffefb4)+0x327 /usr/quanstro/src/rc/exec.c:184
	rcmain=0x1642c
	num=0x35343031
	bootstrap=0x2
	i=0x0
_main+0x31 /sys/src/libc/386/main9.s:16

is this a race, or am i missing something?  (p9p rc does not
hang doing the same thing.)

- erik


             reply	other threads:[~2006-12-15 23:08 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-15 23:08 erik quanstrom [this message]
2006-12-15 23:46 ` matt
2006-12-16  0:51 ` geoff
2006-12-16  1:11 ` matt
2006-12-17 16:24   ` [9fans] ,m0 Matt
2006-12-17 16:40     ` Rob Pike
2006-12-17 16:41       ` Rob Pike
2006-12-17 17:01         ` Matt
2006-12-17 17:03         ` Paul Lalonde
2006-12-17 23:07           ` Bruce Ellis
2006-12-16  2:12 ` [9fans] wait race? Russ Cox
2006-12-16  3:26   ` erik quanstrom
2006-12-16  4:43     ` Russ Cox
2006-12-16 14:55   ` Steve Simon

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=9ad68ddb26c79d699d261fdf5fbdc505@coraid.com \
    --to=quanstro@coraid.com \
    --cc=9fans@cse.psu.edu \
    /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 NNTP newsgroup(s).