From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <09bc104c3c971e2616b36aebaccb22cd@gmx.de> To: 9fans@9fans.net Date: Fri, 31 Jul 2009 23:52:23 +0200 From: cinap_lenrek@gmx.de In-Reply-To: <64332bc783f3dc7dffc16c1266fefea3@coraid.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-ezbcqorxfeszdvznnmqinagyek" Subject: Re: [9fans] Race condition in /sys/src/9/pc/trap.c? Topicbox-Message-UUID: 340c134c-ead5-11e9-9d60-3106f5b1d025 This is a multi-part message in MIME format. --upas-ezbcqorxfeszdvznnmqinagyek Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit i attached it in a previous mail... try again... -- cinap --upas-ezbcqorxfeszdvznnmqinagyek Content-Type: message/rfc822 Content-Disposition: inline Return-Path: <9fans-bounces+cinap_lenrek=gmx.de@9fans.net> X-Flags: 0000 Delivered-To: GMX delivery to cinap_lenrek@gmx.de Received: (qmail invoked by alias); 31 Jul 2009 18:05:08 -0000 Received: from gouda.swtch.com (EHLO gouda.swtch.com) [67.207.142.3] by mx0.gmx.net (mx051) with SMTP; 31 Jul 2009 20:05:08 +0200 Received: from localhost ([127.0.0.1] helo=gouda.swtch.com) by gouda.swtch.com with esmtp (Exim 4.69) (envelope-from <9fans-bounces@9fans.net>) id 1MWwPV-0004MS-HG; Fri, 31 Jul 2009 18:00:53 +0000 Received: from baron.coraid.com ([12.51.113.4] helo=coraid.com ident=none) by gouda.swtch.com with esmtp (Exim 4.69) (envelope-from ) id 1MWwPO-0004M9-Hr for 9fans@9fans.net; Fri, 31 Jul 2009 18:00:46 +0000 From: erik quanstrom Date: Fri, 31 Jul 2009 14:00:25 -0400 To: 9fans@9fans.net Message-ID: <64332bc783f3dc7dffc16c1266fefea3@coraid.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Race condition in /sys/src/9/pc/trap.c? X-BeenThere: 9fans@9fans.net X-Mailman-Version: 2.1.10 Precedence: list Reply-To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.9fans.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 9fans-bounces@9fans.net Errors-To: 9fans-bounces+cinap_lenrek=gmx.de@9fans.net X-GMX-Antivirus: 0 (no virus found) X-GMX-Antispam: 0 (Mail was not recognized as spam) X-GMX-UID: ZAtLf/tybmw7Oo01yzdLmbtHUzc4ctHI > process1: > still in kernel: > memmove(buf, ...) > *fault* > trap() > fault386() > fault() => -1 > if(!user){ > panic() > *panic* > } > ... > postnote() could you be more specific. what is your test program, where is it crashing (if you know), and what is the panic message, if any? i must be dense, but i'm confused by your process diagram. - erik --upas-ezbcqorxfeszdvznnmqinagyek Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit #include #include void main(int argc, char **argv) { char *buf; int fd; if((fd = open("/dev/zero", OREAD)) < 0) sysfatal("open"); buf = (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); } --upas-ezbcqorxfeszdvznnmqinagyek--