9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] wait race?
@ 2006-12-15 23:08 erik quanstrom
  2006-12-15 23:46 ` matt
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: erik quanstrom @ 2006-12-15 23:08 UTC (permalink / raw)
  To: 9fans

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


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2006-12-17 23:07 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-15 23:08 [9fans] wait race? erik quanstrom
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

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).