From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <751db15fb9f45ab5b9fab9a0adae1a16@coraid.com> References: <64332bc783f3dc7dffc16c1266fefea3@coraid.com> <9ab217670907311108v275b637dp833970ad23f72213@mail.gmail.com> <751db15fb9f45ab5b9fab9a0adae1a16@coraid.com> Date: Fri, 31 Jul 2009 14:35:19 -0400 Message-ID: <9ab217670907311135l491af0f2ybd436358c49b1272@mail.gmail.com> From: "Devon H. O'Dell" To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] Race condition in /sys/src/9/pc/trap.c? Topicbox-Message-UUID: 33d155f4-ead5-11e9-9d60-3106f5b1d025 2009/7/31 erik quanstrom : >> > could you be more specific. =A0what is your test program, >> > where is it crashing (if you know), and what is the panic >> > message, if any? =A0i must be dense, but i'm confused by >> > your process diagram. >> >> He posted it earlier in this thread >> >> --dho > > please post a reference. =A0i do not see either the crash > code or the panic message on 9fans.net/archive/2009/07. > i don't recall it in the originals, either. > > - erik Was received as an attachment. Inline: #include #include void main(int argc, char **argv) { char *buf; int fd; if((fd =3D open("/dev/zero", OREAD)) < 0) sysfatal("open"); buf =3D (char*)0x600000; segattach(0, "memory", buf, 2*4096); switch(rfork(RFPROC|RFMEM)){ case -1: sysfatal("fork"); break; case 0: for(;;){ read(fd, buf+4096, 4096); } } sleep(1000); segbrk(buf, buf+4096); } --dho