Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 19 Mar 2002 11:57:39 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: mmap of large amount returns invalid pointer Message-ID: <20020319115739.U29574@cygbert.vinschen.de> Mail-Followup-To: cygwin AT cygwin DOT com References: <20020314132223 DOT N29574 AT cygbert DOT vinschen DOT de> <15508 DOT 58801 DOT 823944 DOT 720766 AT asv-058 DOT sjc DOT ca DOT bbnow DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15508.58801.823944.720766@asv-058.sjc.ca.bbnow.net> User-Agent: Mutt/1.3.22.1i On Sun, Mar 17, 2002 at 10:51:29AM -0800, Stephen Weeks wrote: > > Corinna: > > Anyway, I've checked in a patch. It now checks if VirtualProtect > > failed and then mmap() also fails. Try the next developers snapshot, > > please. > > Thanks for the fix. I tried the 2002-Mar-16 snapshot and the test > program works correctly. However, a slightly modified program that > munmaps the memory in the parent process and then exits does not work > reliably. I have included the test case and an strace of a failed run I'm on vacation currently so I'm not really inclined to test that by myself. Could you please describe what happens in the error case in plain English? I see that there could be a timing problem in fork() but I'd like to read how the error looks like. Thanks, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/